Read the statement by Michael Teeuw here.
not able to profileswitch/schedule LocalTransport module
-
i am using CFenner’s LocalTransport module, which is perfectly what i need for displaying the train departures leaving the village i live in.
i use MMM-Buttons with MMM-ProfileSwitcher to hide all modules by pressing a physical button.
Unfortunately this doesn’t work with the LocalTransport module. Module is always shown!Is there anyone who can fix this for the LocalTransport modul or can recommend an other module showing the same and at which CLASSES can be used?
-
Alright so I found the problem and it turned out to be a mistake in the Localtransport module. I have send him a pull request and updated my README with a fix. Have fun with the modules :)
I will copy paste it the README text here as well:
The MagicMirror-LocalTransport-Module module does not work (without a fix) with the [MMM-ProfileSwitcher].
This due to his code overwriting a variable that it a default variable used by the MagicMirror Framework and my code need this. Luckily this problem can be solved fairly easily with any text editor.Go to the module’s main file
localtransport.js
and replace the occurences ofthis.data
withthis.info
.Note: There should be three occurences on lines
170
,204
and209
. -
-
-
@tosti007 thanks in advance
-
-
-
did a “git pull”, now it isn’t working anymore at all. (no action after button longpress)
do i have to do something special after a git pull? -
because the new version didn’t work anymore i reinstalled VERSION 2 from your REPO:
now its working again , of course not hiding the localtransport module.
any ideas why this version starts upon button press and the 8hours old one not? -
@dfuerst hmm, ouch. First of all sorry for the inconvenience. If you have the most up-to-date version set
useLockStrings
tofalse
does it work like the original version 2? -
@tosti007 it did nothing.