Commit graph

13 commits

Author SHA1 Message Date
fd3cae1866 feat: SpaceAPI v15 support
Delete types/v14.go, replace with v15.go.

Rename internal types to not include message version.
I don't currently see the need to support multiple message
versions that have incompatible layouts.
v15 is backwards compatible with v14, so the config example now
specifies both.

Rename the "response" field in the config file to "static" as
dynamic/static makes more sense from the user's perspective.
(Internally it's still SpaceapidConfig.{Dynamic,Response}
to align with type names and usage.)
2026-07-25 22:51:26 +02:00
68d0ec05db feat: Add support for PUT/DELETE state.message
Fix #33
2024-08-03 19:50:19 +02:00
8015ed2be5
Location is optional for beverage_supply so make it omitempty 2024-05-26 20:52:22 +02:00
0241a506d4
Handle sensors that don't have a name, just a location 2024-01-14 21:54:44 +01:00
70b2e8069b
Only pass State struct pointer to StateOpen, not entire response 2024-01-14 02:02:58 +01:00
44143c0c2d
Save sensor values to persistent-state.json 2024-01-14 02:02:55 +01:00
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
daac0b3b9e
Change Sensors field type in config and response to map 2024-01-14 01:01:12 +01:00
ab0a91d5f2
Add fields for Temperature and Humidity sensors to SpaceAPIResponseV14 2024-01-13 23:27:22 +01:00
8a1cf0456a
First working? version with persistent state 2023-11-10 03:24:12 +01:00
4eb1f18bf5
Adjust struct variable naming 2023-11-09 22:30:08 +01:00
6d70d29050
Remove custom open/close icons
We currently specify both icons but both are 404s...
2023-11-04 21:16:27 +01:00
be29af436f
Initial commit 2023-11-04 21:07:27 +01:00