-
Notifications
You must be signed in to change notification settings - Fork 0
Dynamic Display
When /display or / is accessed this flow builds a webpage by setting the page title, injecting the JS and HTML. Every Second the inject node fires which queries the DB for all data with a status of Active or Late. This Data is phrased to work out the Display style and t oconvert the TS to local time. THis is then built into HTML code using Mustache to loop through the Data. Once completethis HTML Data is pushed to the webpage via a Websocket.
When the user clicks on one of the lines of data, its Index is sent via websocket, This is tested to see if its not 'Open' (Sent by the webpage onload to refresh data) The status of the record matching the index is updated to manaully handled in the DB.
When a new page is added to the DB the Link node is triggered to play a noise using the websocket