Code: Select all
On Clock#Time=All,**:** Do
Let,2,%sysweekday%
If [VAR#1]=1 and [VAR#7]=0 and %sysyear% > 2000
Let,1,0
event,LCD_REFRESH
else
if [VAR#7]=0
Let,1,0
LCD,1,1,Synchronizacja czasu
EndIf
Endif
event,LCD_DIM
Let,1,1
SendToHTTP,192.168.0.25,8080,/json.htm?type=command¶m=switchlight&idx=124&switchcmd=On
Endon
Below working and not working syntax:
Code: Select all
// Not working statement
If [VAR#1]=1 and [VAR#7]=0 and %sysyear% > 2000
// Working statement
If [VAR#1]=1 and [VAR#7]=0
EDIT:
Code: Select all
if [Temp+Baro#Baro] > 100 and [Temp+Baro#Baro] < 1200