Hi
I am having an issue of passing a python parameter using executeCommandLine within rules. I tried various options ( as you can see below) but it’s not working…When I hard code the parameter value within quotes it works.Can you please let me know where I am going wrong?
rule "Control_Switch_Humidifier"
when
Item Humidifier_Threshold received command
then
var HT_Val = Humidifier_Threshold
var string result_threshold = " "
// results_threshold = "python2 /home/pi/MyWorkplace/Humidifier.py" + "\\ " + Humidifier_Threshold.toString
// executeCommandLine(result_threshold,5000)
results_threshold = executeCommandLine("python2 /home/pi/MyWorkplace/Humidifier.py --value" +Humidifier_Threshold.value ,5000)
// results_threshold = executeCommandLine('python2 /home/pi/MyWorkplace/Humidifier.py' +Humidifier_Threshold+ ,5000)
Humidifier_Threshold.postUpdate(receivedCommand)
logInfo("Sendin Humidity Threshold back to Ardino", result_threshold"..)