User avatar
mephitic
Posts: 2
Joined: Thu Aug 23, 2012 7:47 pm
Location: California

Receiving commands via Google SMS

Fri Oct 12, 2012 10:27 pm

I'm curious if anyone has already explored sending commands from a cell phone to say a Google Voice number via SMS, have their RPi receive those commands, and then act upon them? I've found pygooglevoice and have it setup and working to the point that I can send and retrieve a list of all SMS messages, but can't figure out how to properly parse them and act.

What I'm thinking is for such a project like a garage door opener. Send an SMS message, Google receives it, the RPi checks and then verifies it's from your number (or even a list of numbers - wife, kids, family) and then acts upon the command. Such as status, open, close, etc...

With pygooglevoice I can list out the messages, but I'm not sure how to verify the number and then act on the command. Was hoping maybe someone has already gone down this path and can offer suggestions and point me in the right direction.

Any thoughts?

User avatar
Dweeber
Posts: 606
Joined: Fri Aug 17, 2012 3:35 am
Location: Mesa, AZ
Contact: Website

Re: Receiving commands via Google SMS

Fri Oct 12, 2012 11:44 pm

One way around that would be to send commands with a pass code in them.

Would be a bit frustrating waiting for the garage door to open when the network is down and it can't get the message though.


I'm tempted to hook up my GSM modem, which uses RS232,and can be used for gateway SMS to and from the box without network. I normally have it hooked up to a server where I can send commands to the server via SMS and get back info, but I moved the servers off site and don't use it anymore.
Dweeber A.K.A. Kevin...
My RPI Info Pages including Current Setup - http://rpi.tnet.com

User avatar
mephitic
Posts: 2
Joined: Thu Aug 23, 2012 7:47 pm
Location: California

Re: Receiving commands via Google SMS

Fri Oct 12, 2012 11:50 pm

Wouldn't be one of those, this has to work projects. More of a can it be done and if so, that's a cool project :)

I've seen a couple posts using modems and what not. I'm thinking Google Voice is just simpler and free (no additional hardware to purchase or worry about). Could also go the route of a mobile web page with a username/password (which I've also seen). Just wanted to throw something out that I hadn't seen yet.

Thanks for the reply!

Return to “General discussion”