Skip to content
This repository has been archived by the owner on Jan 28, 2022. It is now read-only.

Latest commit

 

History

History
41 lines (35 loc) · 1.85 KB

README.md

File metadata and controls

41 lines (35 loc) · 1.85 KB

EnviroSense ESP8266 - Environmental sensing WiFi IoT board

This current iteration is using a NodeMCU ESP8266 board with a HC-SR501 PIR motion sensor and Bosch BME280, humidity, barometric pressure and ambient temperature sensor. I'm using MicroPython to export the metrics for a Prometheus server to scrape. Metrics are then graphed using a Grafana dashboard.

For more details about the project please have a look at my blog post

Requirements

Add a credentials.py file with the following contents:

wifi = {'SSID': 'NetworkName', 'pass': 'WifiPassword'}

Attributions

Sample metric output

# HELP wifi_signal_rssi wifi signal rssi
# TYPE wifi_signal_rssi gauge
wifi_signal_rssi -78
# HELP temperature_celsius temperature in celsius from sensor
# TYPE temperature_celsius gauge
temperature_celsius 23.11
# HELP humidity_relative relative humidity percentage from sensor
# TYPE humidity_relative gauge
humidity_relative 33.8945
# HELP pressure_pascal absolute barometric pressure in pascal from sensor
# TYPE pressure_pascal gauge
pressure_pascal 99470
# HELP pir_motion_events PIR motion events
# TYPE pir_motion_events counter
pir_motion_events 443

Assembled EnviroSense in 3D printed enclosure