Html with javascript to show departure monitor

Hello friends,

i try to show a departure monitor but the dashboard is blank.

Which is the best way, respectively node for showing data from a web service like this:

<div class="mvv-departure-monitor" monitor-configuration="eyJsYW5ndWFnZSI6eyJkZXBhcnR1cmUiOiJBYmZhaHJ0IiwidHJhaW5TdG9wcyI6IkhhbHRlc3RlbGxlbiIsImRpcmVjdGlvbiI6IlJpY2h0dW5nIiwiZm9vdGVyTm90ZSI6IqkgQ29weXJpZ2h0IiwiZm9vdGVyVGV4dCI6IldlaXRlcmUgRmFocnBsYW5hdXNr/G5mdGUgdW50ZXIgd3d3Lm12di1hdXNrdW5mdC5kZSBvZGVyIG1pdCBkZXIgTVZWLUFwcCIsImhlYWRlclRleHQiOiJBYmZhaHJ0ZW4gZvxyIGhldXRlLCAiLCJsYW5ndWFnZSI6ImRlIiwibGluZSI6IkxpbmllIiwibGl2ZSI6IkxpdmUiLCJzdG9wIjoiSGFsdGVzdGVsbGUiLCJ0cmFjayI6IkdsZWlzIn0sImlzRnVsbHNjcmVlbiI6ZmFsc2UsInN0YXRpb25zIjpbeyJzdGF0aW9uIjp7Im5hbWUiOiJN/G5jaGVuIiwiaWQiOiJkZTowOTE2Mjo2IiwiYW55VHlwZSI6InN0b3AiLCJzdGF0ZWxlc3MiOiI5MTAwMDAwNiIsInJlZiI6eyJpZCI6IjkxMDAwMDA2IiwiZ2lkIjoiZGU6MDkxNjI6NiIsIm9tYyI6IjkxNjIwMDAiLCJwbGFjZUlEIjoiMSIsInBsYWNlIjoiTfxuY2hlbiIsImNvb3JkcyI6IjEyODY5NzIuMDAwMDAsNTg2OTgxOC4wMDAwMCJ9fSwibGluZXMiOlt7Im51bWJlciI6IlMyIiwic3ltYm9sIjoiOTJNMDIuc3ZnIiwiZGlyZWN0aW9uIjoiRXJkaW5nIiwic3RhdGVsZXNzIjoiZGRiOjkyTTAyOiA6SDpqMjIiLCJuYW1lIjoiUy1CYWhuIn1dLCJsZWFkVGltZU1pbnV0ZXMiOjEwfV0sImxpbmVzIjpbXSwibWF4UmVzdWx0cyI6MSwiZmV0Y2hJbnRlcnZhbEluTWludXRlcyI6MSwic2hvd05vdGlmaWNhdGlvbiI6ZmFsc2V9"></div>
<script type="text/javascript" src=""></script>

I upload a picture to show what i mean.

Many thanks in advance


Not terribly clear what you are asking for.

Are you saying that you want to have a local display of data provided by a remote API?

I think that you may have ripped those 2 lines from a web page, am I right? If so, you will need to analyse how the script works in order to work out what data comes back. Not easy since only the minimised version of the code is provided.

Perhaps if you share a link that returns the web view you took the picture of, we could look at it more closely.

Oh, sorry sorry for the confusion.

You can place a departure monitor generated as a service from this website:
Baukasten für Abfahrtsmonitore

Open the second plus symbol to compile the information needed for your tramway station. And after click on "HTML code erzeugen" you get the code i posted. The code is for your own homepage to show the departure monitor for your tramway station (see picture in my first post). When i save the code as a html-file on my desktop and click it, it shows the departure monitor. But i would like to have it in my dashboard. (i hope my english is okay to understand, sry)

thank you for your effort

Will try to find some time to look later unless someone beats me to it. I suspect though that the UI is largely generated via JavaScript so you would need to use a tool that triggers the JS in order to be able to get the data unless you can discover how the JS works and get it directly.

OK, thank you

Does anyone have an idea?

So what is generated is a set of HTML code with javascript that you can embed in another web page. As suspected, you cannot get the raw data though you might be able to decode the script possibly.

The easiest way to use this with Node-RED is to embed that code into the Dashboard by using the ui_template node.

Thank you very much. I´ll try it