This file contains hidden or 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 board | |
import busio | |
import adafruit_bme280 | |
from ISStreamer.Streamer import Streamer | |
# Create library object using our Bus I2C port | |
i2c = busio.I2C(board.SCL, board.SDA) | |
bme280 = adafruit_bme280.Adafruit_BME280_I2C(i2c) | |
This file contains hidden or 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 | |
import time | |
import sys | |
from ISStreamer.Streamer import Streamer | |
# --------- User Settings --------- | |
BUCKET_NAME = "Office Weather" | |
BUCKET_KEY = "sensehat" | |
ACCESS_KEY = "Your_Access_Key" | |
SENSOR_LOCATION_NAME = "Office" |
This file contains hidden or 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 glob | |
import time | |
from ISStreamer.Streamer import Streamer | |
streamer = Streamer(bucket_name="Temperature Stream", bucket_key="piot_temp_stream031815", access_key="PUT_YOUR_ACCESS_KEY_HERE") | |
os.system('modprobe w1-gpio') | |
os.system('modprobe w1-therm') |
NewerOlder