In ~/domoticz/scripts I have placed a script named posten.sh
The script contains this
Code: Select all
#!/bin/bash
castnow --quiet --address 192.168.1.185 /home/pi/cast/Post.mp3
Moderator: leecollings
Code: Select all
#!/bin/bash
castnow --quiet --address 192.168.1.185 /home/pi/cast/Post.mp3
I have tried different ways. I want it to run when a switch turns on. I tried the settings for what to do on on/off in the switch-settings, i have tried blocky and tried lua.jvdz wrote:How do you start it from Domoticz?
Jos
Yesjvdz wrote:You did change the file properties with chmod +x posten.sh to allow it to be executed?
Jos
Code: Select all
#!/bin/bash
echo starting castnow >> /var/log/test.log
castnow --quiet --address 192.168.1.185 /home/pi/cast/Post.mp3 >> /var/log/test.log
echo castnow ended >> /var/log/test.log
Users browsing this forum: No registered users and 0 guests