Open GoogleCodeExporter opened 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
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
WAiting for it .... urgently :P
Original comment by atanaspe...@gmail.com
on 8 Mar 2015 at 11:22
still waiting can we migrate to an alternate solution?
Original comment by lionmil...@gmail.com
on 21 Mar 2015 at 9:58
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
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
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
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
Original issue reported on code.google.com by
Digimon1...@googlemail.com
on 14 Feb 2015 at 2:37