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') |
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 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
#include <WiFi.h> | |
#include <HTTPClient.h> | |
#include "DHT.h" | |
#define DHTPIN 4 // Digital pin connected to the DHT sensor | |
#define DHTTYPE DHT22 | |
DHT dht(DHTPIN, DHTTYPE); | |
//-------- User Settings ----------- | |
const char* ssid = "SSID"; |
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
#!/usr/bin/python | |
# ---------------------------------------------------------------------------- | |
# BoatMonitor Version 1.0 May 2017 | |
# This is a Python 2.7.9 script for sending data from | |
# from a Raspberry Pi 3 and an interface board. | |
# It reports on various parameters | |
# on a boat under these conditions which are checked every 5min: | |
# 1. if shore power is off | |
# 2. if batteries are below 12vdc |
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 adafruit_dht | |
from ISStreamer.Streamer import Streamer | |
import time | |
import board | |
# --------- User Settings --------- | |
SENSOR_LOCATION_NAME = "Office" | |
BUCKET_NAME = ":partly_sunny: Room Temperatures" | |
BUCKET_KEY = "dht22sensor" | |
ACCESS_KEY = "ENTER ACCESS KEY HERE" |
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
# SPDX-FileCopyrightText: 2020 Bryan Siepert, written for Adafruit Industries | |
# SPDX-License-Identifier: Unlicense | |
import time | |
import board | |
import adafruit_bh1750 | |
i2c = board.I2C() | |
sensor = adafruit_bh1750.BH1750(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
import time | |
from board import SCL, SDA | |
import busio | |
from adafruit_seesaw.seesaw import Seesaw | |
i2c_bus = busio.I2C(SCL, SDA) | |
ss = Seesaw(i2c_bus, addr=0x36) |
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 | |
from ISStreamer.Streamer import Streamer | |
from board import SCL, SDA | |
import busio | |
from adafruit_seesaw.seesaw import Seesaw | |
# --------- User Settings --------- | |
SENSOR_LOCATION_NAME = "House Plant" | |
BUCKET_NAME = "House Plant" | |
BUCKET_KEY = "soilsensor" |
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 adafruit_bh1750 | |
from ISStreamer.Streamer import Streamer | |
# --------- User Settings --------- | |
SENSOR_LOCATION_NAME = "Office" | |
BUCKET_NAME = "House Plant" | |
BUCKET_KEY = "soilsensor" | |
ACCESS_KEY = "ENTER ACCESS KEY HERE" |
OlderNewer