mirror of
https://github.com/agdsn/ancient-weatherstation.git
synced 2026-06-19 23:07:59 +00:00
frontend: bugfix
git-svn-id: file:///home/jan/tmp/wetterstation/trunk@249 dd492736-c11a-0410-ad51-8c26713eaf7f
This commit is contained in:
@@ -41,7 +41,7 @@ class Wind{
|
|||||||
}
|
}
|
||||||
|
|
||||||
$maxData = null;
|
$maxData = null;
|
||||||
if (($nowData = Cacher::getCache("WindMax_ID_".$this->sensId, 3)) == false){
|
if (($maxData = Cacher::getCache("WindMax_ID_".$this->sensId, 3)) == false){
|
||||||
/* Max und Min-Werte bestimmen */
|
/* Max und Min-Werte bestimmen */
|
||||||
$maxQuery = "SELECT geschw as wind, richt as dir, to_char(timestamp, 'DD.MM.YYYY HH24:MI') as text_timestamp FROM ".$this->table." WHERE sens_id=".$this->sensId." AND geschw=(SELECT max(geschw) FROM ".$this->table." WHERE sens_id=".$this->sensId.") ORDER BY timestamp DESC LIMIT 1";
|
$maxQuery = "SELECT geschw as wind, richt as dir, to_char(timestamp, 'DD.MM.YYYY HH24:MI') as text_timestamp FROM ".$this->table." WHERE sens_id=".$this->sensId." AND geschw=(SELECT max(geschw) FROM ".$this->table." WHERE sens_id=".$this->sensId.") ORDER BY timestamp DESC LIMIT 1";
|
||||||
$maxData = $this->connection->fetchQueryResultLine($maxQuery);
|
$maxData = $this->connection->fetchQueryResultLine($maxQuery);
|
||||||
|
|||||||
Reference in New Issue
Block a user