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.

    Is there a Difference between these ???

    Scheduled Pinned Locked Moved Unsolved Troubleshooting
    12 Posts 5 Posters 2.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.
    • BKeyportB Offline
      BKeyport Module Developer @plainbroke
      last edited by

      @plainbroke To expand on @wishmaster270 comment - To post code, please use the button
      that looks like this: 1967f487-8ada-4dad-af09-500c3dfb3cb4-image.png

      that button puts this ``` into your text, allowing you to get code posted like this to make it readable:

      {
      ipAddress: “192.168.178.31”,
      name: “QNAP1”,
      icon: “database”,
      colorStateOnline: “green”,
      colorStateOffline: “red”,
      },
      

      The "E" in "Javascript" stands for "Easy"

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

        @BKeyport however

        if u copy/paste from outside a code block backtics

        the bad quotes(curved/slanted) are copied, as in your example

        and will not be corrected, and will cause problems in config.js

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        BKeyportB 1 Reply Last reply Reply Quote 0
        • BKeyportB Offline
          BKeyport Module Developer @sdetweil
          last edited by

          @sdetweil (that wasn’t a copy. It was escaped. backslash ` )

          The "E" in "Javascript" stands for "Easy"

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

            @BKeyport your post has the bad quotes
            that’s all I was saying, even tho in code block

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            BKeyportB 1 Reply Last reply Reply Quote 0
            • BKeyportB Offline
              BKeyport Module Developer @sdetweil
              last edited by

              @sdetweil oh, I C&P’d that. :)

              The "E" in "Javascript" stands for "Easy"

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

                @BKeyport yes, that was my point

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                plainbrokeP 1 Reply Last reply Reply Quote 0
                • plainbrokeP Offline
                  plainbroke @sdetweil
                  last edited by

                  Ok, I get it I did not post it correctly.
                  What I am trying to get at does it matter if the line is one line of text or does it need to be several lines to make it read correctly in MM?

                  Slow learner. But trying anyways.

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

                    @plainbroke the 3backtics of the code block must be on a separate line. start and end

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    1 Reply Last reply Reply Quote 0
                    • E Offline
                      ExperiMentor @plainbroke
                      last edited by

                      @plainbroke Both versions have an error (different errors).

                      • list itemThe single line example has " (quote marks) missing in “database” that you need to add.

                      • list itemThe multi-line example has an extra , (comma) after “red” that you need to delete.

                      This is like programming: precise details matter and stop things working if you get them wrong

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

                        @ExperiMentor the extra comma is not an error…

                        Sam

                        How to add modules

                        learning how to use browser developers window for css changes

                        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