Search found 2 matches

by boodschap
Friday 15 October 2021 14:28
Forum: dzVents
Topic: execute through SSH
Replies: 2
Views: 375

Re: execute through SSH

Ok Thank you! Changed the script, works as a charm!
sudo -u pi ssh [email protected] mplayer -noconsolecontrols http://icecast.vrtcdn.be/radio1-high.mp3 -volume 100 &> /dev/null
by boodschap
Friday 15 October 2021 13:52
Forum: dzVents
Topic: execute through SSH
Replies: 2
Views: 375

execute through SSH

I have this script I want to execute through SSH. It works perfectly in terminal, but not in my script... What am I missing?

return {
on = {
devices = { 'Radio' },
timer = { 'every 5 minutes' },
},

execute = function(domoticz, device)

if domoticz.devices('Radio').state == 'Off' then
os ...