조회 수 43550 댓글 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
번호 분류 제목 날짜 조회 수 추천 수
446 Pi 포토커플러 Photo Coupler 특징, 종류, 출력, 구조, 동작 원리, 파라미터 2019.01.03 25937 0
445 LINUX vim 에디터 이쁘게 사용하기 2018.08.06 15860 0
444 Pi 아두이노에 도움이 되는 전자부품들 2018.06.20 5469 0
443 일반 Visual Studio Code 환경 설정 및 사용 방법 1 2018.06.01 23755 0
442 Pi 라즈베리파이 음성인식 S/W 2018.04.26 6294 0
441 Pi 파이썬 코드를 이용한 파이카메라 제어 2018.04.24 10330 0
440 Pi 라즈베리파이 PI CAMERA 설치하기 2018.04.24 9108 0
439 Python [tensorflow] 텐서플로우 문서 한글번역본 2018.03.22 5143 0
438 Pi LiPo charger 리튬 배터리 충전모듈 사용법 file 2018.03.19 8501 0
437 Pi Arduino Pro Mini PIN 정보 file 2018.03.18 6968 0
436 일반 날씨정보 rss 2018.03.08 4807 0
435 Python [tensorflow] 선형회귀 예제 2018.02.05 5384 0
434 HTML5 [Javascript] Javascript Patterns 요약 secret 2018.01.16 0 0
433 HTML5 [Javascript] Promise 이해하기 2018.01.04 5657 0
432 HTML5 [CSS] 선택자(Selector)의 이해 2017.12.29 9819 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