Tested on:RPi3; Raspbian Jessie; WebIOPi 0.7.1
Prerequisites:Raspberry Pi with Raspbian Jessie and internet connection (see steps 1-7 in the Introduction)
10

WebIOPi for the Raspberry Pi 3

WebIOPi is a server for the Raspberry Pi that allows setting up smartphone remote controls and similar very easily. I already wrote a tutorial about WebIOPi, but the old installation method does not work for the Raspberry Pi 3.
Luckily, doublebind has instruction for the installation on a Raspberry Pi 3.
Boot the Raspberry Pi and make sure that it has a running internet connection. Then, enter in the terminal

For more info about WebIOPi, check out my other tutorial on WebIOPi.

Links
WebIOPi Website: http://webiopi.trouch.com/
Webinterface WebIOPi tutorial: http://www.knight-of-pi.org/webiopi-a-simple-but-great-web-api-for-the-raspberry-pi/
WebIOPi for the RPi3 installation: https://github.com/doublebind/raspi

Knight of Pi

Johannes Bergs aka Knight of Pi. Diploma in Bioinformatics, some Webdesign and Python coding then. Living in the beautiful city of Vienna.

10 Comments

  1. This works perfectly on a RPi3 without any changes, but it only seems to work with Python3, and NOT python2.7. I haven’t tried everything – the package is brand new to me – but the most obvious error is when writing a script and doing the following:

    import webiopi
    GPIO = webiopi.GPIO

    This responds with:
    AttributeError: ‘module’ object has no attribute ‘GPIO’

    This looks like such a cool package I’d love to use it. Can someone help?
    Thanks!

  2. I am trying to use this patch with 0.7.2 and I get the following:

    patch -p1 -i webiopi-pi2bplus.patch
    can’t find file to patch at input line 4
    Perhaps you used the wrong -p or –strip option?
    The text leading up to this was:
    ————————–
    |diff -ur WebIOPi-0.7.1/htdocs/webiopi.js WebIOPi-Pi2/htdocs/webiopi.js
    |— WebIOPi-0.7.1/htdocs/webiopi.js 2014-02-24 01:37:07.000000000 +0900
    |+++ WebIOPi-Pi2/htdocs/webiopi.js 2015-06-26 15:53:13.812134121 +0900
    ————————–
    File to patch:

    What should I do?

  3. Thanks !
    Worked on 2x Pi 3 just tested now.
    ++++++
    Note that:
    sudo update-rc.d webiopi defaults
    Auto starts webiopi on power up / reboot which makes it a Very handy LAN low level level IoT or educational platform. It runs in parallel with other educational tools like Scratch GPIO and python GPIO pin banging.
    ++++++
    A tip for activating the www browser based serial terminal tab for Pi 3 serial uart is :
    Edit /etc/webiopi/config to enable the [DEVICES] section from
    #serial = Serial device:ttyAMA0 baudrate:9600
    to
    serial = Serial device:ttyS0 baudrate:2400
    I use the serial as a great way to talk via the browser serial terminal in the Serial Tab at the TTL Level to mincro’s LoRa, radio devices or even let kids “Chat” between 2 pi.
    Low Tech but very handy / edcational for students :)
    ~ Andrew

    • Hi Andrew,
      thanks for the suggestion!
      Honestly, i’m not using serial very much so far, but serial over browser is definitely interesting.
      So long

  4. Thanks, this worked for me. I had tried a lot of other stuff….

  5. :~ $ tar xvzf WebIOPi-0.7.1.tar.gz

    gzip: stdin: not in gzip format
    tar: Child returned status 1
    tar: Error is not recoverable: exiting now

    • Works for me- maybe the download with wget in the step before failed?

Comment

Time limit is exhausted. Please reload CAPTCHA.