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

MMM-Rest

Scheduled Pinned Locked Moved Utilities
resturltemperature
25 Posts 6 Posters 20.0k 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.
  • T Offline
    Tuxdiver @konradwalsh
    last edited by Feb 2, 2018, 8:49 AM

    @konradwalsh just to make it clear: it’s not implemented right now, just a quick draft for discussion about that feature ;-)

    K 1 Reply Last reply Feb 2, 2018, 8:56 AM Reply Quote 0
    • K Offline
      konradwalsh @Tuxdiver
      last edited by konradwalsh Feb 2, 2018, 8:58 AM Feb 2, 2018, 8:56 AM

      @Tuxdiver
      yes of course
      I feel confident in implementing it myself and see what I come up with…

      I suppose it would be good to have a dynamic situation where it maybe a string.
      For example, I am displaying my Hot Water Level. The result will be Low - Good - High.
      So it maybe a case of comparing a string value and reacting… Low would be blue and high would be red

      T 1 Reply Last reply Feb 2, 2018, 10:29 AM Reply Quote 0
      • T Offline
        Tuxdiver @konradwalsh
        last edited by Feb 2, 2018, 10:29 AM

        @konradwalsh said in MMM-Rest:

        I suppose it would be good to have a dynamic situation where it maybe a string.
        For example, I am displaying my Hot Water Level. The result will be Low - Good - High.
        So it maybe a case of comparing a string value and reacting… Low would be blue and high would be red

        For the number values: just pull the current version from git, it should work now :-)

        For your “low/good/high” example: if you deliver numbers to the module and use the mapping feature it should work with the new format option, because format will be set before the mapping takes place.
        Otherwise replacing the “range” parameter with a “compare: ‘string’” could be a solution. I will have a look at that later ;-)

        T 1 Reply Last reply Feb 2, 2018, 12:11 PM Reply Quote 1
        • K Offline
          konradwalsh
          last edited by Feb 2, 2018, 10:37 AM

          QUALITY!
          Thanks my friend… looking forward to getting home and getting this going

          1 Reply Last reply Reply Quote 0
          • T Offline
            Tuxdiver @Tuxdiver
            last edited by Tuxdiver Feb 2, 2018, 12:11 PM Feb 2, 2018, 12:11 PM

            @Tuxdiver said in MMM-Rest:

            Otherwise replacing the “range” parameter with a “compare: ‘string’” could be a solution. I will have a look at that later ;-)

            OK, it’s finished.
            Look at https://github.com/Tuxdiver/MMM-Rest/blob/master/README.md for an example of the new format option.

            1 Reply Last reply Reply Quote 1
            • K Offline
              konradwalsh
              last edited by Feb 2, 2018, 12:13 PM

              ah… very cool

              1 Reply Last reply Reply Quote 0
              • K Offline
                konradwalsh
                last edited by Feb 2, 2018, 9:09 PM

                works perfectly
                thanks!

                1 Reply Last reply Reply Quote 0
                • 1
                • 2
                • 3
                • 3 / 3
                3 / 3
                • First post
                  23/25
                  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