• 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 @tosti007
    last edited by Feb 7, 2017, 12:09 PM

    @tosti007 i use a RPi3 with standard Raspbian.
    i always test via “pm2 start mm”

    1 Reply Last reply Reply Quote 1
    • T Offline
      tosti007 Module Developer
      last edited by Feb 7, 2017, 2:09 PM

      @dfuerst I fixed that backwards compatibility, but this does unfortunatly not solve the problem (tested it). I did found the reason why it doesn’t work, however I do not have a quickfix for this. I will look at it in the following days after doing some research.

      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 7, 2017, 2:10 PM

        ok, again thanks for your effort

        1 Reply Last reply 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
          • D Offline
            dfuerst @tosti007
            last edited by dfuerst Feb 14, 2017, 1:16 PM Feb 14, 2017, 1:15 PM

            @tosti007
            many thanks
            tested it already and works now like a charme.
            Might this also solve the incompatibility of LocalTransport with the FacialRecognition module? i guess so

            T 1 Reply Last reply Feb 14, 2017, 1:46 PM Reply Quote 0
            • T Offline
              tosti007 Module Developer @dfuerst
              last edited by Feb 14, 2017, 1:46 PM

              @dfuerst Yes it does, FacialRecognition also uses classes (which are saved in this.data)

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

              1 Reply Last reply Reply Quote 0
              • T Offline
                tosti007 Module Developer
                last edited by May 14, 2017, 4:05 PM

                My pull request was just merged with master so you should be able to use them together out of the box now without having to modify his module! :D

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

                1 Reply Last reply Reply Quote 0
                • 1
                • 2
                • 2 / 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