I connected huawei 3g modem to my Raspberry PI via USB to add possibility to receive SMS commands and send SMSes to me with information when for example alarm is raised. I know that in domoticz is possible to use clickatel but I wan't to became independent of external service in case of lost internet connection.
I configured gammu-sms deamon and I can sending smses from linux console like that (using bash script):
Code: Select all
pi@raspberrypi ~ $ echo "text to be send" | sudo gammu-smsd-inject TEXT XXXXXXXXX
The problem is when I'm trying to initiate the script from the domoticz.
I created dummy switch and in section "On action" I put this command:
Code: Select all
script:///home/pi/scripts/sms.sh
I getting an error:
Code: Select all
Sun 2016/04/03 10:33:45 gammu-smsd[16640]: Error in outbox on 'OUTC20160303_103321_00_+48XXXXXXXXX_sms0.smsbackup'
It's really strange, because script is working properly when I'm launching manually (from pi user and root as well).
Anybody have a