Cool! Just updated to v1.1.2
But I don't know if I didn't use it correctly, because the time is still "static" to me, I mean, I tested it with an Inject node, and waited on the dashboard for it to update the value naturally from "a few seconds ago" to "1 minute" and such, but it's stuck on "a few seconds ago" even if I reload the dashboard.
Is there a way for it to update dynamically on the dashboard?
I'm trying to use it like this flow below
[{"id":"7d7e1d25.45ec64","type":"inject","z":"d7bc9070.c779f","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":270,"y":260,"wires":[["b579fa07.432718"]]},{"id":"cb7bec9e.7efa","type":"ui_text","z":"d7bc9070.c779f","group":"6d7c6599.59221c","order":2,"width":"8","height":"2","name":"","label":"Time test","format":"{{msg.payload}}","layout":"row-spread","x":700,"y":260,"wires":[]},{"id":"b579fa07.432718","type":"change","z":"d7bc9070.c779f","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"$moment(msg.payload).fromNow()","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":470,"y":260,"wires":[["cb7bec9e.7efa"]]},{"id":"6d7c6599.59221c","type":"ui_group","z":"","name":"Controls","tab":"b8ee80de.1ffdf","order":1,"disp":true,"width":8,"collapse":true},{"id":"b8ee80de.1ffdf","type":"ui_tab","z":"","name":"Home","icon":"dashboard","order":1,"disabled":false,"hidden":false}]
Almost like "how much time passed since the last I clicked on the Inject node"
The use case is to show how much time from the last time one node was updated
Like this: (but in this case, if the last time this text/template was updated like 2 hours ago, it will still show "a few seconds ago", and as I'm not querying the database for the data, I only have the actual update event that triggered this flow