GithubHelp home page GithubHelp logo

optio50 / shelly-ht-g3-mqtt Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 269 KB

Display (in the terminal) and locally store data (in a csv file) from the Shelly H&T G3 sensors. Also includes a chart to display your stored data.

Python 100.00%
chart csv ht humidity matplotlib mqtt python sensor shelly temperature

shelly-ht-g3-mqtt's Introduction

Shelly-HT-G3-MQTT

Display (in the terminal) and locally store data (in a csv file) from the Shelly H&T G3 sensors. Also includes a chart to display your stored data.
The stored data includes Temperature, Humidity, Battery Volts and Battery Percent.

Alt Text
Alt Text
To install make sure you have the additional modules installed
pip install pandas numpy matplotlib paho-mqtt
If you already have paho-mqtt installed this script only supports paho-mqtt > 2.0
to upgrade pip install --upgrade paho-mqtt
git clone https://github.com/optio50/Shelly-HT-G3-MQTT
cd Shelly-HT-G3-MQTT
chmod +x HT-Chart.py
chmod +x HT-MQTT.py
Rename the csv file to start your own (I have included mine so you can test the chart tool)
mv HT-sensor-log.csv HT-sensor-log-old.csv
Edit the HT-MQTT.py file and change the variables to mach your equipment.
./HT-MQTT.py to start viewing and recording data.
You can run the script from the terminal or a cron job / startup routine.
The H&T only comes online every so often.
The values only update after it transmits a Full Status Notification. (Threshold met or 2 hours)
You can hook up an external power supply to increase the transmit frequency to 5 min.
Values will be empty until an update has been triggered.
You can manually trigger an update by single pressing the reset button.

๐Ÿ ‰ reading is increasing from last update
๐Ÿ ‹ reading is decreasing from last update
๐Ÿ ˆ๐Ÿ Š reading is the same as last update

HiveMQ is a free online MQTT broker. the file HT-MQTT-HiveMQ.py is alreadt setup to receive your credentials.
https://www.hivemq.com/products/mqtt-cloud-broker/
You need an MQTT broker to send your data to. This script only retrieves the data from the broker. The broker can be on your local machine.
Each H&T must be setup to sent the data to the broker. Edit the HT-MQTT.py or HT-MQTT-HiveMQ.py file and make the noted changes.

shelly-ht-g3-mqtt's People

Contributors

optio50 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.