Search found 2 matches

by kish89
Thursday 14 May 2020 10:31
Forum: LUA
Topic: Problem with variable
Replies: 1
Views: 513

Re: Problem with variable

Never mind, it's always happening when I ask for help.
This was the solution:
os.execute ("runuser -l pi -c \'python /home/pi/online_radio.py " .. devicechanged['OnlineRadio'] .. " &> /dev/null'")
by kish89
Thursday 14 May 2020 9:56
Forum: LUA
Topic: Problem with variable
Replies: 1
Views: 513

Problem with variable

Hello, I have python script with list of online radio stations. Python script takes one argument, like so: "python_script.py OnlineRadioStationName". This works fine when executed in shell, but I have a problem linking this script to domoticz. Here is the domoticz lua script: commandArray = {} if ...