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

how and where should I use the hide&show function offered by MM?

Scheduled Pinned Locked Moved Solved Development
7 Posts 4 Posters 1.8k Views 4 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.
  • S Offline
    strawberry 3.141 Project Sponsor Module Developer @grasshopper001
    last edited by Dec 26, 2018, 8:07 AM

    @grasshopper001 join me for a bit in discord and we will solve your problem https://forum.magicmirror.builders/topic/9298/magicmirror-hackathon-2018

    Please create a github issue if you need help, so I can keep track

    1 Reply Last reply Reply Quote 0
    • G Offline
      grasshopper001
      last edited by Dec 26, 2018, 8:09 AM

      It seems that MM is not available?
      I tried to write shutOtherModule function in node-helper, and MagicMirror told me that

      ReferenceError: MM is not defined
      

      How could I get access to MM object? Why my MagicMirror responded me with a blank mirror when the function is called after receiving “DOM_OBJECT_CREATED” notification?

      1 Reply Last reply Reply Quote 0
      • G Offline
        grasshopper001
        last edited by Dec 26, 2018, 10:12 AM

        Finally I deleted the node helper, it seems that MM functions does not work in node helper functions.
        But the setTimeout function in notificationReceived function still does not work with “DOM_OBJECT_CREATED”.

        1 Reply Last reply Reply Quote 0
        • S Away
          sdetweil
          last edited by sdetweil Dec 26, 2018, 1:37 PM Dec 26, 2018, 1:35 PM

          turn on the developers console with Ctrl-Shift=i, or npm start dev, then you can use the console and sources tabs to see errors in the module.js and also put stops on code and look at the variables

          as u found, the MM variable is only available in the module.js

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          1 Reply Last reply Reply Quote 1
          • A Offline
            Arjan Project Sponsor
            last edited by Dec 26, 2018, 4:32 PM

            I use MMM-ModuleScheduler to show or hide modules. It works very simple out of the box.

            1 Reply Last reply Reply Quote 1
            • 1 / 1
            1 / 1
            • First post
              7/7
              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