The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 895 - File: showthread.php PHP 7.3.14-1~deb10u1 (Linux)
File Line Function
/showthread.php 895 errorHandler->error



  • 10 dec 2017: forum version update. In case of issues use this topic.
  • 30 nov 2017: pilight moved servers. In case of issues use this topic.
Hello There, Guest! Login Register


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
pilight-control modify values
#1
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:

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
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:

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?
 
Reply
  


Messages In This Thread
pilight-control modify values - by coolinx - 09-17-2019, 08:12 PM
RE: pilight-control modify values - by curlymo - 09-17-2019, 09:01 PM
RE: pilight-control modify values - by coolinx - 09-20-2019, 07:24 PM
RE: pilight-control modify values - by coolinx - 11-05-2019, 08:30 PM
RE: pilight-control modify values - by curlymo - 11-06-2019, 11:01 PM
RE: pilight-control modify values - by coolinx - 11-09-2019, 09:51 PM
RE: pilight-control modify values - by curlymo - 11-09-2019, 10:28 PM
RE: pilight-control modify values - by coolinx - 11-10-2019, 08:42 PM
RE: pilight-control modify values - by curlymo - 11-10-2019, 09:18 PM
RE: pilight-control modify values - by coolinx - 11-11-2019, 08:52 PM
RE: pilight-control modify values - by curlymo - 11-11-2019, 10:05 PM
RE: pilight-control modify values - by coolinx - 11-12-2019, 09:51 PM
RE: pilight-control modify values - by curlymo - 11-12-2019, 10:28 PM
RE: pilight-control modify values - by coolinx - 11-13-2019, 02:54 AM
RE: pilight-control modify values - by curlymo - 11-13-2019, 07:17 PM
RE: pilight-control modify values - by coolinx - 11-13-2019, 07:44 PM
RE: pilight-control modify values - by curlymo - 11-13-2019, 08:02 PM

Possibly Related Threads...
Thread Author Replies Views Last Post
  pilight start/stop loop Rschnauzer 1 232 10-27-2022, 10:28 PM
Last Post: Rschnauzer
  pilight on raspbian bullseye ChristianK 3 1,576 07-29-2022, 10:18 PM
Last Post: Henkehh
  pilight-raw changes output format from 7 to 8 Rschnauzer 2 1,621 05-04-2022, 01:32 PM
Last Post: youradultworld
Question pilight stopped working sl4m01 5 2,464 09-16-2021, 01:34 PM
Last Post: orlo11
  how to compile pilight with custom protocol code? am i missing something? stanwebber 2 994 07-05-2021, 03:49 AM
Last Post: stanwebber
  hardware info lost after pilight restart Rschnauzer 3 1,235 03-17-2021, 11:44 AM
Last Post: Rschnauzer
Question pilight nightly webgui offline after some hours fleisch 4 1,708 10-26-2020, 05:19 PM
Last Post: fleisch
  pilight bugs Ascenion 1 1,228 03-23-2020, 06:29 PM
Last Post: curlymo
  [Solved] pilight service crashing on first webserver access after reboot VrahoK 20 7,520 12-21-2019, 09:46 AM
Last Post: curlymo
  Bug: double free or corruption in pilight-send blackzombie 12 5,105 10-07-2019, 08:15 PM
Last Post: blackzombie

Forum Jump:


Browsing: 1 Guest(s)