Coder Social home page Coder Social logo

webioop's Introduction

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.

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

webioOP-1


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

webioOP-ZERO-1


Change look & feel

$ cd template
$ cp webioOP.html.btn webioOP.html
$ cd ..
$ sudo python3 ./webioOP.py

webioOP-2

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

webioOP-3

webioop's People

Contributors

nopnop2002 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.