Robot software based on Raspberry Pi2 and Raspbian Jessie or Wheezy
Execute following commands:
$ wget http://sourceforge.net/projects/webiopi/files/WebIOPi-0.7.1.tar.gz
$ tar xvzf WebIOPi-0.7.1.tar.gz
$ cd WebIOPi-0.7.1/
$ wget https://dl.dropboxusercontent.com/u/69652790/bb/WebIOPi-0.7.1.patched.tgz
$ tar zxf WebIOPi-0.7.1.patched.tgz
$ cd WebIOPi-0.7.1/
$ sudo ./setup.sh
Execute following command for changing permittion:
$ sudo chown -R pi /usr/share/webiopi/htdocs
Execute following command for password setting:
$ sudo webiopi-passwd
Execute following command for checking WebIOPi:
$ sudo /etc/init.d/webiopi start
Execute following commands:
$ cd
$ sudo apt-get update
$ sudo apt-get install python-dev python-setuptools
$ git clone https://github.com/Gadgetoid/WiringPi2-Python.git
$ cd WiringPi2-Python
$ sudo python setup.py install
$ sudo python3 setup.py install
Execute following commands:
$ sudo apt-get update
$ sudo apt-get install libjpeg62-dev cmake
$ git clone https://github.com/jacksonliam/mjpg-streamer.git mjpg-streamer
$ cd mjpg-streamer/mjpg-streamer-experimental
$ make
$ cd ..
$ sudo mv mjpg-streamer-experimental /opt/mjpg-streamer
Execute following commands:
$ cd /usr/share/webiopi/htdocs
$ git clone https://github.com/karaage0703/m2_robot.git m2
$ cd m2
$ sudo mv webiopi.service /etc/systemd/system/
Edit etc/webiopi/config
:
$ sudo vi /etc/webiopi/config
Change like below:
from:
#myscript = /home/pi/webiopi/examples/scripts/macros/script.py
To:
myscript = /usr/share/webiopi/htdocs/m2/script.py
Execute webiopi
$ sudo systemctl start webiopi
Access Robot and Enjoy! Access your robot from below address on your browser.
http://<ipaddress>:8000/m2/
Please check for my website in detail(Japanese only)
http://karaage.hatenadiary.jp/entry/2015/09/02/073000
This software is released under the MIT License, see LICENSE.