Code Monkey home page Code Monkey logo

raspi's Introduction

WebIOPi-0.7.1 Patch for Raspberry B+, Pi2, Pi3, and Pi4

You have full access to all header pins (40 pins) on the Web interface.

Usage


$ wget http://sourceforge.net/projects/webiopi/files/WebIOPi-0.7.1.tar.gz
$ tar xvzf WebIOPi-0.7.1.tar.gz
$ cd WebIOPi-0.7.1
$ wget https://raw.githubusercontent.com/doublebind/raspi/master/webiopi-pi2bplus.patch
$ patch -p1 -i webiopi-pi2bplus.patch
$ sudo ./setup.sh

How to Start WebIOPi

Follow the steps below if Raspbian is installed by NOOBS later than 1.4.2.

$ cd /etc/systemd/system/
$ sudo wget https://raw.githubusercontent.com/doublebind/raspi/master/webiopi.service
$ sudo systemctl start webiopi
$ sudo systemctl enable webiopi

raspi's People

Contributors

doublebind avatar neuralassembly avatar seya avatar uherm00 avatar ushitaro avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

raspi's Issues

patch not found

patch -p1 -i webiopi-pi2bplus.patch
-bash: patch: command not found

please help

Fixing your patch for kernel 4.9

On Raspberry Pi, the new kernel 4.9 returns "BCM2835" for all the versions of Pi
as "Hardware" in /proc/cpuinfo.

So, a different method is required to obtain the base adress of GPIO
(0x3f000000 for Pi2 and Pi3, and 0x20000000 for Pi1).

Based on the discussions below, I fixed your patch so that
the base address of GPIO is obtained by reading "/proc/device-tree/soc/ranges".
raspberrypi/linux#1902

I confirmed that the new patch below works for
kernel 3.18/4.4/4.9 on Pi1/Pi2 and kernel 4.1/4.4/4.9 on Pi3.

If you are OK, I will make a pull request.

https://github.com/neuralassembly/raspi2/blob/master/webiopi-pi2bplus.patch

PWM Sliders not working properly (easy fix?)

Dear @seya さん,

I am using your patch to run webiopi on a Pi3 and patching has worked flawlessly. Thank you so much for providing the patch for everyone of us! I think i speak for everyone when I say: THANK you so much!

However while experimenting with webiopi (sadly not supported by its maker anymore) i found a bug/flaw with the PWM slider implementation. I am not much of a programmer and far from understanding JAVA. I however believe this needs only minor tweaking and I was hoping that you could maybe integrate a fix for it in your patch?

This is what I found out:
When using the Java function webiopi().createAngleSlider(gpio) a slider is generated on the GUI that is supposed to move a servo between -45 and +45 degrees.
This however does not work reliably with either Firefox / Chrome or Safari... BUT it does work using IE11 (sort of as we will find out later).

I decided to do some debugging:

I started the webiopi server in console mode to see some debug output. Every time I drag the PWM slider on the GUI I see a POST request of the follwing form on the debug output (where 18 is the gpio and -45 defines the target angle in this case):
2018-02-08 15:00:58 - HTTP - DEBUG - "POST /GPIO/18/pulseAngle/-45 HTTP/1.1" - 200 OK (Client: ::ffff:192.168.1.1 <Mozilla/5.0 (Windows NT 6.3; WOW64; rv:52.0) Gecko/20100101 Firefox/52.0>)

I then noticed a difference between all the other browsers and IE11.
Whereas all the other browsers only send a single Post request once you let go of the slider (so to say they only send a single post request for the sliders target degree) IE11 all the time sends POST updates while dragging the slider:

Here is an example of Firefox/Chrome/Safari behavior when changing angle from -45° to -35°:

... POST /GPIO/18/pulseAngle/-45 ...
... POST /GPIO/18/pulseAngle/-35 ...

Here is how IE11 deals with the same task:

... POST /GPIO/18/pulseAngle/-45 ...
... POST /GPIO/18/pulseAngle/-44 ...
... POST /GPIO/18/pulseAngle/-43 ...
... POST /GPIO/18/pulseAngle/-42 ...
... POST /GPIO/18/pulseAngle/-40 ...
... POST /GPIO/18/pulseAngle/-39 ...
... POST /GPIO/18/pulseAngle/-38 ...
... POST /GPIO/18/pulseAngle/-37 ...
... POST /GPIO/18/pulseAngle/-36 ...
... POST /GPIO/18/pulseAngle/-35 ...

Quite interesting.
The next thing I noticed: Whereas the servo is supposed to travel in a single motion to the destination angle upon a POST request it will only move a tiny bit (much like only 1°).

So lets assume the current position of the servo is -45° and I want to move it to 0°:
I send ... POST /GPIO/18/pulseAngle/0 ...
However the servo will just move a tad into the desired direction .... say to approx -44°

I have to repeat the command ... POST /GPIO/18/pulseAngle/0 ... another 44 times until the servo has finally reached it's destination (in 1° increments). From there it won't move any further on repeated commands which is okay.

Also IE11 suffers from that bug when not dragging the slider to it's destination (which results in continuous POST updates) but clicking(!) the slider right to the desired destination.

This is clearly a bug in the implementation of the slider and I wonder if you can include a fix with your patch? I am not much of a programmer and unfortunately I can not really help here but I think many people would be very thankful for that!

Thank you so much in advance!
Best regards
Thomas

NO input/output buttons

hi I tried appliying the patch it didnt work for me. at first I intalled withouth the patch i deleted the folder where webiopi was located and installed it again with patch, dont know if there is any sort of file that need to be deleted out of this folder

This is my hardware
image

and this is what im running:
image

any advise please?

Thanks

Pi Zero

Has anyone tested this on a PI Zero? I am guessing that it should work.

Web interface doesn't work after last update

On Raspberry PI2, Web interface doesn't work after last update (1 day ago)
On chrome I get this script error:
Uncaught TypeError: children.forEach is not a function
Thanks in advance

Unable to trigger a python file and .mp3 file in Sync with GET/POST method used in webGUI

Hi,

I am trying to build webgui for music light with help of raspberry pi and the set up works just fine when the below command is executed manually,
sudo python py/synchronized_lights.py --file=/home/pi/lightshowpi/music/sample/ovenrake_deck-the-halls.mp3

However, when the same command is included in the index.php(html) file the above command doesn't works. please refer the screen shot for better understanding and clarity on the issue.

Kindly do revert if any suggestions and support on resolving the same.

Thanks and Regards,
Richi
php-screenhot.pdf

WebIOPi Not working on pi 3

Hello,

I tried installing webiopi for my RaspberryPi 3, unfortunately its not working.

Please find the below link from which i installed the WebIOPi,
$ wget http://sourceforge.net/projects/webiopi/files/WebIOPi-0.7.1.tar.gz
$ tar xvzf WebIOPi-0.7.1.tar.gz
$ cd WebIOPi-0.7.1
$ wget https://raw.githubusercontent.com/doublebind/raspi/master/webiopi-pi2bplus.patch
$ patch -p1 -i webiopi-pi2bplus.patch
$ sudo ./setup.sh

How to Start WebIOPi

Follow the steps below if Raspbian is installed by NOOBS later than 1.4.2.
$ cd /etc/systemd/system/
$ sudo wget https://raw.githubusercontent.com/doublebind/raspi/master/webiopi.service
$ sudo systemctl start webiopi
$ sudo systemctl enable webiopi.

And also find the screenshot of the error message and in browser the GPIO pins are not working.
errror
gpio

Awaiting for your valuable inputs.

Kind Regards,
Richi Nixon V

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.