Hi All
I am trying to include the duration of a open door in my notification, but i have no idea how to make the either the string part of the notification.
I used "local OpenTime = tostring(OpenTime)" to convert my second counter to a string.
If anyone can point me in the right direction, it would be precipitated
variable in commandArray['SendNotification']
Moderator: leecollings
-
- Posts: 329
- Joined: Tuesday 16 July 2013 22:54
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 3.8807
- Location: North East England
- Contact:
Re: variable in commandArray['SendNotification']
Format from the wiki Events page is:
So with your OpenTime variable you could say:
Code: Select all
commandArray['SendNotification']='subject#body#0'
Code: Select all
commandArray['SendNotification']='Open Door#Door has been open for ‘..OpenTime..’Seconds#0'
Raspberry Pi 2 B - 2A@5V PSU - Raspbian + Domoticz + RFXtrx(89), LightwaveRF House(dimmers, sockets, wireless/mood switches), Owl CM113, 4 LaCross Temp / Humidity Sensors, 4 Siemens PIR, Smappee, Solaredge, ESP8266
-
- Posts: 6
- Joined: Sunday 12 June 2016 10:55
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 3.9319
- Location: South Africa
- Contact:
Re: variable in commandArray['SendNotification']
Hi simonrg
Thank you for the pointer, i did look at the WiKi, but i misunderstood the example:
I had - commandArray['SendNotification']='DOMOTICZ-Garage door alert#The garage door has been open for more than ..OpenTime.. Minutes.'
instead of - commandArray['SendNotification']='DOMOTICZ-Garage door alert#The garage door has been open for more than '..OpenTime..' Minutes.'
Thank you for the pointer, i did look at the WiKi, but i misunderstood the example:
I had - commandArray['SendNotification']='DOMOTICZ-Garage door alert#The garage door has been open for more than ..OpenTime.. Minutes.'
instead of - commandArray['SendNotification']='DOMOTICZ-Garage door alert#The garage door has been open for more than '..OpenTime..' Minutes.'
Who is online
Users browsing this forum: No registered users and 1 guest