Application allows you to control GPIO port on Pi devices via android application client or build in www client.
Main features:
wget -O rgc-install.tar.gz https://github.com/arek125/remote-GPIO-control-server/releases/latest/download/rgc-install.tar.gz
tar -zxvf rgc-install.tar.gz
cd rgc
sudo apt-get update
sudo apt-get install python-dev python-crypto python-systemd python-pip postgresql libpq-dev postgresql-client
sudo pip install psycopg2 psutil
sudo su postgres
createuser pi -P --interactive # set super user to yes
psql
CREATE DATABASE db_rgc;
#Ctrl+D
#Ctrl+D
sudo chmod 644 rgc-setup.sh
sudo bash rgc-setup.sh
sudo nano rgc-config.ini # configure sql connection there and any other parameters as neded
Every time when above config is changed run:
sudo systemctl restart rgc.service
Keep time on server and client synchronized (diffrent timezones are supported).
Use commands to control server app:
sudo systemctl start rgc.service
sudo systemctl stop rgc.service
sudo systemctl restart rgc.service
sudo systemctl status rgc.service
journalctl -u rgc.service # to see logs in case of problems
cd /home/pi # or go to rgc main folder destination
wget -O rgc-update.tar.gz https://github.com/arek125/remote-GPIO-control-server/releases/latest/download/rgc-update.tar.gz
tar -zxvf rgc-update.tar.gz
sudo systemctl restart rgc.service
Tested and working on Raspberry Pi devices with Raspiain OS.
Tested and working with Banana Pi devices with this library.
Tested and working with Orange Pi Zero devices with this library. (Import replacement from "import RPi.GPIO as GPIO" to "import OPi.GPIO as GPIO" in file rgc-server.py is necessary)
Should work on similar devices/OS's but it requires a library RPi.GPIO (Raspbian OS already has it) or another based on it.
Remote GPIO control server is available under the MIT license.
If you like this project please consider a donation: