Page 1 of 1

Customizing WebIOPi

Posted: Fri May 10, 2013 6:05 am
by krishprasads
Hi.

I've been trying to get WebIOPi's example scripts work. I'm using WebIOPi version 0.6.

The scripts under the app/ folder work - gpio-header, gpio-list etc. I've tested the Web Interface with LEDs connected to GPIO and it works like a charm :)

Now, I'm having problem with executing example scripts provided with the WebIOPi package.
Here's what I did.

1. I 'moved' some of the scripts in the 'example' folder of WebIOPi to

Code: Select all

/usr/share/webiopi/htdocs 
of the Pi. (Specifically, I tried magpi-cambot2)

2. Executed the python script (cambot.py)


When I press the buttons in the Web Interface (of cambot2) after the above mentioned steps, nothing happens :(

I'm using /app/gpio-header as a reference to monitor changes in voltages. But I see no changes when I press buttons in the web interface of cambot2 project.

Kindly help me out! Am I missing something?

Thanks in advance :)

Re: Customizing WebIOPi

Posted: Sat May 25, 2013 11:52 am
by kodiak1120
Hi, I'm having a similar problem...

I'm trying to create a custom interface to control six relays attached to my Raspberry Pi. Everything works using the stock interface, but I want to make custom buttons that will turn each relay on when pressed once, and off when pressed a second time. I"m trying to use this to control my pool equipment (lights, pumps, etc.).

I copied the index.html and webiopi_custom.py into /usr/share/webiopi/htdocs. When I navigate (on my phone via wireless network) to 192.168.1.111:8000, I see the custom interface provided by index.html. I then edited the index.html file to change all references from GPIO 7 to GPIO 25 (one of the GPIO's hooked up to one of my relays). For some reason, the S.O.S. 1, and PULSE buttons work, as do the sliders on the bottom of the page, but the simple "SWITCH" and "LED" buttons do not work.

Can anyone tell what I'm doing wrong? I doesn't seem to make sense that some buttons would work and others wouldn't.

Thanks,

Kevin