Mmiscool wrote:There was a major problem with the 3.0 alpha 5.
Just put out a new build
Here is a simple example that dose not use a button to set the temperature. Just type a new value in the target temp field and click off of it or hit tab.Code: Select allmemclear
SERIALPRINTLN "restart page"
cls
curr = 0
setp = 30
stat
Print "ESP8266 WiFi Thermostat "
print "Target temp="
textbox setp
print "CurrTemp="
textbox curr
print "Heater="
textbox stat
button "Exit", [quit]
timer 5000, [refresh]
wait
[refresh]
curr = temp(0)
SERIALPRINTLN curr
if curr < setp then
io(po,16,1)
stat = "On"
else
io(po,16,0)
stat = "Off"
end if
Wait
[quit]
timer 0
wprint "<a href='/'>Menu</a>"
end
Thanks for the info. Will give it a run....
Your work is much appreciated.
Joe