Want to Join Us ?

you'll be able to discuss, share and send private messages.

Tutorial Controlling Raspberry Pi via text message

Discussion in 'Reverse engineering' started by storm shadow, May 31, 2013.

Share This Page

  1. storm shadow

    Techbliss Owner Admin Ida Pro Expert Developer

    This script enables you to control your computer via text message. Think of it almost as a version of SSH over text message.
    It is designed to intelligently and quickly check unread Google voice messages. If certain parameters are passed, it runs the command you send and returns the result.
    This is the third script in my AUI (Alternative User Interface) Series.
    This requires curl and libboost1.50-regex. The setup script can install curl and boost regex.

    NOTE: This will work with any linux OS but I am using it on the Raspberry Pi so if you are using something else, you will have to compile it yourself (make sure to change the Makefile flags).

    The stable version is on github here:

    And the working copy source can be found here:

    Google Voice unfortunately doesn't have an API available so I started writing my own.
    I found this page and this page which were good references. Unfortunately, neither of these actually worked, so I wrote my own based off them. The script will install this and you are free to use it however you want as long as you cite me and follow GPLv3.
    It works by using cron to run a script once every minute. The script checks your unread inbox messages and uses curl to make sure certain safety parameters are met. It is very important to check the unread inbox as it only pulls a 1-3 KB file rather than a 150+ KB file. This really adds up once a minute over time. If certain parameters are met, ie it has a valid phone number and command, then it runs the command you give it. The results of the command are then texted back to you.
    This will not work with interactive scripts like more or man

    Installation Instructions

    (this requires git)

    sudo apt-get install git-core
    git clone git://github.com/StevenHickson/PiAUISuite.git
    cd PiAUISuite/Install/

    Update Instructions

    cd PiAUISuite
    git pull
    cd Install
    sudo ./UpdateAUISuite.sh

    There are other scripts in here that you can ignore. It will ask you the username details in the script.
    This will be your Google voice username, password, key, and valid number.

    Your Google voice username will be your e-mail. For example:

    Your password is your Google voice password:
    The key is the valid command-word that proceeds commands to the machine. For example, mine is Cmd. So I text:
    Cmd ls
    to have the pi text the results of the current directory back.
    Your valid number is the phone number you want your google voice to receive commands from (Not your Google voice number!). You must put the country code but not the + sign. Ex:
    After that everything should work.
    Note, I worked out a few major bugs with the install script and it is reposted now. So make sure to get the newest version.
    source http://stevenhickson.blogspot.no/2013/03/controlling-raspberry-pi-via-text.html
    Rip Cord likes this.