Commit graph

10 commits

Author SHA1 Message Date
Bendodroid cf9678d712
Actually end the connection when request checks fail 2024-01-15 23:24:58 +01:00
Bendodroid 7ac8e91cc2
Improve logging in handlers/util.go 2024-01-15 22:32:52 +01:00
Bendodroid cc9cb8888c
Improve logging in handlers/state.go 2024-01-15 22:32:51 +01:00
Bendodroid efbd55aac4
Improve logging in handlers/sensors.go 2024-01-15 22:32:50 +01:00
Bendodroid 1d30c16e46
More readable return statement 2024-01-15 22:24:57 +01:00
Bendodroid 2495ce5808
Remove superfluous WriteHeader calls 2024-01-15 22:20:53 +01:00
Bendodroid 70b2e8069b
Only pass State struct pointer to StateOpen, not entire response 2024-01-14 02:02:58 +01:00
Bendodroid 38710484f9
Generate HTTP endpoints for environment sensors
- Move update request sanity checks to new method in handlers/util.go
- Change EnvironmentSensor.Value type because ParseFloat returns float64
2024-01-14 01:10:38 +01:00
Bendodroid b2f62c7bb0
First implementation of new config format
- Functionally equivalent to old version at present
- Temperature and Humidity sensors not handled yet
- Moved HTTP handlers around
2024-01-13 23:27:24 +01:00
Bendodroid 4b41acfa7b
Major Refactoring
- Move components to separate packages
- Fix HTTP header for 401 response
- Add documentation
2023-11-09 22:30:03 +01:00