Set & Get variable on remote Vera

Huge thanks to you both.

Thanks as always for your patience. Due to having very limited ‘play’ time (family and the day job) I’m only able to dip in and out of trying to code something on my vera.

When you have time I’m curious about the use of luup.inet.wget and why do I only get the required variable value using a direct call via a browser, yet it seems returns two different values when called wrapped within luup.inet.wget ?

The first value is a status (which seems to always be a “0” string?) and the second being the required variable value as a string.

Here’s the documentation for the wget call:
http://wiki.micasaverde.com/index.php/Luup_Lua_extensions#function:_wget

It actually returns three values these days. Many Lua functions do return multiple values. The string is what’s returned in the HTTP response body, and it’s just that which the browser shows, unless the status returns an error code.