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.

    Peek-a-boo...

    Scheduled Pinned Locked Moved Troubleshooting
    18 Posts 5 Posters 10.6k 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.
    • strawberry 3.141S Offline
      strawberry 3.141 Project Sponsor Module Developer @carteblanche
      last edited by

      @carteblanche

      if (notification === "HIDE_CALENDAR" || "HIDE_ALL")
      
      this will be always true: notification === "HIDE_CALENDAR" can be true or false, but "HIDE_ALL" will be always true
      

      that’s why it always hide the module

      it must be like that

      if (notification === "HIDE_CALENDAR" || notification === "HIDE_ALL") {
          this.hide();
      } else if (notification === "SHOW_CALENDAR" || notification === "SHOW_ALL") {
          this.show();
      }
      },
      

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

      C 1 Reply Last reply Reply Quote 0
      • C Offline
        carteblanche @strawberry 3.141
        last edited by

        @strawberry-3.141 Thank you for the tip! Now it makes perfect sense.

        It does still work with the multiple else if statements but for the sake of cleaner code I like the idea of using the or condition.

        1 Reply Last reply Reply Quote 0
        • D Offline
          darrene @carteblanche
          last edited by

          Apologies for the typo in notification @carteblanche - I should have copied and pasted the code originally, rather than typing it off the the top of my head!

          Glad to read that you managed to sort it though. Nice work :)

          C B 2 Replies Last reply Reply Quote 0
          • C Offline
            carteblanche @darrene
            last edited by

            @darrene hey no worries at all on the typo. I can’t thank you enough for helping out and providing the comprehensive step-by-step guide in plain english to noobs like me. I don’t know how I would have got the voice module working without your help so thanks again!

            1 Reply Last reply Reply Quote 0
            • B Offline
              Baltibu @darrene
              last edited by

              @darrene I think you a lot for your help.
              i get it work with all module that I have :-)
              Your descpition was very helpfull. thanks again .

              1 Reply Last reply Reply Quote 0
              • ? Offline
                A Former User
                last edited by

                Q : have you managed to get Alexia working alongside another ‘bot/ai’?

                Any instructions for install? Many thanks!

                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