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
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 |
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 | |
import json | |
ACCESS_KEY = "PLACE YOUR INITIAL STATE ACCESS KEY HERE" | |
BUCKET_KEY = "reqtest1" | |
def streamData(name, value): | |
url = 'https://groker.init.st/api/events' | |
headers = { | |
'Content-Type': 'application/json', |
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 | |
import json | |
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' | |
headers = { |
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 ISStreamer.Streamer import Streamer | |
ACCESS_KEY = "PLACE YOUR INITIAL STATE ACCESS KEY HERE" | |
BUCKET_KEY = "reqtest1" | |
BUCKET_NAME = "Python Test" | |
# create a Streamer instance | |
streamer = Streamer(bucket_name=BUCKET_NAME, bucket_key=BUCKET_KEY, access_key=ACCESS_KEY) | |
# send some data |
NewerOlder