@jimjay203 Actually I don’t know. But I know for sure that the module displays just the data which are given to the HAFAS system. If your provider delivers such information then it would be possible to display them.
Read the statement by Michael Teeuw here.
Posts
-
RE: MMM-PublicTransportHafas – Public transport information for all stations known to Deutsche Bahn
-
RE: MMM-PublicTransportHafas – Public transport information for all stations known to Deutsche Bahn
@Vauxdvihl Unfortunately I can’t do anything about this. Obviously MVG or DB didn’t update their data accordingly.
-
RE: MM docker container problem with mac and linux
@tomasz2101 In my
config.jsI put""in theaddresssetting. I also have"::ffff:192.168.2.1/120"included in myipWhitelist. My home network is192.168.2.0.my
config.jsvar config = { address: "", // - "", "0.0.0.0", "::" to listen on any interface // Default, when address config is left out, is "localhost" port: 8080, ipWhitelist: ["127.0.0.1", "::ffff:127.0.0.1", "::1", "::ffff:192.168.2.1/120", "192.168.2.110", "172.17.0.1"] /* module config */ } -
RE: MM docker container problem with mac and linux
@tomasz2101 And? Does it work?
-
RE: MM docker container problem with mac and linux
@tomasz2101 This looks okay to me. Although the log states
"WARNING! Could not find config file. Please create one. Starting with default configuration.".
Where did you put yourconfig.jsfile? Is it in~/magic_mirror/configon your mac? -
RE: MM docker container problem with mac and linux
@tomasz2101 Why is that not according to documentation?
I have a simliar setup like you. I run docker on my mac and access the mirror instance via my mac it works just fine.Maybe you should try it without creating your own docker image. Try the solution as described in the MagicMirror documentation.
-
RE: MM docker container problem with mac and linux
@tomasz2101 Try to set
ipWhitelistto[ "127.0.0.1", "::ffff:127.0.0.1", "::1" ]. If you want to access the mirror from your Linux or Mac machine add their respective IPs too. -
RE: MMM-PublicTransportHafas – Public transport information for all stations known to Deutsche Bahn
@onkelbobby I’ve made an update to the module. It is now possible to provide key-value pair which are used to replace strings in the displayed directions. Use the option
replaceInDirections. For more information see the documentation. -
[MMM-GameOfLife] A Game of Life simulation for your MagicMirror
Here’s another module I programmed. It is probably one of the best modules ever for the MagicMirror because it does absolutely nothing useful. It just displays and simulates a game board for the Game of Life.
Conway’s Game of Life is a very interesting thing in information since. Every true nerd should simulate the game on their MagicMirror.

-
RE: MMM-PublicTransportHafas – Public transport information for all stations known to Deutsche Bahn
@onkelbobby If your mirror displays
"STR"your transport provider sends it that way.One way to suppress that would be to set the option
showOnlyLineNumberstotrueand providing a custom css file with a rule like so:.str11:before { content: "Tram "; } -
currentweather icons are not displayed transparent
I’m using the currentweather module and the MMM-RandomPhoto module on my MagicMirror. This works like a charm but the weather icons displayed by currentweather are not transparent. They are displayed in a small black box.
Does anybody know how to fix that?
-
RE: I got sucked up into a magic mirror! (and need some help)
@E3V3A I prefer wine. ;)
I’m looking forward to see your results.
-
RE: MMM-PublicTransportHafas – Public transport information for all stations known to Deutsche Bahn
@Klinge There is now also an update available which will prevent this “layer 8 problem“. ;)
-
RE: MMM-PublicTransportHafas – Public transport information for all stations known to Deutsche Bahn
@Klinge The problem lies in your settings. First you listed
timeToStationtwice. The last setting will apply which is60. Next you state that you only want to see departures within the next 10 minutes (timeInFuture). That will lead to only unreachable departures. Of course it is a bug that the module crashes. I will fix that with the next update.But for now you can bring your mirror to work if you set
timeInFutureto a higher value. Maybe you should use60. That way the module has enough departures to choose from. -
RE: I got sucked up into a magic mirror! (and need some help)
@E3V3A I have had a look at your code. I’ve opened a pull request. Have look!
-
RE: I got sucked up into a magic mirror! (and need some help)
@E3V3A Your code looks nicer this way. Well done!
What do you want to do next? Try to describe the goal. Maybe you should open an issue in GitHub where you describe what you want to do next. That way you will not forget what you wanted to achieve and others (like me) can see what you’re up to.
BTW: I left some comments on your code on GitHub.
-
RE: DeutscheBahn - API - direct relations - information of german railway - DB
@__Tom__ Hallo Tom! Wenn um das Lernen geht und den Spaß an der Sache, dann darf es gerne auch kompliziert sein. :)
Alle anderen, die was einfacheres suchen, können ja dann auf mein Modul zurückgreifen.Dir auch viel Spaß beim Basteln! :)
-
RE: MMM-PublicTransportHafas – Public transport information for all stations known to Deutsche Bahn
@djsunrise19 Can you please open an issue in the GitHub repository and provide there information on your used
stationID? -
RE: MMM-PublicTransportHafas – Public transport information for all stations known to Deutsche Bahn
It is now possible to display the departure time in absolute (like
18:02+3) or relative (in 7 minutes) format viashowAbsoluteTime. Furthermore you can reorder the columnOrder viatableHeaderOrder;
-
RE: I got sucked up into a magic mirror! (and need some help)
@E3V3A Thank you! It was indeed my goal to write more readable code. Oftentimes javascript code is a mess and I thought I can do better.
I’ve had a look at your code. It’s quite nice too. But of course it can be improved. ;)
Maybe you should consider putting the methods
processData,getDataandscheduleUpdatein another class or at least in thenode_helper.jsfile which is meant for exactly this purpose.