Read the statement by Michael Teeuw here.
Thingspeak with MMM-REST
-
Hi there,
I have some ESP8266 with DHT11 modules that send Temp/Humidity to Thingspeak.
I found the MMM-REST module but there’s not too much information about it.
My problem is that I can’t find a way to get the full data on my mirror, I mean I only get the first 2 digits like 20° instead of 20.5° (excuse my english)
It’s someting about the format as I can get the full data through a browser.{ format: '%d<span class="wi wi-celsius"></span>', url: 'https://api.thingspeak.com/channels/1895676/fields/1/last.txt?api_key=XXXXXXXX', },So perhaps is there another way to get the same result with another module that would work with REST API ?
Thanks for your attention :)
-
@Roadrunner451 said in Thingspeak with MMM-REST:
> format: '%d<span class="wi wi-celsius"></span>',…
format: '%1f<span class="wi wi-celsius"></span>', -
@Roadrunner451 i don’t know… but when u put your url in a browser what does it return?
-
@sdetweil
It returns exactly what I would like to see on my mirror, like 22.3 at this time. -
@Roadrunner451 ah… format :"%d
that means integer number, no decimal places,
you want float
%1f (1 decimal place)
%2f (2 decimal places) -
@sdetweil
Ok that seems right but where am i supposed to put that ?
My config looks like :format: '%d<span class="wi wi-celsius"></span>', -
@sdetweil
oops sorry, didn’t read completely, great !!!Thanks a lot !
Have a nice evening ! -
@Roadrunner451 said in Thingspeak with MMM-REST:
> format: '%d<span class="wi wi-celsius"></span>',…
format: '%1f<span class="wi wi-celsius"></span>',
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