Changeset 1573523
- Timestamp:
- 01/12/2017 06:57:10 PM (9 years ago)
- Location:
- raspberry-weather/trunk
- Files:
-
- 2 edited
-
functions.php (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
raspberry-weather/trunk/functions.php
r1454816 r1573523 95 95 else if(strpos($options[day],"Month")!==false) //current month 96 96 $whereConditions= "MONTH(datemeasured)='".date('m')."'"; 97 else 98 $whereConditions= "datemeasured='".date('Y-m-d', esc_sql(strtotime($options[day])))."'"; //what day needs to be displayed? 99 97 else //will use only today and yesterday 98 { 99 if(stripos($options[day],"Today")!==false) 100 $whereConditions="datemeasured='".current_time('Y-m-d')."'"; 101 if(stripos($options[day],"Yesterday")!==false) 102 { 103 $yesterday=new DateTime(current_time('Y-m-d')); 104 $yesterday->modify('-1 day'); 105 $whereConditions= "datemeasured='".$yesterday->format('Y-m-d')."'"; 106 } 107 } 108 100 109 $temperatureMeasurement = esc_sql($options[temperatureMeasurement]); //celsius or fahrenheit? 101 110 $display = esc_sql($options[display]); //do we show only temp, only humidity or both? -
raspberry-weather/trunk/readme.txt
r1454816 r1573523 1 1 === Raspberry Weather === 2 Tags: Raspberry Pi, Raspberry Weather, temperature, humidity 2 Tags: Raspberry Pi, Raspberry Weather, temperature, humidity, Raspberry Pi weather station 3 3 Requires at least: 3.0.1 4 Tested up to: 4. 5.25 Stable tag: 4. 5.24 Tested up to: 4.7 5 Stable tag: 4.7 6 6 License: GPLv2 or later 7 7 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 53 53 == Changelog == 54 54 55 = 1.6 = 56 57 Graph was not correctly displayed in certain timezones. Thanks to Bill and Yroark for all the help! 58 55 59 = 1.5 = 56 60
Note: See TracChangeset
for help on using the changeset viewer.