22 Commits

Author SHA1 Message Date
ee49093e81 Started working on regulator software to hold temperature efficiently 2021-11-13 18:32:37 +01:00
d30f4b3b42 Fix: Py object keys must be string 2021-11-13 18:31:45 +01:00
e6adc5b152 Log when BME sensor is not found during setup & when spawning sensor background task 2021-11-13 18:31:14 +01:00
86debb9abb Feat: Try read system set timezone and use this for es timestamp value
Replace hardcoded timezone offset. Noticed after we entered winter timezone.
2021-11-13 18:27:46 +01:00
5e0c5a359b Sensor daemon argv flag renamed '-c' --> '-d' 2021-10-06 22:28:42 +02:00
d313211ffb Merge branch 'main' of github.com:KevinMidboe/brewLogger into main 2021-10-06 22:22:37 +02:00
32416ca243 Loading peripherals from yaml file moved from server to seperate file. 2021-10-06 22:19:51 +02:00
95a8fb7a77 Daemon functions for logging temp no longer recursive 2021-10-06 22:18:57 +02:00
eaec69953a Update README.md 2021-10-03 19:55:42 +02:00
73b939b643 Removed unused prints 2021-10-03 19:36:17 +02:00
0754cef450 Corrected sensor name BCM600 --> BME680 2021-10-03 19:35:50 +02:00
7bdbf0b4dc Moved brewfiles to source folder & add /source to sys path from __init__ 2021-10-03 19:27:02 +02:00
f58b33f08a Required py packages defined in file
Removed unused pytest package from utils
2021-10-03 19:15:43 +02:00
4c30bbd464 Define sensors and relays from yaml file
With yaml we can add class constructors matching our brew classes. See top of server for custom yaml loader constructors.
2021-10-03 18:59:50 +02:00
24055429b7 Added capture.jpg and local sqlite3 file to ignore 2021-10-03 18:57:11 +02:00
17fb9b5fc5 Flask server for displaying and interacting with fridge
Web interface defined in template for displaying sensor data, camera capture and action buttons.
2021-10-03 18:53:11 +02:00
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