MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    1. Home
    2. tosti007
    3. Posts
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.
    Offline
    • Profile
    • Following 1
    • Followers 1
    • Topics 6
    • Posts 165
    • Groups 1

    Posts

    Recent Best Controversial
    • RE: Two way mirror order for Europe - Orders closed!

      Wouldn’t it be better to have some kind of speadshwet online somewhere or maybe a database table from the site? :) That would make it easier to edit than copy-paste that table all the time

      posted in Hardware
      tosti007T
      tosti007
    • RE: Magic Mirror on Jessie Lite

      @yours.mukul did you install node? (apt-get install nodejs) and is it the latest version?

      posted in Tutorials
      tosti007T
      tosti007
    • RE: MMM-ProfileSwitcher, A Profile/User/Layout Switching Module

      @PatrickGlatz
      I just gave it a look and I know what’s wrong. The problem is that the code only looks at those times when switching to a different profile than the default profile. So it’s not a fault on your side but on mine.
      Solution: I already solved it on my local pc and will upload the fix later today uploaded. All you will have to do is pull the new changes and the config you showed should work without a problem :)

      Sorry for the inconvenience, a mistake on my part. Thank you for letting me know!

      Greetings
      Brian

      posted in Utilities
      tosti007T
      tosti007
    • RE: MMM-ProfileSwitcher, A Profile/User/Layout Switching Module

      @PatrickGlatz the config file looks fine to me and you don’t have to add the profiles anywhere else than in the module itself.

      About the ModuleScheduler, I wrote a how to here about how to use it with this module. Sure you have that correctly set up?

      I will copy paste your config into mine tomorrow morning and see if I can reproduce it.

      posted in Utilities
      tosti007T
      tosti007
    • RE: MMM-ProfileSwitcher, A Profile/User/Layout Switching Module

      @looolz I think what you are looking for is the MMM-ModuleScheduler which you can use in combination with my module as described here

      posted in Utilities
      tosti007T
      tosti007
    • RE: email module black screen

      Are you certain you installed it properly by going into the folder and using the npm install command?

      posted in Troubleshooting
      tosti007T
      tosti007
    • RE: MMM-ProfileSwitcher, A Profile/User/Layout Switching Module

      Another side note I just realised, if you do use that setTimeout and you swap between profiles in rapid succession I am not sure and cannot quarantee that some of the modules will be shown properly

      posted in Utilities
      tosti007T
      tosti007
    • RE: MMM-ProfileSwitcher, A Profile/User/Layout Switching Module

      @mortenbirkelund By altering the code git won’t allow you to pull the new updates, in case of an update you will have to clone it manually again. And thank you for sharing the timeout :)

      posted in Utilities
      tosti007T
      tosti007
    • RE: MMM-ProfileSwitcher, A Profile/User/Layout Switching Module

      @mortenbirkelund Yes there is, however that would mean that the code has to loop over the modules twice, which isn’t a great thing to do performance wise. I will write a bit of code that does it for you and post it here soon.

      Edit: here is the code, all you need to do it replace the whole set_profile function inside the MMM-ProfileSwitcher.js file.

      The code:

      // Change the current layout into the new layout given the current profile
      set_profile: function (useEveryone) {
          var self = this;
      
          var options = {};
          if (self.config.useLockStrings) {
              options.lockString = self.identifier;
          }
      
          MM.getModules().exceptWithClass(self.config.ignoreModules).enumerate(function (module) {
              if (!self.isVisible(self, useEveryone, module.data.classes)) {
                  module.hide(self.config.animationDuration, function () {
                      Log.log(module.name + " is hidden.");
                  }, options);
              }
          });
      
          MM.getModules().exceptWithClass(self.config.ignoreModules).enumerate(function (module) {
              if (self.isVisible(self, useEveryone, module.data.classes)) {
                  module.show(self.config.animationDuration, function () {
                      Log.log(module.name + " is shown.");
                  }, options);
              }
          });
      },
      

      Note: Once again this is not so great performance wise, but I dont think you will notice much of it

      posted in Utilities
      tosti007T
      tosti007
    • RE: MMM-Modulebar - A module that adds touch buttons for showing/hiding other modules.

      @Snille yes that’s a a great way to use the modules :) you’re welcome for my version but thank you for yours :D

      posted in Utilities
      tosti007T
      tosti007
    • 1
    • 2
    • 3
    • 4
    • 5
    • 16
    • 17
    • 3 / 17