This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <SPI.h> | |
#include <Ethernet.h> | |
///////////////// | |
// MODIFY HERE // | |
///////////////// | |
byte mac[] = { 0x00, 0xAA, 0xBB, 0xCC, 0xDE, 0x19 }; // Be sure this address is unique in your network | |
char APIKEY[] = "ffaabb444f1177772222f7243534badaanaa1100"; // Put here your API key | |
char CHANNEL[] = "my channel"; // and here your channel name | |
boolean DEBUG = true; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from pushetta import Pushetta | |
API_KEY="00112233445566778899aabbccddeeff00112233" | |
p=Pushetta(API_KEY) | |
p.pushMessage("raspi", "Hello World"") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import urllib2 | |
import json | |
def sendNotification(token, channel, message): | |
data = { | |
"body" : message, | |
"message_type" : "text/plain" | |
} | |
req = urllib2.Request('http://api.pushetta.com/api/pushes/{0}/'.format(channel)) |
NewerOlder