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.

    MMM-Rest

    Scheduled Pinned Locked Moved Utilities
    resturltemperature
    25 Posts 6 Posters 20.9k Views 7 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
      Jopyth Moderator
      last edited by

      @Tuxdiver What kind of sensors are you using for this internally (your openHAB)?

      Helpful sticky: How to troubleshoot

      T 1 Reply Last reply Reply Quote 0
      • B Offline
        balthaz
        last edited by

        Hello,
        I am currently on vacation, I will try on my return.
        Thanks

        1 Reply Last reply Reply Quote 0
        • T Offline
          Tuxdiver @Jopyth
          last edited by

          @Jopyth said in MMM-Rest:

          @Tuxdiver What kind of sensors are you using for this internally (your openHAB)?

          I have an ESP8266 / NodeMCU sensors in every room, which send temperate and humidity values via MQTT to the mirror running mosquitto MQTT broker and openHAB. The values from the openHAB - API are then displayed on the mirror using my module.

          1 Reply Last reply Reply Quote 0
          • B Offline
            balthaz @Tuxdiver
            last edited by

            @Tuxdiver Yes it’s working good now :)
            Is it possible to display alphanumeric response?

            Thanks

            T 1 Reply Last reply Reply Quote 0
            • T Offline
              Tuxdiver @balthaz
              last edited by

              @balthaz Please have a look at the last version on Github :-)

              Attention: it has an incompatible change of the config parameters - see README.md!

              1 Reply Last reply Reply Quote 0
              • 1 Offline
                12wsx
                last edited by

                Hello, i have problem with this module : saying Module Loading. I have installed newest version from github. It is clear instalation with no others module. How can I check where is the problem.
                No need copy my config because it’s only one module copied from repository this module.

                T 1 Reply Last reply Reply Quote 0
                • T Offline
                  Tuxdiver @12wsx
                  last edited by

                  @12wsx This could be a problem with the configured URLs: if the connection could not be made or the other side does not deliver any content, the “Module Loading” message does not disappear.

                  Try setting the “debug” variable to true in the config and call the MM-Url with a normal browser (Chrome) and look at the development console for messages - maybe that could give you some hints.

                  1 Reply Last reply Reply Quote 0
                  • K Offline
                    konradwalsh
                    last edited by konradwalsh

                    Is it possible to create an in-line if statement to control the formatting?

                    So, if the result, say @1 > 10 then color:red else color:green

                    T 1 Reply Last reply Reply Quote 0
                    • T Offline
                      Tuxdiver @konradwalsh
                      last edited by Tuxdiver

                      @konradwalsh said in MMM-Rest:

                      Is it possible to create an in-line if statement to control the formatting?

                      So, if the result, say @1 > 10 then color:red else color:green

                      At a first look, I would suggest to change the “format:” parameter in “sections” to support something like that:

                      [ 
                        { range:[0, 10],     format: ' span style="color: yellow"%d /span' },
                        { range:[10, undef], format: 'span style="color: red"%d /span' },
                        { format: 'span style="color: green"%d /span' },
                      ]
                      

                      and to traverse the array and the first entry which matches wins. “undef” could mean “don’t care about this value” and an entry without range could be the “default” (which has to be the last entry).

                      What is your opinion: could this solve your problem?

                      Edit: HTML-Tags where removed by the forum system… Code above should be correct HTML of course

                      1 Reply Last reply Reply Quote 0
                      • K Offline
                        konradwalsh
                        last edited by

                        @Tuxdiver said in MMM-Rest:

                        { range:[0, 10], format: ’ span style=“color: yellow”%d /span’ },
                        { range:[10, undef], format: ‘span style=“color: red”%d /span’ },
                        { format: ‘span style=“color: green”%d /span’ },

                        Thanks for the prompt reply… Seems my PI has gone offline and I am at work… so I will try this later and report back

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