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
Hendrik van Wyk
b8f915ee92
Update the readme to include the MK2 RS232.
...
The MK2 RS232 version works with a USB to serial converter or directly
with a RS232 port. Update the readme with this information.
2019-01-19 15:05:54 +02:00
Hendrik van Wyk
ddbaf605ea
Us go build instead of go install.
...
Go install places the binaries wherever the GOPATH is set which could be
some non related directory. Rather use go build and place the binaries in
this directory.
2019-01-19 14:47:46 +02:00
Hendrik van Wyk
ad2d9856bf
Fixed battery power and current being incorrectly reported to Prometheus.
2017-09-21 19:37:10 +02:00
Hendrik van Wyk
a52af88bff
Use mk2if instead of datasource as data source.
...
This removes support for the python based mk2daemon.
2017-09-16 15:37:58 +02:00
Hendrik van Wyk
dd8ee443e2
Add timestamp to mk2info
2017-09-16 15:36:24 +02:00
Hendrik van Wyk
33ad6b8d1d
Vendor go-serial.
2017-09-16 15:25:31 +02:00
Hendrik van Wyk
44891b1795
Better cleanup code in invertercli.
2017-09-16 14:03:04 +02:00
Hendrik van Wyk
5bd6257bad
gofmt
2017-09-16 14:02:43 +02:00
Hendrik van Wyk
f89b619b23
That did nothing.
2017-09-16 13:34:05 +02:00
Hendrik van Wyk
0bd6b448b8
Make mk2ser wait for goroutine to finish on Close.
2017-09-16 13:32:23 +02:00
Hendrik van Wyk
337c897afc
Add more decimal points to the frequency output.
2017-09-16 13:13:32 +02:00
Hendrik van Wyk
58f446de81
Add channel based interface.
2017-09-16 13:13:23 +02:00
Hendrik van Wyk
7eb7037476
Build cli.
2017-09-16 13:06:11 +02:00
Hendrik van Wyk
a7f381af8e
Fix data race.
2017-09-16 13:06:01 +02:00
Hendrik van Wyk
1c4b44d5e3
Add command line parameter for address to listen on.
2017-09-16 12:05:51 +02:00
Hendrik van Wyk
2e623658ca
Use time provided by data poller instead of getting time again.
2017-09-16 12:05:15 +02:00
Hendrik van Wyk
74a3722b09
Fix my tests.
2017-09-16 11:53:45 +02:00
Hendrik van Wyk
ad170b556e
Merge branch 'prometheus_experiment' into nictesting
2017-09-16 11:40:49 +02:00
Hendrik van Wyk
f0420ebdc1
Unexport templateInput.
...
I did not know you could do that 2 years ago.
2017-09-14 21:34:43 +02:00
Hendrik van Wyk
38094da9de
Add date to html output.
2017-09-14 21:33:23 +02:00
Hendrik van Wyk
53eda718d7
Add experimental prometheus support.
2017-09-13 21:39:37 +02:00
Hendrik van Wyk
169887f4a5
Only compile the invertergui binary.
2017-09-13 21:38:33 +02:00
Hendrik van Wyk
b4a7a6984d
Add dependencies for prometheus client.
2017-09-13 21:35:33 +02:00
Hendrik van Wyk
0c04eab1c1
Made charge tracker get time stamps from data poller instead of internally.
2015-02-28 15:46:55 +02:00
Hendrik van Wyk
70bdaa99eb
Added command line argument to set the capacity of the batteries used.
2015-02-28 15:16:29 +02:00
Hendrik van Wyk
1732b0c854
Fixed print being used instead of printf.
2015-02-28 15:14:35 +02:00
Hendrik van Wyk
3cd2faf3ef
Moved the polling of data from the webgui to its own dedicated poller.
...
This should simplify testing of webgui.
2015-02-28 15:14:15 +02:00
Hendrik van Wyk
2b63a81cec
Added munin logging support.
2015-02-08 16:10:34 +02:00
Hendrik van Wyk
29d6e21b57
Added missing license header.
2015-02-08 16:09:47 +02:00
Hendrik van Wyk
3cde999de9
Added a primitive battery charge monitor.
2015-02-08 11:28:04 +02:00
Hendrik van Wyk
e26aa12dce
Initial commit of source.
2015-02-08 10:13:36 +02:00