Luup code sample to send messages using Automator app

Hi there,

There is a good code I use to make toggle scene using my Vera and my Karotz. I would like to use automator to send me a message using luup, but really the sample code I saw there is a bit a mess.

Is there any good code somewhere ? Or I have to reverse engeering the Vera Automator plugin ?

Regards,

There is information about using push notifications in lua available here:

[url=http://www.automatorapp.com/push-notifications/]http://www.automatorapp.com/push-notifications/[/url]

[quote=“automator.app, post:2, topic:173645”]There is information about using push notifications in lua available here:

[url=http://www.automatorapp.com/push-notifications/]http://www.automatorapp.com/push-notifications/[/url][/quote]

I saw this before. But since there is some plugin on UI5, I supposed there were some more easier way to do that like push plug in : [url=http://forum.micasaverde.com/index.php/topic,11520.0.html]http://forum.micasaverde.com/index.php/topic,11520.0.html[/url], for example :

luup.call_action("urn:upnp-org:serviceId:IOSPush1", "SendProwlNotification",{ Event= "Title", Description="Message", Priority=2, URL=""}

This is some code I use to warn me of a ‘high’ temp in a medical cooler. Device 6 and 7 are my temp sensors. The ‘14’ in the luup.call is the automator device ID:

[code]local DEVICE_NO1 = 6
local DEVICE_NO2 = 7
local TS_SID = “urn:upnp-org:serviceId:TemperatureSensor1”
local currentLevel1 = luup.variable_get (TS_SID, “CurrentTemperature”, DEVICE_NO1) or 0
local currentLevel2 = luup.variable_get (TS_SID, “CurrentTemperature”, DEVICE_NO2) or 0
– put your device identifier below
local devices = ‘…6c583632’

local msg_body = "Temp te hoog! Hoofd= " … currentLevel1 … ", Bezorgers= " … currentLevel2
local badge = ‘+1’
local sound = ‘default’
local t_push = { message = msg_body, badge = “+1”, sound = “” }

luup.call_action(“urn:automatorapp-com:serviceId:Push1”, “SendPushNotification”, t_push, 14)[/code]