Link to home
Start Free TrialLog in
Avatar of Howard Bash
Howard BashFlag for United States of America

asked on

Raspberry Pi 3 to send text message

I am trying to build a Raspberry Pi system which will send me a text message based on a leak detector sensing a leak.  The plan is to do it all in C.

There may be a way to send a text message to myself using a web service that I cannot seem to recall.  Does anyone have a clue where and how to do this?
Avatar of mccarl
mccarl
Flag of Australia image

Depending on your expected volume/rate of messages an location, one possibility is to use IFTTT. You can connect the "Maker" service to the "SMS" service. The Maker service triggers when it receives a POST to a URL which will then send the SMS. The web call can include up to 3 arbitrary values that can then be part of the message that gets sent.
Avatar of joshlunsford
joshlunsford

Does your phone service provide an email to sms service? Verizon users can use their phone number at vtext.com, sprint uses phone number @messaging.sprintpcs.com.

If your provider offers this then you can just set up smtp-relay and send emails from your pi.
Avatar of Howard Bash

ASKER

MCCARL:  Can you tell me more about iFTTT?  My expected frequency of sms message is infrequent.  My hope is that on the "rare" event that I have a flood,  I leak detector circuit will set a pin on my Raspberry which will be monitoring that pin and upon it being set, will send the SMS message to me.

joshlundsford: I don't have any phone tied to the Raspberry.  I know that FON is an option which may work.  But I haven't been able to get many details about that-cost for device I need and cost of the service.
ASKER CERTIFIED SOLUTION
Avatar of mccarl
mccarl
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Got this iFTTT option working,  so if I put the URL into a browser,  it sends me an sms message.  Now all I need is a library for the Raspberry or a snippet of code demonstrating how to send the URL out.

Also,  are there any docs on using the IFTTT maker so that I can add additional data etc. ?
Using that IFTTT maker you suggested and adding the CURL library to my RaspberryPi,  the problem has been solved.  Excelllent!!!
You're welcome!

Do you still need info on passing values too? Or do you have all that sorted out?
No.  Thanks.  All is well.
All good then, good luck with your project!