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 time | |
import subprocess | |
from board import SCL, SDA, D4 | |
import busio | |
import digitalio | |
from PIL import Image, ImageDraw, ImageFont | |
import adafruit_ssd1305 | |
import subprocess | |
from ISReader.Reader import Reader |
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 time | |
import smbus2 | |
import bme280 | |
import psutil | |
from ISStreamer.Streamer import Streamer | |
from subprocess import PIPE, Popen | |
# --------- User Settings --------- | |
SENSOR_LOCATION_NAME = "crawl2" | |
BUCKET_NAME = ":partly_sunny: Room Temperature" |
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 time | |
import smbus2 | |
import bme280 | |
from ISStreamer.Streamer import Streamer | |
# --------- User Settings --------- | |
SENSOR_LOCATION_NAME = "crawl2" | |
BUCKET_NAME = ":sweat_drops: Crawl Space" | |
BUCKET_KEY = "temphum1234" | |
ACCESS_KEY = "PLACE YOUR INITIAL STATE ACCESS KEY HERE" |
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 __future__ import division | |
from subprocess import PIPE, Popen | |
from envirophat import weather | |
from ISStreamer.Streamer import Streamer | |
import time | |
# --------- User Settings --------- | |
# Initial State settings | |
BUCKET_NAME = "Envir:cloud: pHAT Temperatures" | |
BUCKET_KEY = "eph0720" |
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 sense_hat import SenseHat | |
sense = SenseHat() | |
while True: | |
orientation = sense.get_orientation() | |
print "pitch = " + str(orientation['pitch']) | |
print "roll = " + str(orientation['roll']) | |
print "yaw = " + str(orientation['yaw']) |
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
function streamData(signalName, value, enable) { | |
var accessKey = 'PLACE YOUR ACCESS KEY HERE'; | |
var bucketKey = 'PLACE YOUR BUCKET KEY HERE'; | |
if (!signalName) { | |
signalName = 'UnknownData'; | |
} | |
if (enable) { | |
var url = 'https://groker.init.st/api/events?accessKey=' + accessKey + '&bucketKey=' + bucketKey + '&' + encodeURIComponent(signalName) + '=' + encodeURIComponent(value); | |
UrlFetchApp.fetch(url); | |
return signalName + '=' + value; |
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 Adafruit_DHT | |
from ISStreamer.Streamer import Streamer | |
import time | |
# --------- User Settings --------- | |
SENSOR_LOCATION_NAME = "Office" | |
BUCKET_NAME = ":partly_sunny: Room Temperatures" | |
BUCKET_KEY = "rt0129" | |
ACCESS_KEY = "PLACE YOUR INITIAL STATE ACCESS KEY HERE" | |
MINUTES_BETWEEN_READS = 10 |
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 Adafruit_DHT | |
from ISStreamer.Streamer import Streamer | |
import time | |
# --------- User Settings --------- | |
SENSOR_LOCATION_NAME = "Office" | |
BUCKET_NAME = ":partly_sunny: Room Temperatures" | |
BUCKET_KEY = "rt0129" | |
ACCESS_KEY = "PLACE YOUR INITIAL STATE ACCESS KEY HERE" | |
MINUTES_BETWEEN_READS = 10 |
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 requests | |
ACCESS_KEY = "PLACE YOUR INITIAL STATE ACCESS KEY HERE" | |
BUCKET_KEY = "reqtest1" | |
BUCKET_NAME = "Python Test" | |
def createBucket(bucketKey, bucketName): | |
url = 'https://groker.init.st/api/buckets?accessKey=' + ACCESS_KEY + '&bucketKey=' + bucketKey + '&bucketName=' + bucketName | |
r = requests.get(url=url) | |
return r |
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 requests | |
ACCESS_KEY = "PLACE YOUR INITIAL STATE ACCESS KEY HERE" | |
BUCKET_KEY = "reqtest1" | |
def streamData(name, value): | |
url = 'https://groker.init.st/api/events?accessKey=' + ACCESS_KEY + '&bucketKey=' + BUCKET_KEY + '&' + name + '=' + str(value) | |
r = requests.get(url=url) | |
return r |
NewerOlder