Plugin Directory

Changeset 1573523


Ignore:
Timestamp:
01/12/2017 06:57:10 PM (9 years ago)
Author:
peterkodermac
Message:

Updated

Location:
raspberry-weather/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • raspberry-weather/trunk/functions.php

    r1454816 r1573523  
    9595    else if(strpos($options[day],"Month")!==false) //current month
    9696        $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
    100109    $temperatureMeasurement = esc_sql($options[temperatureMeasurement]); //celsius or fahrenheit?
    101110    $display                = esc_sql($options[display]); //do we show only temp, only humidity or both?
  • raspberry-weather/trunk/readme.txt

    r1454816 r1573523  
    11=== Raspberry Weather ===
    2 Tags: Raspberry Pi, Raspberry Weather, temperature, humidity
     2Tags: Raspberry Pi, Raspberry Weather, temperature, humidity, Raspberry Pi weather station
    33Requires at least: 3.0.1
    4 Tested up to: 4.5.2
    5 Stable tag: 4.5.2
     4Tested up to: 4.7
     5Stable tag: 4.7
    66License: GPLv2 or later
    77License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    5353== Changelog ==
    5454
     55= 1.6 =
     56
     57Graph was not correctly displayed in certain timezones. Thanks to Bill and Yroark for all the help!
     58
    5559= 1.5 =
    5660
Note: See TracChangeset for help on using the changeset viewer.