balassy / MMM-Futar

MagicMirror module that displays Budapest public transport information.
MIT License
5 stars 2 forks source link

Possible to add header or direction? #7

Open citadella opened 5 years ago

citadella commented 5 years ago

Would it be possible to add a header for the module or a direction for the upcoming departure? At present I have multiple 'stops' I use, two for a tram in each direction and one for a bus/trolleybus. I'd like to add the tram stop in both directions, but at present I have no way of identifying where it's going. If we're looking to save horizontal real estate I think it'd be simple enough just to add a text section to the header piece for each 'stop'. Otherwise it's a great module so far-thanks for all the work!

radokristof commented 5 years ago

You can add custom header name to your module.

citadella commented 5 years ago

I mean, for example: Oktogon: Széll Kálmán tér felé 4 tram - 4 minutes Oktogon: Móricz Zsigmond körtér 6 tram - 2 minutes

Not a section header, but a header for each direction from the stop

radokristof commented 5 years ago

Ah I see. We have discussed this earlier and this would be a great feature but at the moment what you can do is leave routeIds empty and create two modules for each direction.

startika22 commented 5 years ago

Or you could add stopTime.stopHeadsign to viewModel and use it instead of routeName in the header.