Raspberry Pi Remote Control

by saisolsllc in Circuits > Raspberry Pi

48 Views, 0 Favorites, 0 Comments

Raspberry Pi Remote Control

These instructions show you how to setup your Raspberry Pi device to be remote-controlled from anywhere in the world without setting up Dynamic DNS, firewall holes, or anything like that. Using RPRC from SAI Solutions, LLC you can easily setup multiple Pi devices and monitor and control GPIO pins.

Register

First, register a new account at rprc.saisols.com
When entering your email and password, click the Create Account checkbox. This will show a password confirmation input and will create an account. After your account is created you will be logged in. You will get an account confirmation email each time you login until you confirm your email.

Unconfirmed accounts will be deleted after a few days, so confirm your email after you register.

Setup Your Pi

Login as root to your RPi device.

You can run this software as a non-root user if you know how to setup GPIO pin access as a non-root user. This is beyond the scope of this guide, so we are assuming you are running as root.

Install Git and Python requirements by running:

apt-get -y install git python3 python3-pip python3-virtualenv

Verify git is installed by running

git --version

You should see something like:

git version 2.7.4

Setup virtual Python environment:

virtualenv --python=/usr/bin/python3 ~/virtual-python3

Check out the code and change into the project directory:

git clone https://github.com/mikebski/com.saisols.rprc.git && cd com.saisols.rprc

Edit auth.example.json and put your username and password in for your account

Copy the example file to the correct location:

`mkdir /etc/rprc && cp auth.example.json /etc/rprc/auth.json'

Install the dependencies with PIP:.

~/virtual-python3/bin/activate && pip install -r requirements.txt

Start the app:

. ~/virtual-python3/bin/activate && python rpi/app.py

This will run the app in the foreground and the app will stop when you logout. There are many ways to run this as a service, but this should get you up and running.

Now, go login to the web based tool at rprc.saisols.com and you sould see your Pi's serial number.

Configure Your Device

After you login, click Setup to configure your input and output pins, and click Device to manage and view your device. You can also use the Events menu item to see your Pi events. See https://rprc-docs.saisols.com/ for more information on setup. There is an app in the works to make this a native mobile/tablet app, but the site is mobile friendly as-is.

If you need help, submit an issue on the github page and we'll take a look.