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.

    Line breaks in Compliments using MMM-Remote-Control

    Scheduled Pinned Locked Moved Unsolved Troubleshooting
    9 Posts 3 Posters 199 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.
    • A Offline
      alfi153
      last edited by

      Hi everyone,

      I have a question regarding the combination of the default compliments module and MMM-Remote-Control.

      I am using the web interface of Remote-Control to set the module compliments. Some of my texts are a bit longer and I would like to split them into two lines for better visibility.

      I tried using \n within the text string to force a line break, but unfortunately, it doesn’t work (it is just ignored or displayed as text).

      Is there a specific syntax or a workaround to force a line break when sending updates via the Remote-Control interface?

      Thanks for your help!

      KristjanESPERANTOK 1 Reply Last reply Reply Quote 0
      • KristjanESPERANTOK Offline
        KristjanESPERANTO Module Developer @alfi153
        last edited by

        @alfi153 I did’t test it, but have you tried <br> ?

        S 1 Reply Last reply Reply Quote -1
        • S Offline
          sdetweil @KristjanESPERANTO
          last edited by sdetweil

          @KristjanESPERANTO the module splits the line with ‘\n’ into its parts. Is RC converting that text to 0x0a

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          1 Reply Last reply Reply Quote 0
          • A Offline
            alfi153
            last edited by

            Hello

            I tested ´⁄n´and
            nothing worked

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

              @alfi153 not right leaning slash, left leaning, like this

              “Now is the time\nto come to the aid of your country”

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              A 1 Reply Last reply Reply Quote 0
              • A Offline
                alfi153 @sdetweil
                last edited by

                @sdetweil I tryed Both. Nothing worked

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

                  @alfi153 can you make up some text and show me with \n

                  You gave to
                  Use the " double quotes on the strings, not single

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  A 1 Reply Last reply Reply Quote 0
                  • A Offline
                    alfi153 @sdetweil
                    last edited by

                    @sdetweil Hi there. I’m entering the comments via the ‘Remote control’ module in the web interface. I’m wondering if it’s simply not supported through that specific module. I’ve already tried every possible variation, but unfortunately, I can’t get it to work.

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

                      @alfi153 if you add one via the config.js does it work?

                      I am traveling today, cannot test til I setup my system

                      As a side request. Can you explain what with remote control means?

                      I don’t see any notifications that compliments accepts to change the data. Only a remote file is supported with a refresh time.
                      And I don’t see any mention of compliments in the remote control
                      Module doc

                      Ps I wrote the code for line break with \n and the remote file function in the compliments module

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

                      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