So I'm a little out of my world when it comes to the Luup environment and vera coding in general. I know C# and .net pretty well but I'm so confused with how to write a simple plug in for my vera.
I have a device (Cr6 Campbell Scientific Datalogger) that is controlling my sprinkler system. I basically have flags that need to be set high in order to turn on a zone. This can be done using and html command:
http://user:pass@ipaddress/?command=setflag:zone1If successful, it returns in json format this : {"outcome": 1,"description": "success"} I can also return in xml or html.
I want to integrate this into a simple vera control so I can do it from my phone. All timing and everything is in the Datalogger I just need to set the flag high and then read the flag status from vera every 30 seconds or so using this command.
http://user:pass@ipaddress/?command=getflag:zone1This returns a parameter in html, json, or xml. I know I'll need to parse it but I can get to that later.
I looked through the OpenSprinkler Plug in and I couldn't make out how that works enough to even start this project. Do any developers have a good starting point or anything I can look at?