Commit Graph

139 Commits

Author SHA1 Message Date
Zergus
826576516f Add support for reading MQTT password from file
Add `--mqtt.password-file` flag and `MQTT_PASSWORD_FILE` env var to allow
reading the MQTT password from a file (e.g. Docker secrets). When set,
the file contents overrides the --mqtt.password value.

Addresses diebietse/invertergui#46
2026-02-15 23:41:11 +02:00
Nicholas Thompson
9471f0b5ac Merge pull request #42 from diebietse/vendor-upgrades
Vendor upgrades
2024-03-18 21:45:11 +02:00
Nicholas Thompson
4d774937df Vendor updates 2024-03-18 21:09:54 +02:00
Nicholas Thompson
3702654ec3 Upgrade libraries
Upgrade libraries to fix CVEs
2024-03-18 21:09:39 +02:00
Nicholas Thompson
7d63422555 Merge pull request #40 from diebietse/vendor-upgrades
Upgrade Go to v1.22 and libraries
2024-02-20 14:45:17 +02:00
Nicholas Thompson
fa6fc5fb34 Fix linter issues
Fix all new linter issues that are raised by golanglint-ci 1.56
2024-02-19 20:08:46 +02:00
Nicholas Thompson
86d865ce1b Update golanglint-ci to 1.56 2024-02-19 20:06:54 +02:00
Nicholas Thompson
516dd6b611 Go vendor update 2024-02-19 20:06:50 +02:00
Nicholas Thompson
df421fcccb Upgrade library versions 2024-02-19 20:06:47 +02:00
Nicholas Thompson
a050189e12 Go version to 1.22 2024-02-19 20:06:43 +02:00
Nicholas Thompson
7bcdc3276f Add upgrade-vendor helper to Makefile 2024-02-19 19:51:13 +02:00
Jedri Visser
9f9e25a796 Merge pull request #36 from diebietse/dev
Update go, dependencies and CI
2023-03-05 19:15:58 +02:00
Jedri Visser
c4a095a094 Update vendor 2023-03-03 21:53:10 +02:00
Jedri Visser
bf4716e8df Update go, dependencies and ci 2023-03-03 21:53:08 +02:00
Nicholas Thompson
574e832152 Merge pull request #32 from diebietse/fix_frequency
Some checks failed
build / inverter_gui_pipeline (push) Has been cancelled
Add frequency clip check
v2.2.0
2022-01-26 20:22:17 +02:00
Nicholas Thompson
2a84799832 Add frequency clip check
Add check to ensure frequency value is set to 0 when period counter hits maximum or minimum
Closes #31
2022-01-26 20:11:15 +02:00
Nicholas Thompson
8adf3c8261 Merge pull request #29 from diebietse/fix-signedness
No longer use RAM value scale signedness for info frames.
2022-01-25 10:32:56 +02:00
Hendrik van Wyk
b3245aba9b No longer use RAM value scale signedness for info frames.
The signedness calculated along with the RAM value scale and offset was
incorrectly applied to the info frame value. This caused some values to
be interpreted as unsigned instead of signed leading to negative values
reporting as very large positive values.
2022-01-11 20:36:56 +02:00
Nicholas Thompson
dac2149fbd Merge pull request #28 from Banshee1221/master
github ci: add arm v6 docker image builds
2021-12-09 12:30:55 +02:00
Eugene de Beste
e501f6d125 github ci: add arm v6 docker image builds 2021-12-09 09:09:11 +02:00
Jedri Visser
341f26f197 Merge pull request #26 from diebietse/update
Some checks failed
build / inverter_gui_pipeline (push) Has been cancelled
Update Dockerfile, vuejs and bootstrap
v2.1.1
2021-05-07 23:30:55 +02:00
Jedri Visser
5e28643a76 Update vuejs and bootstrap 2021-05-07 23:25:07 +02:00
Jedri Visser
b35132451c Clean up Dockerfile 2021-05-07 22:57:45 +02:00
Nicholas Thompson
6b0aeae504 Merge pull request #25 from diebietse/readme-updates
Some checks failed
build / inverter_gui_pipeline (push) Has been cancelled
Update README
v2.1.0
2021-05-06 23:11:02 +02:00
Jedri Visser
950c77886a Update README 2021-05-06 23:05:40 +02:00
Jedri Visser
51221d37d0 Merge pull request #24 from diebietse/github-builds
Move to github builds
2021-05-06 22:54:59 +02:00
Nicholas Thompson
d02baa4e8d Add codecov support 2021-05-06 22:50:23 +02:00
Nicholas Thompson
41b3db0457 Update workspace dictonary 2021-05-06 22:46:43 +02:00
Nicholas Thompson
b6c488b7d4 Move to github builds
Co-authored-by: Jedri Visser <git@jedrivisser.com>
2021-05-06 22:46:27 +02:00
Nicholas Thompson
c4b09b7a14 Merge pull request #22 from diebietse/go-embed
Use Go embed to serve static files
2021-04-27 14:23:25 +02:00
Nicholas Thompson
e201779341 Update vendor directory 2021-04-23 22:33:15 +02:00
Nicholas Thompson
321d19c5c2 Upgrade golangci version 2021-04-23 22:33:14 +02:00
Nicholas Thompson
56c417fd0e Upgrade dependencies 2021-04-23 22:33:14 +02:00
Nicholas Thompson
d3576031bb Use go native embed lib for static assets
Use built in embed library to serve static files instead of the statik library
2021-04-23 22:33:14 +02:00
Nicholas Thompson
f6c3b38976 Upgrade to go 1.16 2021-04-23 22:33:14 +02:00
Hendrik van Wyk
cc8fa9d611 Merge pull request #20 from diebietse/scalefixes
Fix scaling decoding and munin race condition
v2.0.2
2020-10-08 12:29:58 +02:00
Hendrik van Wyk
49be089a23 Fix race condition in munin output.
The munin server used the same structure in two goroutines at once causing
possible data corruption. A copy of the structure is now used by the second
goroutine instead.
2020-10-08 12:25:39 +02:00
Hendrik van Wyk
157736a99d Add optional debug logging for frame decoding. 2020-10-08 12:25:33 +02:00
Hendrik van Wyk
86f3f0c8e3 Fix scaling to more closely match the Victron documentation.
We were decoding the scale as unsigned while it is signed. We were also
ignoring the fact that the sign of the scale determines the signedness of
the value it scales.
2020-09-25 15:03:26 +02:00
Nicholas Thompson
c991503e33 Add mode-2 to scale factors 2020-09-19 18:38:00 +02:00
Nicholas Thompson
55ae241d92 Merge pull request #17 from diebietse/scale-factor-fixes
Fix scale factor issue #16
v2.0.1
2020-09-13 21:58:57 +02:00
Nicholas Thompson
ab346bcf90 Disable dead code check for RAM IDs 2020-09-13 21:14:24 +02:00
Nicholas Thompson
4c6df96051 Add unit test to scaleDecode 2020-09-13 20:56:26 +02:00
Nicholas Thompson
2a56dd24e4 Cleanup mk2 logging 2020-09-13 20:56:22 +02:00
Nicholas Thompson
65d9429a12 Add constants to frame decoder 2020-09-13 20:56:15 +02:00
Nicholas Thompson
5fb5ce5f12 Add check to scaling factors
Fix scaling append
2020-09-13 20:52:39 +02:00
Nicholas Thompson
3f783fabf8 Merge pull request #15 from diebietse/mqtt-plugin
Add n MQTT plugin to invertergui
v2.0.0
2020-06-15 17:14:42 +02:00
Nicholas Thompson
4f428d6bda Update codecov limits to current coverage 2020-06-15 16:40:39 +02:00
Nicholas Thompson
eb737b6527 Update Go and lint version for travis CI 2020-06-15 14:27:10 +02:00
Nicholas Thompson
1840fae1aa Update vendor for all new features 2020-06-15 14:05:59 +02:00