qistoph/MMM-nstreinen

Possibility to set multiple destinations

Closed this issue · 6 comments

I would love to have the possibility to set two stations as 'destination', and only show trains to those destinations. Might that be possible?

You could add two modules. One with each destination and the same origin. Would that help you out?

@Elmardus Could you solve this? Need to find a way to this as well.
Not really a power user yet, so can't tweak modules just yet.

I'm afraid I can't. I've looked into the code but couldn't figure out a way to do it, but I'm not a good programmer ;)

@Elmardus figured it out.
You can edit the nstreinen.js file and add your destination.
You'll find the file at MagicMirror>modules>nstreinen>nstreinen.js
In my version the line is close to the top and it looks like this:
Module.register("nstreinen", {
defaults: {
destination: "Amsterdam", //this used to be Null.
.....

@Elmardus or even better: just add destination:"your destination" on the config.js file :)

For now I'm closing this issue, because @dionator seems to have fixed his issue and my previous question was not answered.

@Elmardus feel free to re-open this issue with a more specific description of the solution you're looking for.