Re: RecentOutsideTemp - one year ago?
Posted: Thu 28 Jan 2016 3:42 am
Hi Frank,
Enough for tonight... I can get the script to echo
Temperatur: -7.3 °C
Temperatur: -7.3 °C
Temperatur: -7.4 °C
Temperatur: -7.4 °C
Temperatur: -7.3 °C
Temperatur: -7.3 °C
and on and on... till the last entry for January 2015 (prints the temperature for each of the 10 min interval in Jan15log.txt = 4,464 records). Is that the purpose of the script or only to get the high and low of the day?
I have the date it as:
date_default_timezone_set('America/Toronto');
$now = time();
$now -= $now % 60; //remove the seconds-display
//$past = strtotime(date('d-m-Y H:i', $now) . ' - 1 year'); //subtract 1 year
$past = strtotime(date('d/m/y H:i', $now) . ' - 1 year'); //subtract 1 year
Regards,
Paul
Enough for tonight... I can get the script to echo
Temperatur: -7.3 °C
Temperatur: -7.3 °C
Temperatur: -7.4 °C
Temperatur: -7.4 °C
Temperatur: -7.3 °C
Temperatur: -7.3 °C
and on and on... till the last entry for January 2015 (prints the temperature for each of the 10 min interval in Jan15log.txt = 4,464 records). Is that the purpose of the script or only to get the high and low of the day?
I have the date it as:
date_default_timezone_set('America/Toronto');
$now = time();
$now -= $now % 60; //remove the seconds-display
//$past = strtotime(date('d-m-Y H:i', $now) . ' - 1 year'); //subtract 1 year
$past = strtotime(date('d/m/y H:i', $now) . ' - 1 year'); //subtract 1 year
Regards,
Paul