-->
Page 15 of 19

Re: Thermostat

PostPosted: Thu Jun 09, 2016 7:59 pm
by forlotto
SKIP TLDR

Re: Thermostat

PostPosted: Thu Jun 09, 2016 8:13 pm
by forlotto
ok talked to mike I forgot about this... there is a little fix for issues like this called encompasing data

take your code instead of using ' use " and encompass data like so

using | | symbols

for instance
wprint  | <body bgcolor="blue"> |

Re: Thermostat

PostPosted: Fri Jun 10, 2016 4:24 pm
by joeman2116
forlotto wrote:ok talked to mike I forgot about this... there is a little fix for issues like this called encompasing data

take your code instead of using ' use " and encompass data like so

using | | symbols

for instance
wprint  | <body bgcolor="blue"> |


forlotto,

I tried the format but still no better results.
No background color .
No box / tables worked.
There were no errors but there was no change.
USing the old code In ver 2, background color works and tables / boxes work with colors etc
I think we need the developer to step in and help us with a working example.

joe

Re: Thermostat

PostPosted: Fri Jun 10, 2016 5:49 pm
by Mmiscool
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
print
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