Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More than 5 final destinations possible? #35

Open
clavis-420 opened this issue Apr 26, 2022 · 5 comments
Open

More than 5 final destinations possible? #35

clavis-420 opened this issue Apr 26, 2022 · 5 comments

Comments

@clavis-420
Copy link

I want to shape my departure boards 'mastscharf' (an own board for each direction instead of one board for all departures). Unfortunately, five final destinations arent't always enough for this. Is there any way to define more than five fDestinations?

@Com-Lum
Copy link
Owner

Com-Lum commented Apr 28, 2022

I'm not sure about what you want to achieve.
But you can always use one instance of the module for one connection (1 final destination, with possible limitations to ctype/line).
More than 5 final destinations would be needed in case you would have several lines which stop at your entry point and travel to your target location (for example frankfurt Konstablerwache -> Hauptwache) There you have several S-Bahn / trams which stop at both . But this case should be quite rare and in this case there are so many connections that you can take any of them.
Anyway in this case you could use one instance for trams, one for S-BAHN, or one instance for Line X and the next for line y.

Increasing the destinations to 6 or 7 is possible but it will increase the code lenght in several if-clauses.
Can you post an example of our current settings and describe what you would like to change? maybe take a photo of the laoded modules.

@Foil14
Copy link

Foil14 commented May 18, 2024

Hello,

I have the same problem. I want to display all train and S-Bahn departures (one line each) from a station in the direction of Frankfurt. However, these have different end stations in the timetable depending on the time. I have a total of 9 end stations.

I have tried:

{
module: 'MMM-RMV',
position: 'bottom_right',
config: {
apiKey: 'xxx', // see chapter below
stationId: '3004646',// - 'Rödermark-Ober-Roden Bahnhof',
labelStation: true,
delayLimit: 0,
fDest: 'false', // see chapter below
// reduceD: false, // reduces length of destination name
fDestination1: 'Frankfurt (Main) Hauptbahnhof',
//fDestination2: 'Neu-Isenburg Bahnhof',
//fDestination3: 'Frankfurt (Main) Südbahnhof',
//fDestination4: 'Wiesbaden Hauptbahnhof',
//fDestination5: 'Hochheim (Main) Bahnhof',
//fDestination6: 'Flörsheim (Main) Bahnhof',
//fDestination7: 'Frankfurt (Main) Höchst Bahnhof',
//fDestination8: 'Frankfurt (Main) Griesheim Bahnhof',
//fDestination9: 'Wiesbaden-Mainz-Kastel Bahnhof',
maxC: 8,
CType: 'Bus',
}
},

Then I only see connections to the main station.

If I change fDest to true and un-Slash all fDestination the module only shows the first 5 Destinations.

Any ideas on how I could fix this or where my error in reasoning lies?

@Com-Lum
Copy link
Owner

Com-Lum commented May 19, 2024

It's only possible to show 5 destinations. In case you need more just load the module twice. Maybe you can put the destinations in the morning in one config and the evening ones in the second one

@Foil14
Copy link

Foil14 commented May 20, 2024

Thanks for the quick reply. I will try that out. Quick question for beginners: Is there a guide on how I can load a module twice? Simply copy the existing entry again in config.js?

@Foil14
Copy link

Foil14 commented May 21, 2024

I got it. Simply copy the entry and change the position of the module. Everything is working now.

Thank you for this module!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants