I have the following code below in a scene to speak the weather. It fires when I disarm the alarm in the morning. It worked yesterday, but right now, it stops talking at “… with a high today”. If it said “… with a high today of” I would think it was a problem pulling the variable for the high temp. But it stops at “today”.
I know C2DM has a limit of 1024 characters, but I don’t think this message is anywhere near that. Thoughts?
[code]local currentTemp = luup.variable_get(“urn:upnp-org:serviceId:TemperatureSensor1”, “CurrentTemperature”, 48)
local lowTemp = luup.variable_get(“urn:upnp-org:serviceId:TemperatureSensor1”, “CurrentTemperature”, 49)
local highTemp = luup.variable_get(“urn:upnp-org:serviceId:TemperatureSensor1”, “CurrentTemperature”, 50)
local currentCondition = luup.variable_get(“urn:upnp-micasaverde-com:serviceId:Weather1”, “Condition”, 47)
local currentWind = luup.variable_get(“urn:upnp-micasaverde-com:serviceId:Weather1”, “WindCondition”, 47)
local speakMessage = "{tone:1} Good Morning. Current conditions are " … currentCondition … " with wind " … currentWind … ". The temperature is " … currentTemp … " degrees with a high today of " … highTemp … " and a low of " … lowTemp
luup.call_action(“urn:richardgreen:serviceId:VeraAlert1”, “SendAlert”,
{Message = speakMessage, Recipients = “”}, 46)[/code]