Commit Graph

3 Commits

Author SHA1 Message Date
8f7a285289 Extract data from mqtt json payload 2020-08-31 07:01:40 +02:00
985b4e8fde Prepare for storing device data in database
- create device id from mqtt topic
- implement method for storing device in database

Still todo:
- extract other data (e.g. MAC, SN) from monitoring object
- find a way in mqtt to use global env
2020-08-30 21:42:01 +02:00
daa79b27ca Extend this program:
- add a database for devices
- read devices from database and present this data on a simple web/REST
interface

The code or model is from a blog entry from Alex Edward:
https://www.alexedwards.net/blog/organising-database-access
2020-08-30 07:16:50 +02:00