조회 수 43552 댓글 0
?

단축키

Prev이전 문서

Next다음 문서

+ - Up Down Comment Print
?

단축키

Prev이전 문서

Next다음 문서

+ - Up Down Comment Print

http://webiopi.trouch.com/


Features

  • Written in Python, with facilities to load and execute custom script, using a comprehensive structure with setup and loop functions
  • Unified Serial/SPI/I2C support with a complete and consistent set of functions to control more than 30 devices, including most used analog convertersI/O expander and sensors
  • Javascript/HTML client library to make Web UI
  • Python/Java clients, to make Pi-to-Pi systems or Android applications
  • CoAP support brings the best Internet of Things protocol on the Pi, as a future proof of Pi possibilities
  • Includes simple web apps, to debug GPIO, devices and Serial interface

GPIO header web app

The GPIO header web application is included to quickly debug and controls GPIO.


download page : http://webiopi.trouch.com/DOWNLOADS.html


$ wget http://sourceforge.net/projects/webiopi/files/WebIOPi-0.7.1.tar.gz/download -0 webiopi.tar.gz


$ tar xvzf WebIOPi-x.y.z.tar.gz

$ cd WebIOPi-x.y.z

$ sudo ./setup.sh


-------------------------------

cd /home/pi

sudo wget http://sourceforge.net/projects/webiopi/files/WebIOPi-0.7.1.tar.gz

sudo tar xvzf WebIOPi-0.7.1.tar.gz

cd WebIOPi-0.7.1

sudo wget https://raw.githubusercontent.com/doublebind/raspi/master/webiopi-pi2bplus.patch

patch -p1 -i webiopi-pi2bplus.patch

sudo ./setup.sh

-----------------------------

* To start WebIOPi foreground   : sudo webiopi [-h] [-c config] [-l log] [-s script] [-d] [port]

* To start WebIOPi background   : sudo /etc/init.d/webiopi start

* To start WebIOPi at boot      : sudo update-rc.d webiopi defaults




Running WebIOPi

Finally, use webiopi command :

$ sudo webiopi [-h] [-c config] [-l log] [-s script] [-d] [port]

    Options:
      -h, --help           Display this help
      -c, --config  file   Load config from file
      -l, --log     file   Log to file
      -s, --script  file   Load script from file
      -d, --debug          Enable DEBUG

    Arguments:
      port                 Port to bind the HTTP Server

For instance, to start with verbose output and the default config file :

$ sudo webiopi -d -c /etc/webiopi/config

You're done, and ready to enjoy WebIOPi ! But the server and GPIO state will be lost when you'll stop the script (CTRL-C) or close the terminal.

Running WebIOPi (Daemon)

You can also start/stop the background service, the configuration will be loaded from /etc/webiopi/config.

$ sudo /etc/init.d/webiopi start
$ sudo /etc/init.d/webiopi stop

Auto start at boot

To setup your system to start webiopi at boot :

$ sudo update-rc.d webiopi defaults

To remove webiopi start from boot :

$ sudo update-rc.d webiopi remove

Access WebIOPi over local network

If your Raspberry Pi is connected to your network, you can open a browser to http://raspberrypi:8000/ with any device of your network. Replace raspberrypi by its IP.

Default user is "webiopi" and password is "raspberry"

By choosing the GPIO Header link on the main page, you will be able to control GPIO using a web UI which looks like the board header.

  • Click/Tap the OUT/IN button to change GPIO direction.
  • Click/Tap pins to change the GPIO output state.

http://trouch.com/wp-content/uploads/2012/08/webiopi-chrome.png

Access WebIOPi over Internet

Thanks to Weaved IoT Kit, it's easy to access your Raspberry from anywhere in a secure fashion.

Register on the Weaved developper portal

Go to https://developer.weaved.com/portal/ and follow instruction to create an account.

Download Weaved for Raspberry Pi

Copy and paste the command line below into a terminal window or SSH client connected to your Raspberry Pi, then hit the Enter key.

wget https://github.com/weaved/installer/raw/master/binaries/weaved-nixinstaller_1.2.5.bin

Install Weaved

Make the installer executable:

chmod +x weaved-nixinstaller_1.2.5.bin

Launch the installer:

./weaved-nixinstaller_1.2.5.bin

Enter the e-mail address and password for your Weaved account.

https://developer.weaved.com/portal/images/Login.png

When asked, choose WebIOPi during the install process. then enter an alias, or nickname for your device.

https://developer.weaved.com/portal/images/Provide-an-alias.png

Note: If you run the installation more than once, you'll get this question.

https://developer.weaved.com/portal/images/previous_installation.png

Support of multiple services is not fully tested in 1.2.5. We recommend that you answer 'y' here to remove the previous installation before proceeding.

Test your setup

To test the connection to your Raspberry Pi from your browser, go to the device list, find the line with your Raspberry Pi's alias, and click on “Connect”. Your device's internet address will be shown in the area blurred below.

https://developer.weaved.com/portal/images/Device-list.png

0.jpg

0.jpg



Dreamy의 코드 스크랩

내가 모으고 내가 보는

List of Articles
번호 분류 제목 날짜 조회 수 추천 수
461 MFC 리사이징 다이얼로그(Resizing dialog) 2008.03.24 46620 0
460 MFC 현재 실행된 어플리케이션의 디렉토리 적용하기 2008.05.07 39888 0
459 MFC 현재디렉토리의 파일리스트들을 알아오는 클래스 CFindFile 2008.05.07 62451 0
458 C Printf 사용하기 file 2008.10.11 34114 0
457 C C언어용 문자열 replaceAll 함수 2009.02.09 38318 0
456 일반 bat(배치) 파일 제대로 쓰기 2009.02.24 53952 0
455 MFC 비트맵 비교 2009.03.23 40814 0
454 Python py2exe를 이용한 실행파일 만들기 2009.04.10 52821 0
453 LINUX 매번 잊는다.. tar 풀기 : tar zxvf file 2 2009.04.14 36568 0
452 MFC Cstring methods 2009.04.21 54920 0
451 MFC 도스 커맨드 실행하기 1 2009.09.01 49044 0
450 MFC 커맨드 창 속성 제어 2009.09.01 37892 0
449 MFC MFC app 디버깅 출력을 위한 콘솔 생성하기 2009.09.01 42928 0
448 MFC 파일 읽기 전용 해제 및 설정 2009.09.11 54201 0
447 Python Python Embedding (MFC프로그램에서 파이썬 실행하기) 2009.11.14 47680 0
목록
Board Pagination ‹ Prev 1 2 3 4 5 6 7 8 9 10 ... 34 Next ›
/ 34

나눔글꼴 설치 안내


이 PC에는 나눔글꼴이 설치되어 있지 않습니다.

이 사이트를 나눔글꼴로 보기 위해서는
나눔글꼴을 설치해야 합니다.

설치 취소

Designed by sketchbooks.co.kr / sketchbook5 board skin

Sketchbook5, 스케치북5

Sketchbook5, 스케치북5

Sketchbook5, 스케치북5

Sketchbook5, 스케치북5