Read the statement by Michael Teeuw here.
-
@Alvinger That would be wonderful. Thank you :)
-
@off112 I have just pushed an update that includes the departure track info. Try it out and let me know of any issues.
-
@Alvinger Västtrafik user here. I got the upgrade.
Either the line type icon or the track number is shown as “undefined”. Neither is actually visible. Screenshot below.
-
@Von-Sudden thanks, quick fixes aren’t always the best. I’ll have a look. Thanks for the info.
-
@Von-Sudden I just pushed a quick fix, please try it out.
-
@Alvinger From what I can see at ResRobot - Stolptidtabeller 2 ( https://www.trafiklab.se/node/14075/console ), it seems as if Västtrafik does not always post the fields rtTime, rtTrack and rtDate in the response from the API.
-
@Alvinger Almost there. The type symbols are gone, and some tracks are still undefined.
-
@Alvinger Thank you for your good work :)
-
@Alvinger I made a quick fix of line 120 in MMM-ResRobot.js
depLineCell.innerHTML = departure.track || " ";
That made the odd “undefined” tracks disappear from the track column if Västtrafik does not provide that field.
The FontAwesome symbol is still missing in the type column, though.
Thanks for the awesome work.
-
@Von-Sudden thank you for helping out. I will look into the font awedome issue.