Code: Select all
commandArray = {}
if (devicechanged['MyDeviceName'] == 'On') then
commandArray['SendNotification']='message 1'
commandArray['SendNotification']='message 2'
end
return commandArray
Moderator: leecollings
Code: Select all
commandArray = {}
if (devicechanged['MyDeviceName'] == 'On') then
commandArray['SendNotification']='message 1'
commandArray['SendNotification']='message 2'
end
return commandArray
Code: Select all
function mail(subject, body, address)
commandArray[#commandArray+1]={["SendEmail"]=subject.."#"..body.."#"..address }
end
Code: Select all
if devicechanged['Dummy'] == 'On' then
mail('Domoticz mail', 'This is a sample body text', '[email protected]')
mail('Domoticz mail', 'This is a sample body text', '[email protected]')
mail('Domoticz mail', 'This is a sample body text', '[email protected]')
end
Don't know about telegram but could be the same principal.Plaagje wrote:I'm using telegram as a notification service, so it seems to me it should be "instant".
You mention that the first message is sent and therefore it skips the second message.. but i experience the other way around.
Only the second message is send...
Code: Select all
commandArray = {}
commandArray[1]={['OpenURL']='www.cam1.com/api/movecamtopreset.cgi' }
commandArray[2]={['OpenURL']='www.cam2.com/api/movecamtopreset.cgi' }
commandArray[3]={['OpenURL']='www.cam3.com/api/movecamtopreset.cgi' }
return commandArray
Users browsing this forum: No registered users and 1 guest