redis beta 1
This commit is contained in:
1 parent
63102b7740
commit
b23b52ed2e
3 files changed
+34
-27
No files matched your search
@@ -2,7 +2,7 @@
|
||||
|
||||
## 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.
|
||||
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.
|
||||
|
||||
Some product info can be found here at my Knowledgebase:
|
||||
|
||||
@@ -12,8 +12,6 @@ https://kb.matt-cloud.com/books/07-saved-articles/page/xiaomii-temperaturehumidi
|
||||
|
||||
Aside from a REST API, there are a few more features which need to be added to this app.
|
||||
|
||||
* REDIS function for Node.js Websocket support
|
||||
* In the end this will drive a web dashboard, and I want to be able to view live data on this dashboard
|
||||
* Friendly Names for Sensors
|
||||
* There will be a variable added to the `config.py` file to pre-configure friendly names for specific MAC addresses.
|
||||
* For example, *Living Room* or *Main Bedroom*
|
||||
@@ -182,7 +180,6 @@ The Python code is split across multiple files with different files having code
|
||||
ble-scanner/
|
||||
├─ app.py # Flask + Scheduler + API
|
||||
├─ ble.py # BLE helper functions to read temp+humidity data
|
||||
├─ ble-redis.py # Redis functions for Websocket support
|
||||
├─ scanner.py # Async BLE scan + cache logic
|
||||
├─ config.py # Shared constants (prefix, interval, etc.)
|
||||
├─ requirements.txt # Python VENV requirements
|
||||
|
||||
Reference in new issue
Block a user