MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    1. Home
    2. Tuxdiver
    3. Best
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.
    T
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 12
    • Groups 0

    Posts

    Recent Best Controversial
    • RE: MMM-Rest

      @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 ;-)

      posted in Utilities
      T
      Tuxdiver
    • RE: MMM-Rest

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

      posted in Utilities
      T
      Tuxdiver
    • 1 / 1