• 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 all Modules are displaying on the tv

Scheduled Pinned Locked Moved Troubleshooting
34 Posts 6 Posters 6.8k Views 5 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.
  • T Offline
    thgmirror
    last edited by Nov 20, 2020, 12:38 PM

    @kusselin Do you know, that MMM-Pages has a paramter named “fixed” where you can list all the modules which should appear on every page? May be this helps to investigate or avoid side-effects.

    1 Reply Last reply Reply Quote 0
    • M Offline
      mumblebaj Module Developer @kusselin
      last edited by mumblebaj Nov 20, 2020, 4:40 PM Nov 20, 2020, 4:39 PM

      @kusselin There is an error from openweather:

      api.openweathermap.org/data/2.5/forecast/daily?id=xxxxxxxx&cnt=7&exclude=false&units=metric&lang=de&APPID=xxxxxxxxxxxxxxxxxxxxx98a:1 Failed to load resource: the server responded with a status of 401 (Unauthorized)
      weatherforecast.js:265 weatherforecast: Your AppID does not support long term forecasts. Switching to fallback endpoint.
      weatherRequest.onreadystatechange @ weatherforecast.js:265
      

      Unless you referring to Traffic which also has an error.

      MMM-Traffic.js:132 received MMM_TRAFFIC_ERROR
      

      Check out my modules at: https://github.com/mumblebaj?tab=repositories

      1 Reply Last reply Reply Quote 0
      • L Offline
        lavolp3 Module Developer @kusselin
        last edited by lavolp3 Nov 23, 2020, 10:26 AM Nov 23, 2020, 10:25 AM

        @kusselin said in Not all Modules are displaying on the tv:

        main.js:297 Will not show MMM-OpenmapWeather. LockStrings active: module_7_MMM-OpenmapWeather
        

        Also, this is the problem why openmapweather does not show.
        I do not yet understand lockstrings. If someone does, I’m happy for an explanantion. Looking at you @sdetweil :-)

        How to troubleshoot modules
        MMM-soccer v2, MMM-AVStock

        L 1 Reply Last reply Nov 23, 2020, 10:26 AM Reply Quote 0
        • L Offline
          lavolp3 Module Developer @lavolp3
          last edited by Nov 23, 2020, 10:26 AM

          @lavolp3 Same for MMM-Traffic:

          main.js:297 Will not show MMM-Traffic. LockStrings active: module_15_MMM-pages
          

          How to troubleshoot modules
          MMM-soccer v2, MMM-AVStock

          1 Reply Last reply Reply Quote 0
          • S Away
            sdetweil @kusselin
            last edited by sdetweil Nov 23, 2020, 1:34 PM Nov 23, 2020, 1:30 PM

            @kusselin MMM-Pages uses hiding to only show what you selected to be on each page. Mm only hides or shows modules.

            Pages uses that to display just a few at a time. (Per page)

            LockStrings are used to make sure that the module requesting show, is the same that requested hide. So u get consistent behavior. Else u might have things popping up all over. Remember, mm only does hide or show. It assumes all modules are showing all the time. AND all modules ARE running all the time.

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            L 1 Reply Last reply Nov 23, 2020, 2:14 PM Reply Quote 0
            • L Offline
              lavolp3 Module Developer @sdetweil
              last edited by Nov 23, 2020, 2:14 PM

              @sdetweil But how do you set/change or address lockstrings?

              How to troubleshoot modules
              MMM-soccer v2, MMM-AVStock

              S 1 Reply Last reply Nov 23, 2020, 2:22 PM Reply Quote 0
              • S Away
                sdetweil @lavolp3
                last edited by sdetweil Nov 23, 2020, 2:24 PM Nov 23, 2020, 2:22 PM

                @lavolp3 on the show/hide there is an optional additional parameter, the ‘string’ for the lockstring… its any text u want.

                from
                https://docs.magicmirror.builders/development/core-module-file.html#module-instance-methods

                this.hide(speed, callback, options)
                speed Number - Optional (Required when setting callback or options), The speed of the hide animation in milliseconds. callback Function - Optional, The callback after the hide animation is finished. options Function - Optional, Object with additional options for the hide action (see below). (Introduced in version: 2.1.0.)
                
                To hide a module, you can call the hide(speed, callback) method. You can call the hide method on the module instance itself using this.hide(), but of course you can also hide another module using anOtherModule.hide().
                
                Possible configurable options:
                
                lockString - String - When setting lock string, the module can not be shown without passing the correct lockstring. This way (multiple) modules can prevent a module from showing. It's considered best practice to use your modules identifier as the locksString: this.identifier. See visibility locking below.
                

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                L 1 Reply Last reply Nov 23, 2020, 2:29 PM Reply Quote 1
                • L Offline
                  lavolp3 Module Developer @sdetweil
                  last edited by Nov 23, 2020, 2:29 PM

                  @sdetweil Thank you. It seems the hide and show calls in MMM-pages need to be amended by the (standard) lockstring to work properly.
                  The module is after all expected to overwrite any other hide/show functionality.
                  I had the same issue so I’ll try that out in the next days.

                  How to troubleshoot modules
                  MMM-soccer v2, MMM-AVStock

                  S 2 Replies Last reply Nov 23, 2020, 2:31 PM Reply Quote 0
                  • S Away
                    sdetweil @lavolp3
                    last edited by sdetweil Nov 23, 2020, 2:33 PM Nov 23, 2020, 2:31 PM

                    @lavolp3 Pages uses lockstring already

                    module.hide(
                            self.config.animationTime / 2,
                            { lockString: self.identifier }
                          ));
                    
                    
                    module.show(
                              self.config.animationTime / 2,
                              { lockString: self.identifier }
                            ));
                    

                    uses the MMM-Pages module identifier as the string

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    1 Reply Last reply Reply Quote 0
                    • S Away
                      sdetweil @lavolp3
                      last edited by Nov 23, 2020, 2:42 PM

                      @lavolp3 said in Not all Modules are displaying on the tv:

                      The module is after all expected to overwrite any other hide/show functionality.

                      it may need FORCE (it should check if the hide or show worked)

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

                      1 Reply Last reply Reply Quote 0
                      • 1
                      • 2
                      • 3
                      • 4
                      • 1 / 4
                      1 / 4
                      • First post
                        8/34
                        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