Use case is a regularly updated display of vehicle tracking data retrieved through a REST call, onto a central office screen, with no user interaction.
Asked
Active
Viewed 98 times
1 Answers
2
There is no single answer for this, but some alternatives to consider:
- add some JavaScript to your screen that uses the JS setTimeout() method or something similar to reload the page
- for a smoother result but a lot more effort write the section of the screen that needs to auto-update as a Vue component and use the standard websocket interface to send data to the browser to update the data in the HTML; this is generally best done using the NotificationMessage interfaces and methods in the Moqui API where the JavaScript client registers on a topic and gets a notification along with any others registered (structure the topic ID as needed to differentiate different feeds) and have a scheduled service job feed the notification topic

David E. Jones
- 1,721
- 1
- 9
- 8