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'")
Search found 2 matches
- Thursday 14 May 2020 10:31
- Forum: LUA
- Topic: Problem with variable
- Replies: 1
- Views: 568
- Thursday 14 May 2020 9:56
- Forum: LUA
- Topic: Problem with variable
- Replies: 1
- Views: 568
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 ...
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 ...