Other protocols are using other variables to be sent to pilight. (e.g. "unitcode" instead of "unit")
I had success with "elro"-protocol by editing following line to:
my $data = "{ \"message\": \"send\", \"code\": {\"protocol\":[ \"$protocol\" ],\"systemcode\":\"$housecode\", \"unitcode\":\"$number\",\"$param\":\"1\"}}";
Is it possible to ad a variable to handle different protocols? I have barely no programming skills, otherwise i would do it myself.
Feature request:
Other protocols are using other variables to be sent to pilight. (e.g. "unitcode" instead of "unit") I had success with "elro"-protocol by editing following line to: my $data = "{ \"message\": \"send\", \"code\": {\"protocol\":[ \"$protocol\" ],\"systemcode\":\"$housecode\", \"unitcode\":\"$number\",\"$param\":\"1\"}}";
Is it possible to ad a variable to handle different protocols? I have barely no programming skills, otherwise i would do it myself.
(Information about different protocols: http://wiki.pilight.org/doku.php/protocols)
Thanks for your great work!