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.jsand replace the occurences of
Note: There should be three occurences on lines
@dfuerst I think it is a bug in MMM-ProfileSwitcher, I was also experiencing it. There is currently no other module providing this functionality as far as I know, but it will probably be fixed soon, maybe I will look into this myself on the weekend, if @tosti007 has not fixed it by then.
@Jopyth thank you for mentioning me else I wouldn’t have seen this post.
@dfuerst that’s odd. I will have a look at it in the weekend. I currently don’t have that much time (that’s also why I respond late). I will let you know when I found the solution.
@tosti007 thanks in advance
@dfuerst Unfortunately I did not have as much time this weekend as I hoped it would have. However @Jopyth came up with a fix that should solve this. (Thank you @Jopyth) Pull the new changes and your problem should be solved
Edit: I gave it a quick test and it seems to be working fine!
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
falsedoes it work like the original version 2?
@tosti007 it did nothing.