Post 7 made on Friday February 13, 2009 at 02:16 |
johanj Long Time Member |
Joined: Posts: | January 2008 52 |
|
|
I use a small script to power off some equipment through the relays after 30 minutes on the home screen. The Pronto is awake for a few second every minute. I have this as a running every second:
time=new Date().valueOf(); dt=(time-time0)/1000;
if (dt>timelimit) { r1.set(false); }
Just set time0=new Date().valueOf(); ans timelimit=xxx when you enter the activity
Johan
|
|
|