copied cosmostat web dashboard for init dashboard work
This commit is contained in:
1 parent
b414065d63
commit
92a97752ad
28 files changed
+2804
-3
No files matched your search
@@ -1,10 +1,14 @@
|
||||
# Xiaomii BLE Sensor API
|
||||
# Xiaomii BLE Sensor Dashboard
|
||||
|
||||
## Summary
|
||||
|
||||
This is an API for monitoring Temperature and Humidity data for Xiaomii LYWSD03MMC BLE sensors. The app will scan for any of these devices by looking for the Bluetooth MAC octet and then filtering by model. Once it has a list of MACs, it will then attempt to read the Temp/Humidity data for each MAC and record it. This data can be interacted with through an API. The app has a Redis publishing function for use with websockets. The comment field for sensors can be configured using the appropriate variable in the `config.py` as well. This app uses *Pickle* to persist Sensor object data between App launches. This doesn't keep history like Telegraf would, but it will allow for faster API startup.
|
||||
This is a web dashboard for monitoring Temperature and Humidity data for Xiaomii LYWSD03MMC BLE sensors. This app has a Python API to discover and monitor the sensors, and will have a website that interfaces with it. The website will load the intial static content with the API, and has a Node.js server for handling live web socket data using the Redis server.
|
||||
|
||||
Some product info can be found here at my Knowledgebase:
|
||||
The Python API will scan for any of these devices by looking for the Bluetooth MAC octet and then filtering by model. Once it has a list of MACs, it will then attempt to read the Temp/Humidity data for each MAC and record it. This data can be interacted with through an API. The app has a Redis publishing function for use with websockets. The comment field for sensors can be configured using the appropriate variable in the `config.py` as well. This app uses *Pickle* to persist Sensor object data between App launches. This doesn't keep history like Telegraf would, but it will allow for faster API startup.
|
||||
|
||||
The web dashboard lives in a Docker container based on PHP with Node and Redis added, and is managed by Supervisord. The static page is rendered with PHP and live data will be updated with Node.js based on the data received by Redis. The tech stack is Apache+PHP for the HTML, and Node.js for Websockets. The page loads statically with the API initially and will get updates from the Node server when Redis data is received.
|
||||
|
||||
Some product info for these sensors can be found here at my Knowledgebase:
|
||||
|
||||
https://kb.matt-cloud.com/books/07-saved-articles/page/xiaomii-temperaturehumidity-sensor
|
||||
|
||||
|
||||
Reference in new issue
Block a user