please choosego to mobile | Continue to access the PC version
View: 20176|Reply: 8

How to install Webiopi

[Copy link]

7

threads

20

posts

138

credits

Registered member

Rank: 2

credits
138
Published in 2016-6-4 23:17:30 | Show all floors |Read mode
Edited by soroush_crazy at 2016-6-4 23:20

Webiopi is an application that allow you to control GPIO (turn on and off or watch your gpio state) .
I was install it on my raspberry pi2 with bellow structure;but now it is not work on my orange pi (one)

sudo apt-get update
sudo apt-get install python-dev
sudo apt-get install python-rpi.gpio
cd ~
wget http://nchc.dl.sourceforge.net/p ... ebIOPi-0.7.1.tar.gz  #### (downloa link page is : https://sourceforge.net/projects/webiopi/files/)
tar -xvzf WebIOPi*
cd WebIOPi*
nano python/native/cpuinfo.c    ####  change "BCM2708" to "BCM2709";
nano python/native/gpio.c  #### change "#define BCM2708_PERI_BASE 0x20000000" to "#define BCM2708_PERI_BASE 0x3f000000"
./setup
sudo webiopi -d -c /etc/webiopi/config
or
webiopi


but it in web page gpio not work.maybe beacuse of defrence between rpi and orange pi
what should "BCM..." chnage to ?
how about "#define BCM2708_PERI_BASE 0x20000000" ?
any body can help me?!

10

threads

218

posts

2040

credits

Gold member

Rank: 6Rank: 6

credits
2040
Published in 2016-6-6 22:03:44 | Show all floors
Edited by nopnop2002 at 2016-6-7 07:54

Webiopi doesn't work in H3 baord.

Because webiopi needs bcm2835 library.

7

threads

20

posts

138

credits

Registered member

Rank: 2

credits
138
 Author| Published in 2016-6-10 14:46:06 | Show all floors
nopnop2002 replied at 2016-6-6 22:03
Webiopi doesn't work in H3 baord.

Because webiopi needs bcm2835 library.

Thanks a lot...
Another question is what do you recommand to use insted of webiopi. some app with web interface?

11

threads

286

posts

1936

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
1936
Published in 2016-6-10 19:34:09 | Show all floors
use python to interface and find gui working over python to integrate it

10

threads

218

posts

2040

credits

Gold member

Rank: 6Rank: 6

credits
2040
Published in 2016-6-10 23:25:00 | Show all floors
Edited by nopnop2002 at 2016-6-12 12:27
soroush_crazy replied at 2016-6-10 14:46
Thanks a lot...
Another question is what do you recommand to use insted of webiopi. some app with  ...

There is a sample which operates RPi.GPIO by a web in the following page.

http://mattrichardson.com/Raspberry-Pi-Flask/

WebLamp does ON/OFF GPIO#24 and #25 using RPi.GPIO.

You can use orangepi_PC_gpio_pyH3 instead of RPI.GPIO.

https://github.com/duxingkei33/orangepi_PC_gpio_pyH3


10

threads

218

posts

2040

credits

Gold member

Rank: 6Rank: 6

credits
2040
Published in 2016-6-12 21:45:13 | Show all floors
Edited by nopnop2002 at 2016-6-12 22:05
nopnop2002 replied at 2016-6-10 23:25
There is a sample which operates RPi.GPIO by a web in the following page.

http://mattrichardson.co ...

I tried Flask.
I could control GPIO using a web browser.
Please install flask with this page.
http://mattrichardson.com/Raspberry-Pi-Flask/

And install orangepi_PC_gpio_pyH3 from here.
https://github.com/duxingkei33/orangepi_PC_gpio_pyH3


And download webio.zip and put it in the below.
$HOME/flask/webio.py
$HOME/flask/templates/main.html

Start Python.
$cd $HOME/flask
$sudo python ./webio.py


Start browser by a different PC.
http://OrangePi'sIP/


The following page shows.










This thread contains more resources

You need to Log in to download or view,No account?    Register

x

0

threads

2

posts

28

credits

Novice

Rank: 1

credits
28
Published in 2016-6-13 03:12:31 | Show all floors
This is what I have going on.
https://www.youtube.com/watch?v=Zh7QMcEfT_Q

10

threads

218

posts

2040

credits

Gold member

Rank: 6Rank: 6

credits
2040
Published in 2016-6-13 22:06:44 | Show all floors
nopnop2002 replied at 2016-6-12 21:45
I tried Flask.
I could control GPIO using a web browser.
Please install flask with this page.

I posted a new one.

http://www.orangepi.org/orangepi ... amp;extra=#pid13613


0

threads

7

posts

26

credits

Novice

Rank: 1

credits
26
Published in 2024-7-4 05:33:44 | Show all floors
While length alone isn't a guarantee of ranking, high-quality long-form content tends to perform well in search engine rankings. This is because search engines aim to deliver the best possible results to users, and longer content often meets that criterion. Best online poker sites
You need to log in before you can reply login | Register

Points Rule

Quick reply Top Return list