$ tar zxvf
WebIOPi-0.7.1.tar.gz $ cd WebIOPi-0.7.1/ $ wget https://raw.githubusercontent.com/doublebind/raspi/master/webiopi-pi2bplus.patch $ patch -p1 -i webiopi-pi2bplus.patch $ sudo ./setup.sh |
Do you want to access
WebIOPi over Internet ? [y/n] n |
$ wget
https://raw.githubusercontent.com/neuralassembly/raspi/master/webiopi.service $ sudo mv webiopi.service /etc/systemd/system/ |
$ sudo service webiopi
start |
$ sudo service webiopi stop |
略 [SCRIPTS] # Load custom scripts syntax : # name = sourcefile # each sourcefile may have setup, loop and destroy functions and macros #myscript = /home/pi/webiopi/examples/scripts/macros/script.py #myscript = /usr/share/webiopi/htdocs/bb/01/script.py # 下の行を生かすと http://アドレス:8000/bb/02/ にアクセスすると動く myscript = /usr/share/webiopi/htdocs/bb/02/script.py #------------------------------------------------------------------------# [HTTP] # HTTP Server configuration enabled = true port = 8000 # File containing sha256(base64("user:password")) # Use webiopi-passwd command to generate it passwd-file = /etc/webiopi/passwd 略 |