An archive of community.esquilo.io as of Saturday January 26, 2019.

Count down timer like you would use baking a cake, or pie :)

JefferyS

Hi, I am anodizing and would like to add a timer to each tank I display the temperature on my web page for.

It doesn't have to be super accurate as I have digital timers for that but don't want to sit in the garage and heat when I don't have to do anything for 15 minutes.

I think since I'm starting it on the web page in the garage that it would need to be programmed on the Esquilo side but not totally sure. Also not sure what impact that will have on the Esquilo as I will be soon adding heater control to it soon.

Any ideas would be most appreciated. Not a super big deal but would help me out. Two tanks will be on timers but I doubt 3 at the same time.

Thanks,

Jeffery

Scott_Shumate

Do you need a count down timer or just a running timer that displays the time from start? What display resolution do you need? Is seconds fine?

For something simple you could do this on the browser side with JavaScript. Look at setInterval() and then use it to update the timer display on the web page. If you need it to survive a web browser reload, then you would probably want to do it on the Esquilo. A simple way would be to capture the timer start in a global variable with the millis() function and then create a ERPC function called by your web page to return the current millis() minus the global variable to give you the running time.

JefferyS

Thanks a lot Scott, that sounds much easier than what I was thinking. Yes I will need to keep it on the Esquilo so I can see it on any computer browser.

Thanks,

Jeffery