CFenner / MMM-LocalTransport

A module for the MagicMirror to display informations about local tranportation.
MIT License
43 stars 15 forks source link

Style Improvements #9

Closed GHLasse closed 7 years ago

GHLasse commented 8 years ago

Several style improvements making the font size equal to other modules and allowing for different style options to be set, some shown below: mm_lt_sample_veryshort mm_lt_sample_short mm_lt_sample_verylong

This fixes issue #5, #6 and #8

Explanation of config variables:

tombamber commented 8 years ago

Hey, how do I install it with these new improvements? I tried replacing the code with this code and the magic mirror did not display at all - just a black screen.

Thanks :)

GHLasse commented 8 years ago

Can you pull the latest code from my site? I remember there was some minor bug in this merge request, but it should only really cause issues with a specific setting (which is being ignored because of the bug). Long story short I fixed it but forgot to set up another merge request... Could be the bug was more serious than I thought?

GHLasse commented 8 years ago

Seems like GitHub is linking to the latest version of my fork already. the essential change was in the main code: }else if (this.config.displayStationLength = 0){ changed to }else if (this.config.displayStationLength == 0){

Can you check that you set all the parameters required and that the error is not from another change you made? Can you send me the options you have set (you can leave the API key blank or as XXX - I will replace it with my own to test...)

GHLasse commented 8 years ago

Currently updating some things to make sure I didn't accidentally leave the repository in an old state. Therefore the latest version now probably doesn't work, as some translation strings are missing. Will upload the rest as soon as I have time again. (remind me if I stay silent for too long ;-) )

GHLasse commented 8 years ago

ok, that should be all :-D even more options than before - check out the readme for details...

tombamber commented 8 years ago

Maybe I add the code wrong. I simply replaced the code you wrote on this page with the original, is that correct?

Is there an easier way to install it through the terminal? I'm sorry, I'm quite new to this.

GHLasse commented 8 years ago

If you replaced ALL the original files with mine AND added the files I added AND updated your config file, then you should be fine :-D You should be able to pull from my repository I would assume. Same procedure as what you did to get CFenners code running... cd MagicMirror git clone https://github.com/GHLasse/MagicMirror-LocalTransport-Module.git modules/localtransport

CFenner commented 8 years ago

Is this in a state I can simply merge it?

GHLasse commented 8 years ago

@CFenner yes, should be :-)