Custom notification

jps19722 years ago

Hi,

Is possible to create a custom notification without create with computed attibute?
Imagine that I want to create a notification about Coolant temperature, when reach some value send a notification, how can I do that?
Thank you.

Anton Tananaev2 years ago

If it's not possible to configure it on the device side, you would have to use computed attributes.

jps19722 years ago

Follow the logic per example for PowerCut or HighRPM like:

"power" > "12000" ? "powerCut" : null

We don't have alarm for coolant temperature?

Meanwhile, is possible to a normal user create computed attributes, or admin can do that?

Anton Tananaev2 years ago
  • Only admin can create computed attributes.
  • Your expression doesn't make sense. Make sure you read the syntax documentation.
  • There's an alarm called "temperature".
jps19722 years ago

And there is any way to create custom alarms?
The idea is have some way to user can create alarms for some attributes.

Anton Tananaev2 years ago

I believe I already provided the answers.

jps19722 years ago

I understood you that I should try to use alarms are already created.

However, I have two questions:

  1. Like user cannot create or edit computed attributes, how can user set the value to reach the alarm? Per example, highRPM, how user can set the value to reach the alarm?

  2. Follow post https://www.traccar.org/forums/topic/add-alarm-type/ is possible to create custom type alarms? In this case something like "HighColantTemperature". Is possible to create via API?

Thank you one more time.

Anton Tananaev2 years ago
  1. You can create a computed attribute that depends on a device attribute. This way the threshold can be defined by the user.
  2. It's possible to create a custom alarm, but you won't be able to set up a notification for it. So it's kind of pointless.
jps19722 years ago

I appreciate your help.
To test, I already create a attribute on device with highRpm, to can read that attribute of device how can I do?

My example:

rpm < device.attributes.highRpm ? "highRpm" : null
jps1972a year ago

Hi,

Someone can help?
Thank you.