Skip to content

Instantly share code, notes, and snippets.

Elizabeth Adams elizabethn119

  • Initial State
Block or report user

Report or block elizabethn119

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View esp32tempsensor.ino
#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";
View bme280sensor.py
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)
View sensehat.py
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"
View temperature.py
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')
You can’t perform that action at this time.