I build myself a babycam using this article. I start motion on raspberryPi startup like here. My next intention is to send a sms to my smartphone if motion is detected. On this site I found out that this is possible.

#change to suit your needs:
#location of 'sms-client' binary
#Destination sms number

#Don't change anything below this line
$SMS_CLIENT $TO "Motion detected $1"

Do you have any idea what could be meant by

location of 'sms-client' binary

I have no idea what the file /usr/bin/sms_client should look like.

  • 1
    I'm afraid it's just a generic call to a binary file. Depending on the hardware you use for connecting to a mobile network the details might differ. Basically you cannot send and SMS "just so". You must either use a hardware device with a SIM card which has capabilities to send SMSes (read: either prepaid credit or a contract with a telecom), or use an SMS gateway. The conditions for either will vary considerably between countries and operators. – techraf Dec 10 '16 at 14:03
  • I heard that this is possible using MQTT? You know something about this? – Chris311 Dec 10 '16 at 18:11
  • I agree with @techraf Side note, I've used python and a gmail account to send text messages – Bob Haffner Dec 10 '16 at 20:37

Have you considered using a push messaging service such as pushover.net instead of SMS? That's what I use for my alerts.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.