fixed minor issues
This commit is contained in:
parent
a73b481809
commit
b177c2100d
2 changed files with 3 additions and 3 deletions
|
@ -146,8 +146,8 @@ class BlueWeather
|
|||
JOIN sensors S ON M.sensorid = S.id
|
||||
JOIN locations L ON S.locationid=L.id
|
||||
WHERE L.id=$locId AND M.timestamp > " . $range['from'] .
|
||||
"AND M.timestamp < " . $range['to'] . "
|
||||
ORDER BY timestamp ASC";
|
||||
" AND M.timestamp < " . $range['to'] .
|
||||
" ORDER BY timestamp ASC";
|
||||
|
||||
$result = $this->_con->query($sql);
|
||||
|
||||
|
|
|
@ -26,7 +26,7 @@ $blueweather = new BlueWeather($config);
|
|||
|
||||
if (isset($_GET['locId'])) {
|
||||
// get data of given location
|
||||
$data = getLocationData($_GET['locId'], $_GET['range'], $_GET['maxVals']);
|
||||
$data = $blueweather->getLocationData($_GET['locId'], $_GET['range'], $_GET['maxVals']);
|
||||
} else {
|
||||
$data = $blueweather->getAllLocations();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue