Can the service email template in 1.8 be changed?

Hi,

The maintenance emails from the 1.8 Server are really … not good (to say it nice) formatted.

I use Gmail with the narrow layout and even on a 27" monitor I can’t see the time when the given monitor was last seen/come back on in the overview. Instead I see 3 times roughly the same string “E-Mail Benachrichtigung für Bildschirm id60009-02 - Wien Hbf. Reisezentrum Schalter 2 - E-Mail Benachrichtigung für Bildschirm id60009-02 - Wien Hbf. Reisezentrum Schalter 2 Bildschirm id60009-02 - Wien Hbf. Reisezentrum Schalter 2 mit ID 67 wurde zuletzt gefunden um 2019-04-1” at best with my detailed monitor strings “id60009-02 - Wien Hbf. Reisezentrum Schalter 2”.

I addition it is strange to call the mail which told you that the monitor has a problem “Benachrichtigung” and that one that says that all ist back to normal “Alarm”.

I would have (I need) mails where the header is the same for all mails for the same monitor, so that GMail can group them and the last state is on top, and the important info comes next without much fancy and duplicated stuff around.

So I would like to have the header like “Info for [ID]” (in my case “Info for id60009-02 - Wien Hbf. Reisezentrum Schalter 2”) and the body like “Alert: ID [XIBO ID] is offline since [timestamp]” and “Recovery: ID [XIBO ID] comes back online at [timestamp]” (in my case “Alert: ID 67 is offline since 2019-04-29 14:00:00” and “Recovery: ID 67 comes back online at 2019-04-30 10:00:00”). Than I have a clean an informativ picture in Gmail with a more or less short string “Info for [ID] - Alert: ID [XIBO ID] is offline since [timestamp]” (in my case “Info for id60009-02 - Wien Hbf. Reisezentrum Schalter 2 - Alert: ID 67 is offline since 2019-04-29 14:00:00”).

How can I achieve this? I have searched the whole XIBO-Docker directory but can’t find the file in which this stings are stored.

The German text will come from the user contributed translations.

If they are inaccurate, then we welcome contributions there.

You can edit directly on Launchpad here:
https://translations.launchpad.net/xibo/github/+pots/default/de/+translate

I have updated all Strings related to Email. But this are only static stuff. Is there any way to alter the Email templates (the header and body of the actual notification Emails)?

BTW: I update our server to 2.x in the near future. If eg. the Email template change is only possible in this version and up you can point me to a solution for this version to.

It isn’t possible to customise the format of the emails directly. You’d have to make code changes, and then roll those in to a new container and run that instead of the official containers. Alternatively you could patch changes in to the official containers, however, be aware that they will be wiped out if the container is recreated.

The code for the CMS lives in the cms repo here:

1.8 is no longer getting new features, only bug fixes, so its not something we’d be able to change there.

We will make some changes to the alerts that go out for version 2 CMS instances in a forthcoming release, based upon your suggestions.