Commit graph

32 commits

Author SHA1 Message Date
2880a24aaf
off by one? 2023-01-22 14:09:39 +11:00
9fe38095fb
Keep skipped values, split reads more 2023-01-22 13:51:05 +11:00
8408517b7d
RWMutex; update lastValues all at once 2023-01-21 20:48:47 +11:00
fa7b18bc2d
tweak error messages 2023-01-21 17:08:11 +11:00
00b58cbdb9
Tweak log message 2023-01-21 17:02:24 +11:00
40b56ee7ec
Completely rearrange main.go 2023-01-21 16:59:12 +11:00
d198f61ea9
Only go in runs of 50? 2023-01-16 18:09:08 +11:00
619e4409e1
Range var capturing? 2023-01-07 17:49:22 +11:00
ea6f44e867
Make input registers GaugeFuncs 2023-01-07 17:37:54 +11:00
93e9f6a7ba
Add LICENSE, fix minor lints 2023-01-07 16:41:15 +11:00
9f13f2818b
Move module path 2023-01-06 16:53:25 +11:00
Josh Deprez
11fae1e914 argh 2021-02-07 18:01:27 +11:00
Josh Deprez
222d71a8e0 better 2021-02-07 17:53:56 +11:00
Josh Deprez
fbfda3b144 try multiple addresses 2021-02-07 17:52:20 +11:00
Josh Deprez
ad38fcaf8d make log better 2021-02-03 21:28:24 +11:00
Josh Deprez
3f886b0dfd add another check 2021-02-02 16:25:58 +11:00
Josh Deprez
00a7bfe502 remove commented out error 2021-01-26 12:20:06 +11:00
Josh Deprez
ff0dc5a5e1 add more registers 2021-01-25 16:05:57 +11:00
Josh Deprez
9ace279f5e adjust default inverter addr 2021-01-24 16:31:12 +11:00
Josh Deprez
a508ed0ceb do something useful for status 2021-01-19 15:11:26 +11:00
Josh Deprez
d97cb74f3f add skippable 2021-01-12 10:45:52 +11:00
Josh Deprez
fac81285da add sanity check on uint values 2021-01-11 10:21:53 +11:00
Josh Deprez
137a895704 vendor again 2021-01-10 15:20:11 +11:00
Josh Deprez
be41ca7c63 remove vendor, but fork modbus pkg for now 2021-01-10 15:14:38 +11:00
Josh Deprez
e672276374 tariffs and vendoring 2021-01-10 14:43:46 +11:00
Josh Deprez
1ecb5ecdba use smaller container as base 2021-01-05 20:47:41 +11:00
Josh Deprez
4396ec6592 connect to device via name in case of further network blips 2021-01-04 16:21:29 +11:00
Josh Deprez
833dcb07f6 die if webserver dies 2021-01-04 10:43:04 +11:00
Josh Deprez
1507dcc158 start http only after successful scrape 2021-01-04 10:42:14 +11:00
Josh Deprez
da677e9c6f tweaks 2021-01-01 20:00:07 +11:00
Josh Deprez
30ef059ce4 maybe it needs a lock? 2021-01-01 19:50:24 +11:00
Josh Deprez
b9c49613fe clean commit 2021-01-01 16:51:16 +11:00