I have a working Display (Angular 5 App) with informations and some smart home components made by myself that i want to change to habpanel.
There is one pretty basic feature that i am missing: Display a string with a pretty format values when the value was updated. Like: 5 minutes ago or 2 days ago
On my board i use moment.js / angular-moment to display this.
How can i do this with openhab?
My research at this point:
In the roles:
Its possible to do this with java (prettytime) but its not possible to insert custom java into rules
In Javascript:
There is no way to load moment js easily and change a epoch timestamp to a pretty outputformat
You can lazyload files, but this seems over the top for such a simple feature