webioOP (the defective clone of webiopi) 看全部

Edited by nopnop2002 at 2016-7-12 02:56

I have developed webioOP (the defective clone of webiopi).
It can control GPIO via web browser.

1.Install flask with this page.
http://mattrichardson.com/Raspberry-Pi-Flask/

2.Install WiringPi-Python-OP Library from here.
https://github.com/lanefu/WiringPi-Python-OP

3.Download webioOP.tar and put it in your OPI.
cd $HOME/flask
tar xvf webioOP.tar

These files is made.
$HOME/flask/webioOP.py
$HOME/flask/templates/webioOP.html
$HOME/flask/templates/webioOP.html.std
$HOME/flask/templates/webioOP.html.btn
$HOME/flask/static/style.css

4.Start Python.
$cd $HOME/flask
$sudo python ./webioOP.py

5.Start browser by a different PC.
and Put it in an address bar.
http://OrangePi'sIP/


The following page shows.
You can change the form design.
cd $HOME/flask/templates/
cp webioOP.html.btn webioOP.html

When editing style.css, you can change it to the favorite design.








attachment: 您需要登录才可以下载或查看附件。没有账号?Register
@alexp1

$ sudo apt-get install python-dev python-setuptools swig
$ cd WiringPi-Python-OP
$ swig2.0 -python wiringpi.i
$ sudo python setup.py install
$ cd tests
$ sudo python test.py
  • Sofa rom3
  • 2016-7-11 15:27:46
Thank you for the nice tool. But your  link for wiringpi-python-ob is wrong or have i made a mistake.  I use  https://github.com/lanefu/WiringPi-Python-OP and everythink work.
quote: rom3 replied at 2016-7-11 15:27
Thank you for the nice tool. But your  link for wiringpi-python-ob is wrong or have i made a mistake ...

Thank you very much for your comment.
  • Floor alexp1
  • 2016-9-6 05:29:02
thank you so much for your sharing this wonderful project ...
thanks a lot ! working like a charm
1234.. 6NextPage