nopnop2002 post at 2016-6-13 21:22:39

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.








nopnop2002 post at 2017-10-11 06:23:56

@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

rom3 post at 2016-7-11 15:27:46

Thank you for the nice tool. But yourlink for wiringpi-python-ob is wrong or have i made a mistake.I usehttps://github.com/lanefu/WiringPi-Python-OP and everythink work.

nopnop2002 post at 2016-7-11 20:45:56

rom3 replied at 2016-7-11 15:27
Thank you for the nice tool. But yourlink for wiringpi-python-ob is wrong or have i made a mistake ...

Thank you very much for your comment.

alexp1 post at 2016-9-6 05:29:02

thank you so much for your sharing this wonderful project ...

hervefox post at 2016-9-21 05:12:35

thanks a lot ! working like a charm :loveliness:

oggstar post at 2016-10-15 02:46:51

I get this error when I run the script
Traceback (most recent call last):
File "webioOP.py", line 3, in <module>
    from flask import Flask, render_template, request
File "/usr/local/lib/python2.7/dist-packages/flask/__init__.py", line 21, in <module>
    from .app import Flask, Request, Response
File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 27, in <module>
    from . import json, cli
File "/usr/local/lib/python2.7/dist-packages/flask/json.py", line 23, in <module>
    from itsdangerous import simplejson as _json
File "/usr/local/lib/python2.7/dist-packages/itsdangerous.py", line 40, in <module>
    import json
File "/usr/local/lib/python2.7/dist-packages/flask/json.py", line 14, in <module>
    from .globals import current_app, request
ValueError: Attempted relative import in non-package

What am I doing wrong?

nopnop2002 post at 2016-10-15 22:39:42

oggstar replied at 2016-10-15 02:46
I get this error when I run the script

What am I doing wrong?

I think that flask not installed.


oggstar post at 2016-10-16 07:35:48

No, I was being stupid. It works great now :)

luferagon post at 2016-12-5 08:58:33

Excelente tutorial, Alguien sabrá por qué al momento de correr flask me manda error diciendo que no puede importar flask from Flask?

luferagon post at 2016-12-6 03:00:49

luferagon replied at 2016-12-5 08:58
Excelente tutorial, Alguien sabrá por qué al momento de correr flask me manda error diciendo que n ...
my problem was resolved changing the distribution for lubuntu

page: [1] 2 3
View full version: webioOP (the defective clone of webiopi)