https://github.com/nopnop2002/webioop
The defective clone of webiopi
https://github.com/nopnop2002/webioop
orangepi orangepi-pc orangepi-zero webiopi
Last synced: 7 months ago
JSON representation
The defective clone of webiopi
- Host: GitHub
- URL: https://github.com/nopnop2002/webioop
- Owner: nopnop2002
- Created: 2019-08-07T12:00:28.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2022-04-02T08:04:32.000Z (over 4 years ago)
- Last Synced: 2025-01-29T05:02:09.388Z (over 1 year ago)
- Topics: orangepi, orangepi-pc, orangepi-zero, webiopi
- Language: Python
- Size: 54.7 KB
- Stars: 2
- Watchers: 2
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# webioOP
An incomplete webioPI clone of the Orange-Pi series.
# Install flask on root
```
$ sudo apt install python3-pip python3-setuptools
$ sudo python3 -m pip -V
pip 18.1 from /usr/lib/python3/dist-packages/pip (python 3.7)
$ sudo python3 -m pip install -U pip
$ sudo python3 -m pip -V
pip 22.0.4 from /home/orangepi/.local/lib/python3.7/site-packages/pip (python 3.7)
$ sudo python3 -m pip install -U wheel
$ sudo python3 -m pip install flask
```
# Install WiringOP library provided by xunlong
Install from [here](https://github.com/orangepi-xunlong/wiringOP).
# Build python wrapper
```
$ sudo apt install python3-dev python3-pip
$ git clone https://github.com/nopnop2002/webioOP
$ cd webioOP
$ python3 setup.py build
$ sudo python3 setup.py install
$ python3 -m pip list -l | grep Gpio
GpioMethod 1.0
```
# Test python wrapper
```
$ sudo python3 ./gpio_test.py
```
# For OrangePi-PC
```
$ cd $HOME/webioOP
$ sudo python3 ./webioOP.py
```

---
# Other than Orange Pi-PC
Edit this.
```
$ vi webioOP.py
import opi_pc
#import opi_pc2
#import opi_pc3
#import opi_pc4
#import opi_zero
#import opi_lite2
PINS = opi_pc.PINS
#PINS = opi_pc2.PINS
#PINS = opi_pc3.PINS
#PINS = opi_pc4.PINS
#PINS = opi_zero.PINS
#PINS = opi_lite2.PINS
```

---
# Change look & feel
```
$ cd template
$ cp webioOP.html.btn webioOP.html
$ cd ..
$ sudo python3 ./webioOP.py
```

```
$ cd template
$ cp webioOP.html.icon webioOP.html
$ cd ..
$ sudo python3 ./webioOP.py
```
