Closed klaernie closed 4 years ago
I was quite surprised that for my RPM1000i I got no machine readable output - turns out there was none.
This PR just adds the output messages, using the same printf() formats as the human output.
printf()
That is the resulting format on my machine:
hive # ~/OpenCorsairLink.elf --device=0 --machine temperature:0:44.02 temperature:1:34.80 powered:47079 uptime:47079 supply-voltage:230.00 total-watts:228.00 rail-voltage:0:12.09 rail-amperage:0:17.00 rail-watts:0:204.00 rail-voltage:1: 5.03 rail-amperage:1: 2.62 rail-watts:1:13.00 rail-voltage:2: 3.31 rail-amperage:2: 3.38 rail-watts:2:11.00
Curiously the rail voltage and amperage deliver a leading space if the value is <10, but I did not have time to track down where this comes from.
I was quite surprised that for my RPM1000i I got no machine readable output - turns out there was none.
This PR just adds the output messages, using the same
printf()
formats as the human output.That is the resulting format on my machine:
Curiously the rail voltage and amperage deliver a leading space if the value is <10, but I did not have time to track down where this comes from.