Read the statement by Michael Teeuw here.
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 redFor 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 ;-) -
QUALITY!
Thanks my friend… looking forward to getting home and getting this going -
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. -
ah… very cool
-
works perfectly
thanks!
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