hacklab-in / webiopi

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

Provided custom html code doesn't work #47

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The sample code provided at https://code.google.com/p/webiopi/wiki/HTML doesn't 
work at following buttons:
a. The switch and LED buttons don't work.

Also, there isn't any examples/custom/index.html file.

What steps will reproduce the problem?
1. Install the webiopi as described in 
https://code.google.com/p/webiopi/wiki/INSTALL
2. Copy .html code from https://code.google.com/p/webiopi/wiki/HTML and put it 
in index.html in /usr/share/webiopi/htdocs
3. access the code at raspberrypi:8000
...

WebIOPi version used?
=>0.6.0

Python version used?
=>2.7

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

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

For Javascript side bugs, Browser?
=>

Please provide any additional information below.

Original issue reported on code.google.com by pp...@cornell.edu on 16 Apr 2013 at 4:02

GoogleCodeExporter commented 9 years ago
See discussion at 
https://groups.google.com/forum/#!msg/webiopi/A7ZGV-HyJk0/ypQBPICAOG4J

I think you miss to set GPIO used as input and output.
You also have to change doc-root instead of overwriting files in 
/usr/share/webiopi

Original comment by tro...@trouch.com on 16 Apr 2013 at 7:49