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
<html lang="en"><head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<meta name="description" content=""> | |
<meta name="author" content=""> | |
<title>Raspberry Pi</title> |
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> | |
#include "string.h" | |
#include "iotconnector.h" | |
// Some Ethernet shields have a MAC address printed on a sticker on the shield; | |
// fill in that address here, or choose your own at random: | |
byte mac[] = { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED }; | |
char pubkey[] = "demo"; |
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
eon.chart({ | |
channel: 'humeon', | |
generate: { | |
bindto: '#chart', | |
data: { | |
type: 'gauge', | |
}, | |
gauge: { | |
min: 0, | |
max: 100 |
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 os | |
import time | |
import sys | |
from Pubnub import Pubnub | |
import Adafruit_DHT as dht | |
pubnub = Pubnub(publish_key='demo', subscribe_key='demo') |
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
eon.chart({ | |
channel: 'humeon', | |
generate: { | |
bindto: '#chart', | |
data: { | |
type: 'gauge', | |
}, | |
gauge: { | |
min: 0, | |
max: 100 |