조회 수 43555 댓글 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
번호 분류 제목 날짜 조회 수 추천 수
476 LINUX Ubuntu php5.6 , php7.1 설치 및 셋팅하기 2020.02.11 5038 0
475 LINUX Ubuntu apt-get 명령어 정리 2020.02.11 3902 0
474 LINUX 우분투(Ubuntu) 설치된 패키지 목록 확인하기 2020.02.11 20063 0
473 일반 온습도, 미세먼지 정보 받아오기 secret 2020.01.10 0 0
472 Pi 아두이노 데이터 저장하기(Arduino EEPROM 사용하기) 2019.12.24 17501 0
471 LINUX mutt Gmail 설치, 사용 / Ubuntu 18.04 환경 2019.11.25 4927 0
470 LINUX 리눅스 명령행에서 메일 보내기(send mail from linux command line) 2019.11.25 8927 0
469 LINUX Ubuntu TFTP 서버 2019.10.30 6973 0
468 Pi 레귤레이터(3.3V 1A) KA78R33 데이터시트 file 2019.08.20 3648 0
467 Pi 회로부품 메모 1 secret 2019.08.09 1 0
466 Pi OP AMP의 활용 2019.08.05 9675 0
465 Python Image 기반 Steganography 예제 1 2019.07.17 25211 0
464 업무 Pen Testing 툴 요약 secret 2019.07.16 0 0
463 일반 SQL Injection 우회 정리 2019.07.10 7905 0
462 C C에서 파일 존재여부 체크 (check file exist) 2019.07.02 18316 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