• 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 switch node in node-red framp 0 112 06-24-2020, 10:01 PM
Last Post: framp
  pilight-control TML 13 693 05-27-2020, 07:51 AM
Last Post: curlymo
  API Requests by HTTP from other devices fore use in pilight scootermacro 2 300 05-10-2020, 08:19 AM
Last Post: scootermacro
  pilight-send seems successful but doesn't actually send RF signal ayeyebrazov 37 2,764 03-31-2020, 01:02 PM
Last Post: curlymo
  pilight 8.1.5 not working on Raspberry pi after reboot beejayf 4 720 03-08-2020, 12:14 AM
Last Post: beejayf
  pilight cpu usage possibly associated with noticeable sluggishness? hepcat72 4 750 01-28-2020, 08:02 PM
Last Post: hepcat72
  apt.pilight.org stable Release' is not signed. thomasol 2 828 01-23-2020, 11:34 PM
Last Post: thomasol
  pilight and SIGNALduino cc1101 Caleus 0 570 01-19-2020, 09:13 AM
Last Post: Caleus
  filter stopped working after update to pilight 8.1.5 zlin50 19 1,808 01-03-2020, 02:15 PM
Last Post: curlymo
Question [Solved] Openweathermap with pilight 7.0-40 doesn't work Seebueb 2 725 01-01-2020, 06:45 PM
Last Post: Seebueb

Forum Jump:

Browsing: 1 Guest(s)