Tidy up helper somewhat, and start on implementing reprocess
authorjweigele <jweigele@local>
Fri, 9 Dec 2022 22:50:25 +0000 (14:50 -0800)
committerjweigele <jweigele@local>
Fri, 9 Dec 2022 22:50:25 +0000 (14:50 -0800)
commit4e0d630d7fe90c5d83eac8f78b3b60d133e73861
tree729555abbfb61c1abc7661d037dacf5f17f21b38
parente51190c366e609f98564f7599698e4b02c0fbc2c
Tidy up helper somewhat, and start on implementing reprocess

For helper:
 * Helper does most of the json I/O so we don't need to import in other files
 * Add some structs to manage the complexity of multiple routing keys
 * Various convenience options (IncludeDate on send, Source in the RabbitConfig) for easier scope

For reprocess:
 * Reads in temp pretty simply, and sets prometheus gauges as we've done before
 * Kinda handles DIY temperature (resends and prometheus gauge), and does not care about motion (so won't send it back out)
 * Weird chain of structs to implement different devices
 * Have not started on power or other complicated logic yet
go.mod
helper/helper.go
reprocess/main.go [new file with mode: 0644]
timecolorshift/main.go
timecolorshift/timecolorshift [deleted file]
wunder/main.go