chill wrote: 
> I think I'm there now. Not sure what I was doing wrong before, but my
> script now autostarts and autoupdates after I reboot the pCP.  I'll tidy
> it up a bit and post what I have, so as to get feedback on my scripting
> misconceptions :)
> 
> The skill is working well.  Unfortunately I can't subscribe from iPhone,
> so I'll have to wait a few more days until the Dot arrives.

Good to hear. If you run the script manually from the command line, it
should respond with OK 1 if the updating went well (the '1' means one
tunnel was updated). 

Regarding brackets:

[] delimits an array or list. In this case the array only has one member
because you have a single tunnel, but it is still an array.
{} delimits an object, in this case a JSON object. JSON requires the use
of "" around strings and will not tolerate ' unless it's inside a
string.
If you want to build a string out of a substring that contains "" then
the outer quotes need to be ', or vice versa. So e.g. 'This is a "test"'
or "This is a 'test'".
The backtick ` means that what is inside is executed as code.

In our case, the backticks are around the -wget -so it is executed and
by wrapping the result of that execution in "" we can assign the result
of that wget to URL and RES in a single command that runs/assigns.


------------------------------------------------------------------------
philchillbill's Profile: http://forums.slimdevices.com/member.php?userid=68920
View this thread: http://forums.slimdevices.com/showthread.php?t=111016

_______________________________________________
plugins mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/plugins

Reply via email to