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.

    calendar_monthly header still showing

    Scheduled Pinned Locked Moved Troubleshooting
    8 Posts 4 Posters 3.2k Views 3 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.
    • brobergB Offline
      broberg Project Sponsor @Mykle1
      last edited by

      @Mykle1 when handling false/true I don’t think you are supposed to use ’ ’ around it.
      Should be handled like numbers.

      Mykle1M 1 Reply Last reply Reply Quote 2
      • Mykle1M Offline
        Mykle1 Project Sponsor Module Developer @broberg
        last edited by Mykle1

        @broberg said in calendar_monthly header still showing:

        when handling false/true I don’t think you are supposed to use ’ ’ around it.
        Should be handled like numbers.

        Well, I’m an idiot! Thanks bro. I’ll change that right now.

        That did the trick. :clap_tone2:

        Create a working config
        How to add modules

        cowboysdudeC strawberry 3.141S 2 Replies Last reply Reply Quote 0
        • cowboysdudeC Offline
          cowboysdude Module Developer @Mykle1
          last edited by

          @Mykle1

          Yes true and false in that case are used as a boolean so you don’t use ’ ’ or " " :)

          
          Very often, in programming, you will need a data type that can only have one of two values, like
          
          YES / NO
          ON / OFF
          TRUE / FALSE
          For this, JavaScript has a Boolean data type. It can only take the values true or false.
          
          
          

          I had to learn that too :)

          1 Reply Last reply Reply Quote 1
          • strawberry 3.141S Offline
            strawberry 3.141 Project Sponsor Module Developer @Mykle1
            last edited by strawberry 3.141

            @Mykle1 In case you want to know why:

            'false' is a string and a string always represents the boolean true, so 'test', 'true' and 'false' all become true it doesn’t matter what the content of the string is.

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

            Mykle1M 1 Reply Last reply Reply Quote 1
            • Mykle1M Offline
              Mykle1 Project Sponsor Module Developer @strawberry 3.141
              last edited by Mykle1

              @strawberry-3.141 said in calendar_monthly header still showing:

              @Mykle1 In case you want to know why:
              ‘false’ is a string and a string always represents the boolean true, so ‘test’, ‘true’ and ‘false’ all become true it doesn’t matter what the content of the string is.

              So, the single quotes ' are what make it a string? Meaning, whatever is inside single quotes is considered a string?
              And if that is so, then what is the word true or false without the quotes called? A value? A parameter?

              Obviously, I’m still confused, but thank you for the lesson.

              Create a working config
              How to add modules

              strawberry 3.141S 1 Reply Last reply Reply Quote 0
              • strawberry 3.141S Offline
                strawberry 3.141 Project Sponsor Module Developer @Mykle1
                last edited by

                @Mykle1 everything in single or double quotes is a string, string is a type for text.

                There are multiple types:

                • object {}
                • array []
                • number 2, -17 and 3.14
                • string "I am a string" and 'me too'
                • boolean true or false

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

                Mykle1M 1 Reply Last reply Reply Quote 1
                • Mykle1M Offline
                  Mykle1 Project Sponsor Module Developer @strawberry 3.141
                  last edited by

                  @strawberry-3.141 said in calendar_monthly header still showing:

                  everything in single or double quotes is a string, string is a type for text.

                  Ok, thank you. I do appreciate the information. Some of it is starting to make sense. I’ve learned quite a bit in the short time that I’ve been here.

                  Create a working config
                  How to add modules

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