- Sat Jul 30, 2016 1:33 pm
#51786
memclear
delay 1000
serialprint "IP,"
serialprintln ip()
DELAY 200
GOSUB [RUNPROGRAM]
DO
A = Val(time("MIN"))
IF A = 00 then GOSUB [RUNPROGRAM]
LOOP until 0
'RUNPROGRAM sub goes here
'basically get the weather from openweather and parse it etc
The end of the runprogram sub has this I wonder if its causing my problem?
delay 60000
RETURN
If it is causing the problem, is there any way to do what I want to do but be able to use the web interface - so I can use it to check things like print the IP address to make sure it's connected and working properly?
The output from the ESP goes to another micro to do other things with it - a mcromite processor with a 7inch display so I can't actually see myself the output from the serial port which is why being able to print to the web interface would be ideal
The DELAY 60000 is so it only prints the updated weather once an hour - ie after it's printed the time it waits a whole minute before continuing with the program -
Is there a more efficient way to do this?