• 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
need some help with program protocol
I'm new to raspi/linux and more into Arduino programming and currently prefere a raspi/arduino combination for my homeautomation. My programming knowledge is self-taught, so maybe I'll use the wrong vocabulary ;-).

I would like to send arguments to a script I wrote in python! The arguments will be transfer to a serial.write command inside the script. 

Example command:
$ python scmd.py -ic1d

This command selects channel 1 (c1) and moves my screens down (d) by my "arduino hacked" somfy remote. As far this works well!

First my plan is to send commands to the arduino and it should make the rest, like lifting the screens by night or close them if it's getting to warm inside during sunshine. The arduino only needs serial commands like described above and it has its own routines. 

But I don't know how to integrate a controll to pilight! Is it possible yet? I had a look at the program protocol but as far I understand it right it fits not to my plans. Or am I wrong?
Use the generic_switch and check state changes through the socket api you can use within python.

Possibly Related Threads...
Thread Author Replies Views Last Post
  Protocol Program PID AdHoc-Client Bigmama 12 878 01-26-2019, 07:36 PM
Last Post: Bigmama
Exclamation pilight detect wrong protocol quigg_gt9000 is not quigg_gt1000 PCT 1 859 08-12-2018, 11:13 AM
Last Post: Niek
  problem with alecto_wx500 protocol (pilight V7) TheWheel 18 5,471 04-12-2018, 06:38 PM
Last Post: NevelS
  deleyCON remote plug socket (arctec_screen_old protocol) itsMe 6 1,187 04-01-2018, 08:35 PM
Last Post: itsMe
  Problem with Protocol gpio_switch engel035 15 3,035 03-19-2018, 06:46 PM
Last Post: curlymo
  arctech_contact protocol missing open/close signals Niek 2 644 12-23-2017, 07:16 PM
Last Post: Niek
  Extend generic protocol mickey.lm 6 1,131 11-20-2017, 10:51 PM
Last Post: mickey.lm
Star How to bind new protocol with GUI polo 11 2,079 11-12-2017, 10:12 PM
Last Post: curlymo
  Configuration example with program and ACTION to control MPD tomk 0 582 09-12-2017, 07:02 PM
Last Post: tomk
Question TFA protocol requires channel receive protocolls only ID Rschnauzer 18 4,387 12-22-2016, 07:14 PM
Last Post: Rschnauzer

Forum Jump:

Browsing: 1 Guest(s)