Closed mmattice closed 4 years ago
--machine
hasn't been fully implemented in all code bases. Currently only available in one(??) driver.
Which driver is that for reference?
NM. Found it. I hacked in some capabilities for the two devices I've got. It probably isn't a huge stretch to add the json stuff to everything.
https://github.com/mmattice/OpenCorsairLink/tree/commanderpro_json
The commits to main.c cause it to loop through everything if it's in JSON mode, so it dumps it all in a mostly nicely formatted object. I'm just throwing that directly at my MQTT server so I can process things and alert from node-red. Like so:
* * * * * root /usr/local/sbin/OpenCorsairLink --json 2>/dev/null | /usr/bin/mosquitto_pub -h mqtt -t hosts/server/corsair -s
Describe the bug --help suggests --machine gives output in machine readable format, but prints nothing
To Reproduce
Expected behavior Some sort of machine readable output, json, csv, etc
Desktop (please complete the following information):