Hello group.
I just factory reset my Vera 3 (UI5) and re-installed Vera Alerts 6.43
I’m also running openLuup on a RPi 3 and I’m able to send actions to the my Vera’s VeraAlerts service pretty easily.
Trying to learn some simple Lua scene code for triggering VeraAlerts messages for various tasks. I’m having a syntax problem with passing a variable to the luup.call_action. I’ve been reading the “Scene Scripting” folder (since this is a new area) but I thought I would ask this question here first.
I’m trying to pass the iPhone Locator variable “MapUrl” to a PushOver API variable {url=xxx} but can’t figure the right way.
In vb or vba it would be something like theURL = “{url=” & strURL & “}” but . . . sigh
On my scene’s “Lua scene code:” I have the below:
[code]local strURL = luup.variable_get(“urn:upnp-org:serviceId:IPhoneLocator1”,“MapUrl”,27)
local PushOverSound = “{sound=bike}” --Proper syntax for sending PushOver Variable (Works properly)
–local theURL = “{strURL}” --Can’t find proper syntax
–local theURL = “({strURL})” --Can’t find proper syntax
–local theURL = “strURL” --Can’t find proper syntax
local theURL = “{url=http://MyWellFormedURL.com}” --PROPER SYNTAX FOR SENDING PUSHOVER URL LINK
luup.call_action(“urn:richardgreen:serviceId:VeraAlert1”,“SendAlert”,{Message = "Location " …PushOverSound …theURL , Recipients=“Pushover-ChrisFace”}, 10029)[/code]
In the above test, I can’t make the luup.call_action include a clickable link in PushOver {url=www.maps.google.com-whatever local strURL returns------}
I can encode clickable url’s sending my alert to my android device profile, but not my pushover profile.
Of course, I’m reading more every day, but still pretty blind & this is my first fail.
Would someone care to set me right?
Thanks,
Chris