Notification templates

atomek123 3 years ago

Hello,

Is it possible to modify e-mail notification templates, i want add the driver's name to subject or body of notification e-mail
I try used to used line based on driverChanged.vm template

Driver: #{if}($driver)$driver.name#{else}$event.getString("driverUniqueId")#{end}<br>

but there is no the same effects in ignitionOff and ignitionOn notifications

Anton Tananaev 3 years ago

I don't think we expose name. You can access driver id, but only for the driver change event.

atomek123 3 years ago

Is any simple solution to acces driver id for other events like ignitionOn/Off, FuelIncrase/Decrase, Overspeed etc. ?

Anton Tananaev 3 years ago

Yes. You can adjust NotificationFormatter class to add it there.

FW 9 months ago

Hello, How can i add Odometer and io84 to email notification?