09-17-2019, 08:12 PM
I want to use the pilight-control program to change values on weather stations. The pilight manual says I should be able to modify values of a device:
When I run
I would expect the temperature value of my weather station named Tempsens2 to be set to 20, but I get this error message as if I used the pilight-control program incorrectly:
Usage: pilight-control -d device -s state
When checking in the source code I see that the command line option "state" is mandatory, but a weather station does not have a state I can set:
How is this "modifying other values" supposed to work? Or did I just find a bug?
Quote:pilight-control is a tool to control a device configured in a pilight daemon configuration. It supports switching the state and/or modifying other values (such as dimlevel, temperature, or humidity) of the device.
When I run
Code:
pilight-control -d Tempsens2 -v temperature=20
Usage: pilight-control -d device -s state
When checking in the source code I see that the command line option "state" is mandatory, but a weather station does not have a state I can set:
Code:
if(device == NULL || state == NULL ||
strlen(device) == 0 || strlen(state) == 0) {
printf("Usage: %s -d device -s state\n", progname);
goto close;
}
How is this "modifying other values" supposed to work? Or did I just find a bug?