• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
MagicMirror Forum
  • Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.

not able to profileswitch/schedule LocalTransport module

Scheduled Pinned Locked Moved Solved Troubleshooting
19 Posts 3 Posters 10.0k Views 2 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    dfuerst
    last edited by dfuerst Jan 30, 2017, 8:56 PM Jan 30, 2017, 8:55 PM

    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?

    J 1 Reply Last reply Jan 30, 2017, 9:46 PM Reply Quote 0
    • T Offline
      tosti007 Module Developer
      last edited by Feb 14, 2017, 11:49 AM

      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 of this.data with this.info.

      Note: There should be three occurences on lines 170, 204 and 209.

      If there is anything don't hesitate to contact me!
      ProfileSwitcher, TouchNotifications

      D 1 Reply Last reply Feb 14, 2017, 1:15 PM Reply Quote 0
      • J Offline
        Jopyth Moderator @dfuerst
        last edited by Jopyth Jan 30, 2017, 9:47 PM Jan 30, 2017, 9:46 PM

        @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. :)

        Helpful sticky: How to troubleshoot

        T 1 Reply Last reply Feb 2, 2017, 10:04 AM Reply Quote 0
        • T Offline
          tosti007 Module Developer @Jopyth
          last edited by Feb 2, 2017, 10:04 AM

          @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.

          If there is anything don't hesitate to contact me!
          ProfileSwitcher, TouchNotifications

          D 1 Reply Last reply Feb 2, 2017, 10:39 AM Reply Quote 1
          • D Offline
            dfuerst @tosti007
            last edited by Feb 2, 2017, 10:39 AM

            @tosti007 thanks in advance

            J 1 Reply Last reply Feb 4, 2017, 4:22 PM Reply Quote 0
            • J Offline
              Jopyth Moderator @dfuerst
              last edited by Jopyth Feb 4, 2017, 4:22 PM Feb 4, 2017, 4:22 PM

              @dfuerst @tosti007 Ok, turns out I made a mistake with my notifications. It is now working with all modules I want it to work. Maybe I can check Localtransport tomorrow.

              Helpful sticky: How to troubleshoot

              1 Reply Last reply Reply Quote 0
              • T Offline
                tosti007 Module Developer
                last edited by tosti007 Feb 6, 2017, 12:01 PM Feb 6, 2017, 11:48 AM

                @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 :D

                Edit: I gave it a quick test and it seems to be working fine!

                If there is anything don't hesitate to contact me!
                ProfileSwitcher, TouchNotifications

                1 Reply Last reply Reply Quote 0
                • D Offline
                  dfuerst
                  last edited by Feb 6, 2017, 7:29 PM

                  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?

                  1 Reply Last reply Reply Quote 0
                  • D Offline
                    dfuerst
                    last edited by dfuerst Feb 6, 2017, 8:13 PM Feb 6, 2017, 8:12 PM

                    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?

                    T 1 Reply Last reply Feb 7, 2017, 11:57 AM Reply Quote 0
                    • T Offline
                      tosti007 Module Developer @dfuerst
                      last edited by tosti007 Feb 7, 2017, 12:03 PM Feb 7, 2017, 11:57 AM

                      @dfuerst hmm, ouch. First of all sorry for the inconvenience. If you have the most up-to-date version set useLockStrings to false does it work like the original version 2?

                      If there is anything don't hesitate to contact me!
                      ProfileSwitcher, TouchNotifications

                      D 1 Reply Last reply Feb 7, 2017, 11:58 AM Reply Quote 0
                      • D Offline
                        dfuerst @tosti007
                        last edited by Feb 7, 2017, 11:58 AM

                        @tosti007 it did nothing.

                        1 Reply Last reply Reply Quote 0
                        • 1
                        • 2
                        • 1 / 2
                        • First post
                          Last post
                        Enjoying MagicMirror? Please consider a donation!
                        MagicMirror created by Michael Teeuw.
                        Forum managed by Sam, technical setup by Karsten.
                        This forum is using NodeBB as its core | Contributors
                        Contact | Privacy Policy