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.

    Modules again.....

    Scheduled Pinned Locked Moved Development
    modulemodulessmartmirrorsmart mirrorcodingcodequotes
    11 Posts 5 Posters 5.3k 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.
    • Mykle1M Offline
      Mykle1 Project Sponsor Module Developer @justjim1220
      last edited by

      @justjim1220 said in Modules again.....:

      Weird, I didn’t see your answer until after I submitted mine!

      I was in stealth mode. ;-)

      P.S. Your answer was only partially correct. ;-)

      Create a working config
      How to add modules

      justjim1220J 1 Reply Last reply Reply Quote 0
      • S Offline
        sdetweil
        last edited by sdetweil

        @brenj said in Modules again.....:

                                  timeFormat: int 60
                                  fadeSpeed: int 5
        

        the json data model is if text, then the data is quoted foo:“something”, if numeric, the data is not quoted, bar:60

        no ‘int’

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        idoodlerI 1 Reply Last reply Reply Quote 0
        • idoodlerI Offline
          idoodler Module Developer @Brenj
          last edited by

          @brenj You definitely need some JSLint: https://www.jslint.com/

          :winking_face:

          1 Reply Last reply Reply Quote 0
          • justjim1220J Offline
            justjim1220 Module Developer @Mykle1
            last edited by

            @mykle1

            Haha, I need to pay closer attention…:smiling_face_with_sunglasses:

            "Life's Too Short To Dance With Ugly People"
            Jim Hallock - 1995

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

              @justjim1220

              Or lay off the booze. ;-)

              Create a working config
              How to add modules

              justjim1220J 1 Reply Last reply Reply Quote 0
              • justjim1220J Offline
                justjim1220 Module Developer @Mykle1
                last edited by

                @mykle1

                BWAAHHAAAAHAHAHAHAHA!!!

                If only I was able to drink… LMAO!

                Having so many health problems and being on a buttload of meds, I’m almost afraid to drink!!!

                Although, with this Meniere’s Disease, I’m pretty sure everyone thinks I am a drunk. I have to balance and in a state of extreme vertigo 24/7… :face_with_stuck-out_tongue_winking_eye: :dizzy_face: :confused_face: :upside-down_face:

                "Life's Too Short To Dance With Ugly People"
                Jim Hallock - 1995

                1 Reply Last reply Reply Quote 0
                • idoodlerI Offline
                  idoodler Module Developer @sdetweil
                  last edited by

                  @sdetweil Actualy JSON requires quotation of the key and of the value (if the value is a string)

                  Example of a JSON file:

                  {
                      "string": "This is a string",
                      "bool": true,
                      "int", 1,
                      "float": 3.14,
                      "arrayOfStrings": [
                          "string1",
                          "string2"
                      ],
                      "arrayOfInts": [
                          1,
                          2
                      ]
                  }
                  

                  The same can be used in a Javascript file, but as an object. You can also throw away the quotation of the keys.

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