Skip to content

Commit

Permalink
Include missing files!
Browse files Browse the repository at this point in the history
  • Loading branch information
GlassOnTin committed Nov 17, 2024
1 parent 1b0914f commit 1b8925b
Show file tree
Hide file tree
Showing 7 changed files with 896 additions and 63 deletions.
2 changes: 1 addition & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@ echo "3. Start the web interface: sudo systemctl start gecko-web"
echo "4. Enable web interface autostart: sudo systemctl enable gecko-web"
echo "5. Check status: sudo systemctl status gecko-web"
echo
echo "The web interface will be available at http://localhost:8080"
echo "The web interface will be available at http://localhost/"
6 changes: 6 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
gecko-controller (0.7.2) stable; urgency=medium

* Include missing files!

-- GlassOnTin <[email protected]> Sun, 17 Nov 2024 01:18:47 +0000

gecko-controller (0.7.1) stable; urgency=medium

* When light sensor is disconnected, use -1 for values
Expand Down
10 changes: 5 additions & 5 deletions gecko_controller/controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -390,11 +390,11 @@ def log_readings(self, temp, humidity, uva, uvb, uvc, light_status, heat_status)
self.logger.info(
"",
extra={
'temp': temp if temp is not None else -999,
'humidity': humidity if humidity is not None else -999,
'uva': uva if uva is not None else -999,
'uvb': uvb if uvb is not None else -999,
'uvc': uvc if uvc is not None else -999,
'temp': temp if temp is not None else -1,
'humidity': humidity if humidity is not None else -1,
'uva': uva if uva is not None else -1,
'uvb': uvb if uvb is not None else -1,
'uvc': uvc if uvc is not None else -1,
'light': 1 if light_status else 0,
'heat': 1 if heat_status else 0
}
Expand Down
Loading

0 comments on commit 1b8925b

Please sign in to comment.