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

Modules again.....

Scheduled Pinned Locked Moved Development
modulemodulessmartmirrorsmart mirrorcodingcodequotes
11 Posts 5 Posters 4.8k 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.
  • J Offline
    justjim1220 Module Developer @Brenj
    last edited by May 17, 2018, 9:20 PM

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

    timeFormat: int 60

    Missing comma at the end of this line…

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

    1 Reply Last reply Reply Quote 0
    • J Offline
      justjim1220 Module Developer @Mykle1
      last edited by May 17, 2018, 9:21 PM

      @mykle1

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

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

      M 1 Reply Last reply May 18, 2018, 12:56 AM Reply Quote 0
      • M Offline
        Mykle1 Project Sponsor Module Developer @justjim1220
        last edited by May 18, 2018, 12:56 AM

        @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

        J 1 Reply Last reply May 19, 2018, 2:01 AM Reply Quote 0
        • S Offline
          sdetweil
          last edited by sdetweil May 18, 2018, 7:36 PM May 18, 2018, 7:33 PM

          @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

          I 1 Reply Last reply May 19, 2018, 11:22 AM Reply Quote 0
          • I Offline
            idoodler Module Developer @Brenj
            last edited by May 18, 2018, 7:48 PM

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

            :winking_face:

            1 Reply Last reply Reply Quote 0
            • J Offline
              justjim1220 Module Developer @Mykle1
              last edited by May 19, 2018, 2:01 AM

              @mykle1

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

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

              M 1 Reply Last reply May 19, 2018, 2:09 AM Reply Quote 0
              • M Offline
                Mykle1 Project Sponsor Module Developer @justjim1220
                last edited by May 19, 2018, 2:09 AM

                @justjim1220

                Or lay off the booze. ;-)

                Create a working config
                How to add modules

                J 1 Reply Last reply May 19, 2018, 2:30 AM Reply Quote 0
                • J Offline
                  justjim1220 Module Developer @Mykle1
                  last edited by May 19, 2018, 2:30 AM

                  @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
                  • I Offline
                    idoodler Module Developer @sdetweil
                    last edited by May 19, 2018, 11:22 AM

                    @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
                    1 / 2
                    • First post
                      7/11
                      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