/sensor

Micro Python with Elasticsearch, Logstash and Kibana Dashboard

Primary LanguagePythonMIT LicenseMIT

sensor

Humidity and temperature logger on Micro Python PYB v1.0

The humidity and temperature is recorded periodically (every 5 minutes) to a log file on the SD card.

Micro Python data logger

Required hardware:

  • Micro Python PYB v1.0
  • Adafruit HIH6130 Humidity Sensor Breakout
  • Adafruit 7-segment LED HT16K33 backpack

image

Source code: micropython

Kibana Dashboard

Elasticsearch, Logstash and Kibana can be used to visualize the log data:

screenshot

(A more advanced dashboard with Docker can be found here)

Usage on Debian Jessie 8:

$ sudo apt-get install default-jre-headless curl
$ git clone https://github.com/tinytux/sensor.git
$ cd sensor/dashboard
$ ./start.sh
$ ./feedlogs.sh ./logdata/logdata.txt

Then visit http://localhost:9292/index.html#/dashboard/elasticsearch/SensorDashboard

Source code: dashboard