Place to put your Basic demos and examples

Moderator: Mmiscool

User avatar
By ssylca
#36421
Mmiscool wrote:If you have not not gotten this working yet can you post the whole program. Would make debugging a bit easier.

Thanks for your reply, I managed to get it working with this bit of 'borrowed' code:

memclear
cls
now = 0 ' Variable for actual temperature
wprint "<head>"
wprint "<meta http-equiv='refresh' content='5;URL=/input?'>"
wprint "</head>"
Print "*** ESP WiFi Thermometer *** "
print
wprint "Celsius : "
wprint htmlvar(now)
wprint "<br><br>"
button " Exit " [quit]
timer 60000 [refresh] '1 min. delay
wait
[refresh]
temp 0 now
now = now -1 'correction
SENDTS("Z7QSWY80PSKV9XIY","1",now)
Wait
[quit]
timer 0
wprint "<a href='/'> Menu </a>"
end


Note: the DS18B20 output is connected to D4 of nodemcu ESP8266-12
User avatar
By Mmiscool
#36442 That's great. So this is posting the temperature to thingspeek every minuet.

Hopefully there will be more uses for the thing speak stuff.