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.

    How to post code on the forum - For absolute beginners

    Scheduled Pinned Locked Moved Troubleshooting
    26 Posts 10 Posters 24.8k Views 9 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.
    • A Offline
      Anhalter42
      last edited by

      Maybe it should be added that when you have problems finding the correct “back tick” character, you can also use the </> button right above the input field to insert a code-formatted block.

      cowboysdudeC Mykle1M 2 Replies Last reply Reply Quote 1
      • cowboysdudeC Offline
        cowboysdude Module Developer @Anhalter42
        last edited by cowboysdude

        @Anhalter42 said in How to post code on the forum. - For absolute beginners.:

        Maybe it should be added that when you have problems finding the correct “back tick” character, you can also use the </> button right above the input field to insert a code-formatted block.

        Ok noted

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

          @Anhalter42 said in How to post code on the forum. - For absolute beginners.:

          when you have problems finding the correct “back tick” character,

          Really?

          Create a working config
          How to add modules

          1 Reply Last reply Reply Quote 0
          • paviroP Offline
            paviro
            last edited by

            Thanks @Mykle1! Pinned the post to the top :)

            We're all stories in the end. Just make it a good one, eh?

            – The Doctor

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

              @paviro said in How to post code on the forum - For absolute beginners:

              Thanks @Mykle1! Pinned the post to the top :)

              That’s fantastic! Thank you, too!

              Create a working config
              How to add modules

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

                @Anhalter42 said in How to post code on the forum - For absolute beginners:

                you can also use the </> button right above the input field to insert a code-formatted block.

                Added to the tutorial!

                Create a working config
                How to add modules

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

                  i love your "absolute beginners" guides, keep them coming!
                  

                  thanks a lot !

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

                    @s199 said in How to post code on the forum - For absolute beginners:

                    i love your “absolute beginners” guides, keep them coming!

                    thanks a lot !

                    Hey, thanks for that. I do appreciate it. When I think of another one, I’ll get right to it.

                    Peace!

                    Create a working config
                    How to add modules

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

                      @s199

                      You might be interested in this. It’s not titled For absolute beginners, but it’s close enough.

                      https://forum.magicmirror.builders/topic/4089/complete-walkthrough-install-magicmirror-on-a-pc-windows-7

                      Create a working config
                      How to add modules

                      1 Reply Last reply Reply Quote 0
                      • R Offline
                        roxx
                        last edited by roxx

                        lets see if this works
                        I have this back tick on my Android and not in my windows tablet.. so i will need to post code from this mobile!!!

                        Only a biker knows why dogs stick their head outside the window of a moving vehicle!!

                        1 Reply Last reply Reply Quote 0
                        • swvalentiS Offline
                          swvalenti Project Sponsor
                          last edited by

                          Awesome

                          Thank you!
                          
                          1 Reply Last reply Reply Quote 0
                          • evroomE Offline
                            evroom
                            last edited by

                            Still having trouble with < and >, actually < x m l _ l I n e > (without spaces).

                            <xml_line>
                            

                            Or:

                            </xml_line>
                            

                            I did:

                            < x m l _ l I n e >

                            and

                            < / x m l _ l I n e >

                            Remove the spaces to get my result.
                            I was given a workaround for this, but of course forgot it.

                            MagicMirror version: 2.33.0
                            Raspberry Pi 4 Model B Rev 1.5 (8 GB RAM)
                            Raspbian GNU/Linux 12 (bookworm)

                            Test environment:
                            MagicMirror version: v2.33.0
                            Raspberry Pi 3 Model B Plus Rev 1.3 (1 GB RAM)
                            Raspbian GNU/Linux 12 (bookworm)

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

                              @evroom the workaround is to add a space after <

                              Sam

                              How to add modules

                              learning how to use browser developers window for css changes

                              evroomE 1 Reply Last reply Reply Quote 0
                              • evroomE Offline
                                evroom @sdetweil
                                last edited by

                                @sdetweil
                                Can’t be it. He said hopefully.
                                So when I have numerous lines of xml, I need to add a space after every < ?

                                And when doing so I actually get:
                                < xml_line>

                                MagicMirror version: 2.33.0
                                Raspberry Pi 4 Model B Rev 1.5 (8 GB RAM)
                                Raspbian GNU/Linux 12 (bookworm)

                                Test environment:
                                MagicMirror version: v2.33.0
                                Raspberry Pi 3 Model B Plus Rev 1.3 (1 GB RAM)
                                Raspbian GNU/Linux 12 (bookworm)

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

                                  @evroom yes… the space will show, uuuuuuuugly…

                                  you would think that the three backquotes would turn off text interpretation…
                                  but sadly not…

                                  Sam

                                  How to add modules

                                  learning how to use browser developers window for css changes

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

                                    I’m posting to this topic in the hope that it will be read by users that are not aware of the protocol for posting.

                                    Your code posts should look like this:

                                    {
                                                disabled: false,
                                                module: "MMM-EARTH",
                                                position: "bottom right",
                                                config: {
                                                    mode: "Natural",
                                                    rotateInterval: 15000,
                                                    animationSpeed: 0,
                                                    MaxWidth: "45%",
                                                    MaxHeight: "45%",
                                                }
                                            },
                                    

                                    NOT like this:

                                    {
                                    disabled: false,
                                    module: “MMM-EARTH”,
                                    position: “bottom right”,
                                    config: {
                                    mode: “Natural”,
                                    rotateInterval: 15000,
                                    animationSpeed: 0,
                                    MaxWidth: “45%”,
                                    MaxHeight: “45%”,
                                    }
                                    },

                                    Peace!

                                    Create a working config
                                    How to add modules

                                    S 1 Reply Last reply Reply Quote 0
                                    • J Offline
                                      JediJah
                                      last edited by

                                      Thanks for this post. I am about to put it to good use.

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

                                        @Mykle1 how did you do that? (the two steps!)

                                        Sam

                                        How to add modules

                                        learning how to use browser developers window for css changes

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

                                          @sdetweil said in How to post code on the forum - For absolute beginners:

                                          @Mykle1 how did you do that? (the two steps!)

                                          ?

                                          I’m lost.

                                          Create a working config
                                          How to add modules

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

                                            @Mykle1 you said

                                            Your code posts should look like this:

                                            so, how do they do that?

                                            1. mark the text of the ‘code’
                                            2. hit the button above the editor that looks like </>

                                            Sam

                                            How to add modules

                                            learning how to use browser developers window for css changes

                                            Mykle1M 1 Reply Last reply Reply Quote 0

                                            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                            With your input, this post could be even better 💗

                                            Register Login
                                            • 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