WebioOP: equivalent to WebioPi on Raspberry Pi for Orange Pi [Exclusive Guide]
WebioOP is equivalent to WebioPi for Orange PI. this project date of the beginnings of the Raspberry Pi. Goal is to fly the GPIO of the Raspberry Pi from a small Web interface. It is even possible to control GPIO’s Raspberry Pi remotely by exposing the Raspberry on the internet. It is also this project that serves as a base to fly the GPIO since the application Cayenne. As usual it must redo the work on Orange Pi for the equivalent. This time, it’s nopnop2002 that for become stuck. He explained how the Forum of Orange Pi http://www.orangepi.org/orangepibbsen/forum.php?mod=viewthread&tid=1634&page=1&extra=#pid13613 .
First install Flask, a Python library that allows to create a Web server entirely in Python. The official page of the project is here .
We install pip, Manager of package for Python
sudo apt – get install python – pip
then install the WiringOP library already presented in this tutorial. The GitHub project is here . We get sources in local
git clone – recursive https://github.com/lanefu/WiringPi-Python-OP.git
cd WiringPi – Python – OP
must also install some tools needed for the compilation of the source
sudo apt – get install python – dev python – setuptools swig
First built the library WiringPi
before you bind libraries 2 sets
cd . .
swig2 . 0 – python wiringpi . i
there is to install WiringOP
sudo python setup . py install
there is to install the webioOP project. The source code does not appear to have been published on GitHub, I found it on the site of nopnop2002 (in Japanese).
On décompresse l’archive
root@orangepilite:~/WiringPi–Python–OP# tar xvf webioOP.tar
webioOP . py
static / style2 . css
static / style – std . css
static / style . css
static / style3 . css
templates / webioOP . html
templates / webioOP . html . btn
templates / webioOP . html . icon
templates / webioOP . html . std
by default, webioOP starts a web server on port 80. If you have another server that uses to port (for example Automation server), edit the last lines of the webioOP.py script. For example here, the server will open on port 8000.
if __name__ == “__main__” :
if DEBUG == 1 : app . run [19459033
if DEBUG == 0 : app . run [19459033
start webioOP by running this command
open a browser on a computer connected to the same local network Orange Pi and enter the port followed by ip address configured. For example
and then you can fly the GPIO since this little Web interface.