Issue #137 [New/open] - Dont work on Raspberry 2

Posted by Digimon1995

What steps will reproduce the problem?

  1. Installed newest Verion with help from wiki
  2. Config it to autostart
  3. restart
  4. open localhost:8000
  5. shows the things but I cant klick anything, nothing hapens restart doesnt help apt-get update and upgrade also not help (sry for bad english) ...

WebIOPi version used? => Newest (0.7.1)

Python version used? => auto installed version on Ras..pi2 (newest)

Distro used? (WebIOPi has only been tested on Raspbian Wheezy) => Wheezy

Raspberry Pi board revision? (1 or 2) => Raspberry Pi 2

For Javascript side bugs, Browser? => tested with RaspberryPi2 Standartbrowser and newest Chrome on Win 8.1

Please provide any additional information below. Completly install it new but it also not help


Comment 1

Posted by junquan.zhou

WebIOPi currently does not support Raspberry Pi 2 yet, but some good things are coming. Stay tuned for updates.

I saw this for 0.7.1

Hopefully they can release the 0.7.2 for fixing the Pi2 soon!


Comment 2

Posted by ddoct09

Still no feedback on Webiopi on Pi2... can we migrate to an alternate solution?


Comment 3

Posted by atanaspenchev

WAiting for it .... urgently :P


Comment 4

Posted by lionmilano

still waiting can we migrate to an alternate solution?


Comment 5

Posted by iktomi123.AW

I d'not understand the problems, found on the internet an articel the discriped excacly what to do, dit it and every thing works fine.

Read this articel an the subs to and you have the sollution.

https://www.raspberrypi.org/forums/viewtopic.php?f=63&t=98981

Good luck


Comment 6

Posted by ansenberger

Here is a very simplex, yet useful cgi script to control any of the regular GPIO ports (direction and value) via web:

!/usr/bin/perl

see if anything was clicked on

print "Content-type:text/html\n\n";

read(STDIN,$form, $ENV{'CONTENT_LENGTH'}); foreach $pair (split('&', $form)) { if ($pair =~ /(.*)=(.*)/) { # found key=value; ($key,$value) = ($1,$2); # get key, value. $value =~ s/+/ /g; # substitute spaces for + signs. $value =~ s/%(..)/pack('c',hex($1))/eg; $inputs{$key} = $value; # Create Associative Array. } }

if($inputs{'function'}) { if($inputs{'function'} eq "changedirection") { if($inputs{'direction'} eq "OUT") {$newdir="in";}; if($inputs{'direction'} eq "IN") {$newdir="out";}; system("/usr/local/bin/gpio -g mode $inputs{'gp'} $newdir"); } if($inputs{'function'} eq "changevalue") { if($inputs{'newvalue'} eq "1") {$newval="0";}; if($inputs{'newvalue'} eq "0") {$newval="1";}; system("/usr/local/bin/gpio -g write $inputs{'gp'} $newval"); } }

get the status of the GPIO bus

open(DATA, "/usr/local/bin/gpio readall|grep -v \"+\"|grep -v wPi|"); @readall=; close(DATA);

print "\n"; print "

\n"; foreach my $statline(@readall) { chomp($statline); $statline=~s/\s//g; $statline=~s/|/,/g;

($null,$bcm,$wpi,$name,$direction,$value,$phys,$null,$phys2,$value2,$direction2,$name2,$wpi2,$bcm2)=split(/,/,$statline); print "

\n"; if($name=~/GPIO/) { if($value=="1") {$color="lightgreen"} else {$color="lightgrey"}; if($direction eq "OUT") {$value="
";}; if(length($phys)==1) {$phys="\ ".$phys;}; print ""; } else { if(length($phys)==1) {$phys="\ ".$phys;}; print ""; } if($name2=~/GPIO/) { if($value2=="1") {$color="lightgreen"} else {$color="lightgrey"}; if($direction2 eq "OUT") {$value2="
";}; print "\n"; } else { print "\n"; } print "\n"; } print "
$bcm$name

$value$phys$bcm$name$direction$value$phys
$phys2$value2

$name2$bcm2$phys2$value2$direction2$name2$bcm2
\n"; print ""; exit;


Comment 7

Posted by rich.de.ree

I guess this project is dead, since it don't work on the newest (and most popular) raspberry


Comment 8

Posted by Nils.Heilemann

https://www.techboard-online.de/thread-32-post-76.html#pid76


Comment 9

Posted by trouch

Issue 139 has been merged into this issue.


Comment 10

Posted by trouch

Issue 149 has been merged into this issue.


Comment 11

Posted by trouch

Issue 151 has been merged into this issue.


Comment 12

Posted by Hess733

Hopefully they can release the 0.7.2 for fixing the Pi2 soon!

plz plz plz plz


Comment 13

Posted by santhoshachar08

Any one has any update on this? If some gives little bit of insight on what needs to be done. I'll give it a try. Looks like many people are waiting for it. Including me. :)

I'm trying to understand the existing code. If some one can give me some heads up on what exactly needs to be done. I've some spare time, which i can utilize it for some good and try to get webiopi up and running on pi-2


Comment 14

Posted by keisuke.seya

You can use the patch from the following URL to get webiopi up and running on pi-2 :

https://github.com/doublebind/raspi