It probably the most simple of codes, but I am very new to this and need some help. I am trying to build a dashboard for my smart home via OpenHab2.0. For this dashboard, I'd like to have a widget that shows me the next 5 departures from my tram stop. the layout of my table is as follows:
table format The data I am trying to insert is found via this URL: https://ayacoo.bellatrix.uberspace.de/kvb/examples/station.php?id=245.
"0":{"line":"5","direction":"Am Butzweilerhof","time":"Sofort"},
"1":{"line":"5","direction":"Heumarkt","time":"6 Min"},
"2":{"line":"13","direction":"Sülzgürtel","time":"8 Min"},
"3":{"line":"13","direction":"Holweide","time":"8 Min"},
"4":{"line":"E","direction":"Melatengürtel","time":"10 Min"},
"5":{"line":"141","direction":"Vogelsang","time":"13 Min"},
the "0" to "5" are the identifiers of the current and next five departures. However, I don't know how to get the line, direction and time into the table.
Also, I would like that the table updates every minute automatically. Is there any way of programming this in HTML? because that's the only format the widget builder accepts as far as I know.
Thanks