lbthomsen / webiopi

Automatically exported from code.google.com/p/webiopi
0 stars 0 forks source link

Dont work on Raspberry 2 #137

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
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

Original issue reported on code.google.com by Digimon1...@googlemail.com on 14 Feb 2015 at 2:37

GoogleCodeExporter commented 9 years ago
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!

Original comment by junquan....@gmail.com on 15 Feb 2015 at 3:37

GoogleCodeExporter commented 9 years ago
Still no feedback on Webiopi on Pi2... can we migrate to an alternate solution?

Original comment by ddoc...@gmail.com on 23 Feb 2015 at 4:17

GoogleCodeExporter commented 9 years ago
WAiting for it .... urgently :P

Original comment by atanaspe...@gmail.com on 8 Mar 2015 at 11:22

GoogleCodeExporter commented 9 years ago
still waiting can we migrate to an alternate solution?

Original comment by lionmil...@gmail.com on 21 Mar 2015 at 9:58

GoogleCodeExporter commented 9 years ago
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.

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

Good luck

Original comment by iktomi12...@gmail.com on 22 Mar 2015 at 7:23

GoogleCodeExporter commented 9 years ago
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=<DATA>;
close(DATA);

print "<html><body>\n";
print "<table align=center cellpadding=5 border=1>\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 "<tr >\n";
if($name=~/GPIO/) {
   if($value=="1") {$color="lightgreen"} else {$color="lightgrey"};
if($direction eq "OUT") {$value="<form action=./gpioweb.cgi method=post><input 
type=hidden  name=changevalue value=$value><input type=hidden name=function 
value=changevalue><input type=hidden name=gp value=$bcm><input type=hidden 
name=newvalue value=$value><br><input type=submit value=$value></form>";};
   if(length($phys)==1) {$phys="\ ".$phys;};
  print "<td align=center  bgcolor=$color width=5>$bcm</td><td align=center  bgcolor=$color width=25>$name</td><td align=center width=10 bgcolor=$color valign=center><form action=./gpioweb.cgi method=post><input type=hidden name=function value=changedirection><input type=hidden name=gp value=$bcm><input type=hidden name=direction value=$direction><br><input type=submit value=$direction></form></td><td align=center  width=5 bgcolor=$color>$value</td><td border=right align=center  width=8>$phys</td>";
} else {
   if(length($phys)==1) {$phys="\ ".$phys;};
 print "<td align=center  width=5>$bcm</td><td align=center   width=25>$name</td><td align=center width=10 >$direction</td><td align=center  width=5 >$value</td><td align=center  width=8 border=right>$phys</td>";
}
if($name2=~/GPIO/) {
   if($value2=="1") {$color="lightgreen"} else {$color="lightgrey"};
if($direction2 eq "OUT") {$value2="<form action=./gpioweb.cgi 
method=post><input type=hidden  name=changevalue value=$value2><input 
type=hidden name=function value=changevalue><input type=hidden name=gp 
value=$bcm2><input type=hidden name=newvalue value=$value2><br><input 
type=submit value=$value2></form>";};
  print "<td align=center  width=8 border=left>$phys2</td><td align=center  width=5 bgcolor=$color>$value2</td><td align=center width=10 bgcolor=$color><form action=./gpioweb.cgi method=post><input type=hidden name=function value=changedirection><input type=hidden name=gp value=$bcm2><input type=hidden name=direction value=$direction2><br><input type=submit value=$direction2></form></td><td align=center  width=25 bgcolor=$color>$name2</td><td align=center  width=5 bgcolor=$color>$bcm2</td>\n";
} else {
print "<td align=center  width=8 border=left>$phys2</td><td align=center  
width=5>$value2</td><td align=center width=10 >$direction2</td><td align=center 
 width=25>$name2</td><td align=center  width=5>$bcm2</td>\n";
}
print "</tr>\n";
}
print "</table>\n";
print "</body></html>";
exit;

Original comment by ansenber...@gmail.com on 14 Apr 2015 at 1:25

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

Original comment by rich.de....@gmail.com on 8 May 2015 at 4:54

GoogleCodeExporter commented 9 years ago
http://www.techboard-online.de/thread-32-post-76.html#pid76

Original comment by Nils.Hei...@googlemail.com on 10 May 2015 at 5:44

GoogleCodeExporter commented 9 years ago
Issue 139 has been merged into this issue.

Original comment by tro...@trouch.com on 19 Jun 2015 at 5:38

GoogleCodeExporter commented 9 years ago
Issue 149 has been merged into this issue.

Original comment by tro...@trouch.com on 19 Jun 2015 at 5:39

GoogleCodeExporter commented 9 years ago
Issue 151 has been merged into this issue.

Original comment by tro...@trouch.com on 19 Jun 2015 at 5:39

GoogleCodeExporter commented 9 years ago
Hopefully they can release the 0.7.2 for fixing the Pi2 soon!

plz
plz
plz
plz

Original comment by Hess...@gmail.com on 4 Jul 2015 at 6:27