Control pins from webpage WITHOUT python?
deanwesterburg
Posts: 25
I'm trying to figure out how to Control pins from a simple web form as well as read the input from a pin.
I've read through nearly every page of the Spinneret section of the forums and I have not found an answer other than a Python form.
I hope there is an easier way!
Any sample code of Reading a pin value (high or low) as well as an example of setting a pin value from a web form would be appreciated.
Thanks!
Dean
I've read through nearly every page of the Spinneret section of the forums and I have not found an answer other than a Python form.
I hope there is an easier way!
Any sample code of Reading a pin value (high or low) as well as an example of setting a pin value from a web form would be appreciated.
Thanks!
Dean
Comments
In the HTML word a request/response is required to set or read an I/O pin. You must send a request to read a pin. You must send a request to set a pin
Tutorial - shows how to do it.
http://spinneret.servebeer.com:5000/
Example of setting an LED.
http://www.agaverobotics.com/spinneret/controlpanel.htm
Oddly, some of the links appear to be working now on the page, but some still do not. Is that hosted on a Spinneret? It's almost like there are not enough sockets for how many users may be hitting the site at one time. 4 sockets isnt much, but its still really amazing for the price and size!
Thanks for writing that great tutorial!