조회 수 43548 댓글 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 C# ArrayList를 string[] 배열로 변환하는 방법 2015.09.23 12887 0
460 Android ART(Android RunTime)에 대해 1 2014.02.10 16111 0
459 Pi ATTINY85 PIN정보, Data sheet 2 file 2016.12.10 8966 0
458 C# AutoResetEvent 클래스 - 신호(Signal)에 의한 쓰레드 동기화 2013.08.14 14698 0
457 LINUX awk 명령어 사용법 1 2006.02.16 114619 15
456 업무 Back-End 관련 정보 2022.05.17 1426 0
455 C Base64 로 encoding / decoding 하는 예제 file 2005.09.22 25863 0
454 LINUX bash 의 명령어 History 2015.01.20 7305 0
453 일반 bat(배치) 파일 제대로 쓰기 2009.02.24 53948 0
452 Python BeautifulSoup로 HTML 파싱 끝내기 2013.04.08 42526 0
451 Python BeautifulSoup으로 웹에 있는 데이터 긁어오기 2013.04.08 76921 0
450 C# Best way to implement keyboard shortcuts in a Windows Forms application 2015.11.06 6639 0
449 일반 Beyond Compare로 patch 파일 만들기, 적용하기 file 2012.10.22 16291 0
448 LINUX bluetooth on Ubuntu 2017.05.25 13453 0
447 일반 BT와 BLE 2017.05.16 6524 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