• 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
Using pilight-daemon socket API
Heyho community,

i wanted to trigger a "pillight-send" through the pilight-daemon socket, but unfortunetly it does not work.
I read the documentation under /development/socket and tried it like in the actions part described.
Not succeeding i ran the deamon in debug mode an watched the traffic on the choosen port. i compared the json i send with the json which arrived when calling "pilight-send". Because it was different, i adapt the json format from the succeding pilight command.
Now i am at the point where both, the json of pilight-send and my equal to that json from my python script arrive at the port, to which the deamon listens.
But still the lights don't change with my python json.
Can anybody tell me what is going wrong? Am i using the API in a wrong way? Or how to use it instead?

Thank you for reading,
Have you checked the pilight-send source to compare the implementations?
(04-28-2019, 08:15 PM)curlymo Wrote: Have you checked the pilight-send source to compare the implementations?

No not yet, thats a good point! IThank you, i will do it and will let you know!
Ok, so i compared my code to the examples of python clients in the source-code. The example just refer to the case, where they want the daemon to identify.
So im still not sure, whats the format for a "send" action. Like described in the docs or eqal to what arrived when using pilight-send? No idea.. Maybe some experiences might help?
You compared to the python examples, i meant comparing to the C code of pilight-send.

Possibly Related Threads...
Thread Author Replies Views Last Post
  pilight 8.1.4 crashes after some hours Ulrich.Arnold 3 62 Yesterday, 08:46 PM
Last Post: curlymo
  pilight-send does not stop (terminate) va13 3 67 05-15-2019, 06:06 PM
Last Post: curlymo
  oom_reaper: reaped process pilight-daemon va13 4 86 05-15-2019, 08:03 AM
Last Post: va13
  cant configure or even start pilight on raspi 3b Xvnx23 2 97 05-06-2019, 09:47 PM
Last Post: fourty2
Sad Raspberry Pi: "NOTICE: no pilight ssdp connections found" abusch 8 135 04-30-2019, 09:10 PM
Last Post: curlymo
  pilight-flash not working danny 9 174 04-27-2019, 09:02 PM
Last Post: curlymo
  pilight and Lirc lordslash 3 98 04-24-2019, 06:32 PM
Last Post: curlymo
Question Pi 3+ & pilight & 433Mhz RXB6: no receiption hacklschorsch 3 440 02-05-2019, 10:37 PM
Last Post: hacklschorsch
  Consecutive pilight commands habitoti 4 385 01-28-2019, 03:32 PM
Last Post: habitoti
  pilight not working with fresh Openhab 2 image habitoti 2 266 01-24-2019, 08:44 PM
Last Post: habitoti

Forum Jump:

Browsing: 1 Guest(s)