Commit Graph

4 Commits

Author SHA1 Message Date
ac3bb1ebe9 Write data in database table 2020-09-02 09:05:00 +02:00
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