Commit Graph

6 Commits

Author SHA1 Message Date
85685a49b6 Read relay database from config 2021-10-03 18:52:03 +02:00
b75671e68c Logger and config setup. Logger also pushes to elastic 2021-10-03 18:51:10 +02:00
63eb29c4c5 Interfacing classes for dht11 & bcm600 tempreature sensors
This is meant to grow to accommodate all kinds of temp sensors. They have a small base class,
 where most of the common functions like temp, humidity etc, are sensor specific.
2021-10-03 18:32:15 +02:00
d812c440e1 Setup relay controller, includes db for saving state
Pin represents rpi gpio pin & controls is string describing what the relay controls.
Any state change is save to sqlite database.
2021-10-03 18:27:47 +02:00
343d0855c7 Setup camera capture. Captured image has datetime timestamp overlay
Main function here is the capture function. All attrs are currently fixed.
The server fetches the saved image, in order to not have read/write conflict we first save captured image as 'assets/foo.jpg' and after capture rename it to 'assets/capture.jpg'.
2021-10-03 18:27:22 +02:00
e0247cd75f Initial commit 2021-09-26 19:14:43 +02:00