You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey There,
I just had an idea, and I was wondering if you might be able to advise if it's possible and maybe offer a possible feature in a future release.
I'm currently experimenting with the Prowl service, and I have an idea around pointing to dynamic targets.
The payload is JSON in the following format:
{ "SystemID" : "V1_001", "AlarmType" : "TempHigh", "AlarmDetails" : "Temp is 102" }
What I'm wanting to do, is have the topic section similar to the following where it allows the SystemID Variable to be used for the target instead of having to create separate topic sections just to change the target
[ProwlAlarm]
topic = 1/+/Alarm
targets = prowl:{SystemID}
title = {AlarmType}
priority = 2
format = {AlarmDetails}
Is there maybe another way I can approach this, or are you able to possibly assist?
Thanks heaps
The text was updated successfully, but these errors were encountered:
That is currently not possible: it would mean having to get the JSON payload and react on that. I have thought about that previously, but it's not implemented.
What you might try is to model after the targets dictionary. Please look at the README, starting at where it says Targets can be also defined as a dictionary
Hey There,
I just had an idea, and I was wondering if you might be able to advise if it's possible and maybe offer a possible feature in a future release.
I'm currently experimenting with the Prowl service, and I have an idea around pointing to dynamic targets.
The payload is JSON in the following format:
{ "SystemID" : "V1_001", "AlarmType" : "TempHigh", "AlarmDetails" : "Temp is 102" }
My Prowl Config is:
[config:prowl]
targets = {
'V1_001' : ['xxx', 'Alarm'],
'V1_002' : ['xx2', 'Alarm']
}
What I'm wanting to do, is have the topic section similar to the following where it allows the SystemID Variable to be used for the target instead of having to create separate topic sections just to change the target
[ProwlAlarm]
topic = 1/+/Alarm
targets = prowl:{SystemID}
title = {AlarmType}
priority = 2
format = {AlarmDetails}
Is there maybe another way I can approach this, or are you able to possibly assist?
Thanks heaps
The text was updated successfully, but these errors were encountered: