• 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
Send pulsestream via API
#1
Is there a way to send an array of pulsedata, e. g.


Code:
[400, 400, 800, 400, 400, 400, 800, 400, 400, 400, 800, 400, 400, 400, 800, 400,400, 400, 800, 400, 400, 400, 800, 40]


via the socket API so that it would be sent using the configured hardware?
 
Reply
#2
It should be possible, because i also implemented the raw protocol. I'm just not sure how i did it Tongue
 
Reply
#3
Oh, this looks good. The reason is that I try to find a way to control pilight with apps like "Stecker-Pro" or "PowerSwitch". These send UDP frames containing the pulsedata. I'm not sure if there is a good place to implement it directly in pilight, but another way would be a simple additional daemon "bridging" and converting the data.
 
Reply
#4
I would opt for implementing
 
Reply
#5
Any idea where/how to implement? Directly in the daemon?
 
Reply
#6
Can you tell me more about what you are trying to implement?
 
Reply
#7
- receive a UDP datagram like:
Code:
TXP:0,0,10,20000,350,25,1,3,3,1,1,3,3,1,1,3,3,1,1,3,3,1,1,3,3,1,1,3,3,1,1,3,3,1,1,3,3,1,1,3,3,1,1,3,3,1,1,3,1,3,1,3,3,1,1,17;

- Do some parsing and generating a pulsetrain [350, 1050, 1050, 350, 350, 1050, 1050, 350, .....]
- Send it out
 
Reply
#8
And what the app like? Can you tell me more about that?
 
Reply
#9
There are some apps around, e. g.
- http://www.steckerpro.com/
- https://play.google.com/store/apps/detai...itch&hl=de

I already wrote a pythonscript which is interfacing this protocol directly with the RaspyRFM, but without using pilight.
 
Reply
#10
I would say we can create a hardware module that listens to a certain UDP port and transforms incoming messages to raw values that we can sent directly, or translate to pilight protocols and then sent it.
 
Reply
  


Possibly Related Threads...
Thread Author Replies Views Last Post
  Bug: double free or corruption in pilight-send blackzombie 12 383 10-07-2019, 08:15 PM
Last Post: blackzombie
  Issue send actions over Socket API in AdHoc network ggtrts 10 1,016 03-13-2019, 06:32 AM
Last Post: curlymo
  pilight-send and pilight-daemon DieterK 0 624 06-20-2018, 12:44 AM
Last Post: DieterK
  Switching ceiling fan with pilight-send -p raw gadget 4 2,826 01-12-2016, 07:39 PM
Last Post: eunger
  Send Mail as API Action Cipher 1 1,464 07-25-2015, 07:00 PM
Last Post: curlymo
  send-repeat Tommybear1979 7 4,243 06-18-2015, 08:04 AM
Last Post: wo_rasp
  Use pilight to send data between RPis Korrupt 3 2,524 06-01-2015, 10:40 PM
Last Post: curlymo
  Web GUI working, pilight-send not for elro_he sensorback 4 3,572 02-05-2015, 10:32 PM
Last Post: sensorback
Question pilight-send or pilight-control --> update config.json terrar 3 3,316 10-23-2014, 07:52 PM
Last Post: curlymo
  API: send raw code to daemon Leehta 6 4,678 03-11-2014, 11:29 PM
Last Post: curlymo

Forum Jump:


Browsing: 1 Guest(s)