Spinneret or PC
bennettdan
Posts: 614
I have a project I have been working on and I want to be able to serve a web page on a PC and use that page to send data to a home network of spinneret's that I will use for input/output control.
I plan to use this for a home automation project. The end results would be a picture of the room and just click on the object to be controlled. I have seen many examples on how to turn on/off an LED from a spinneret but I would like the PC to be a central hub to the outside world not a bunch of spinneret's.
Any examples or direction would be great.
Thanks Dan B.
I plan to use this for a home automation project. The end results would be a picture of the room and just click on the object to be controlled. I have seen many examples on how to turn on/off an LED from a spinneret but I would like the PC to be a central hub to the outside world not a bunch of spinneret's.
Any examples or direction would be great.
Thanks Dan B.
Comments
Below is a C# code I use to proxy an HTTP GET from a web server to a spinneret on a home local network. I use this method on the LED Control panel. The proxy grabs the GET request on page load and reads the querystring. This proxy page contains only implementation no HTML. The page is looking for two parameters, LED ID and LED state. The two parameters are used to format a RESTful URL. The GetWebRequest method invokes the RESTful HTTP GET request to the remote Spinneret.
Sounds like you have multiple Spinnerets? You'll have to pass additional information like a Spinneret IP and port along with whatever parameters are required. Or I guess you could use configuration to build the remote IP and port.