-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* release/2.15.0: Bumped version to 2.15.0 Add databse patch level in initial SQL Adjust body output size Fix open_basedir restriction error Rework database default values Add pause function also to cron script Adjust label position in chart Fix wrong variable references Add example injecting system load into output Add splitter for chart resizing Fix layout Minor fixes in channel logic Add scatter plot Make settings multi language Add new date selection for charts
- Loading branch information
Showing
120 changed files
with
6,186 additions
and
2,743 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
2.14.0 | ||
2016-08-24 | ||
2.15.0 | ||
2016-10-16 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
<?php | ||
/** | ||
* | ||
* | ||
* @author Knut Kohl <[email protected]> | ||
* @copyright 2012-2014 Knut Kohl | ||
* @license MIT License (MIT) http://opensource.org/licenses/MIT | ||
* @version 1.0.0 | ||
*/ | ||
|
||
/** | ||
* | ||
*/ | ||
$api->get( | ||
'/data/scatter/:GUIDx/:GUIDy', | ||
$APIkeyRequired, | ||
function($GUIDx, $GUIDy) use ($api) | ||
{ | ||
$request = $api->request->get(); | ||
|
||
Channel::calcStartEnd($request); | ||
|
||
$xChannel = Channel::ByGUID($GUIDx); | ||
$yChannel = Channel::ByGUID($GUIDy); | ||
|
||
$buffer = new Buffer; | ||
|
||
if ($api->request->get('attributes')) { | ||
$buffer->write($xChannel->getAttributes()); | ||
$buffer->write($yChannel->getAttributes()); | ||
} | ||
|
||
$sql = $api->db->sql( | ||
'CALL `pvlng_scatter`({1}, {2}, {3}, {4})', | ||
$xChannel->entity, $yChannel->entity, | ||
$request['start'], $request['end'] | ||
); | ||
|
||
if ($api->request->get('sql')) { | ||
$api->response()->header( | ||
'X-SQL', | ||
str_replace(array("\n", "\r"), array(' ', ''), $sql) | ||
); | ||
} | ||
|
||
$cnt = 0; | ||
|
||
$api->db->setBuffered(); | ||
|
||
if ($res = $api->db->query($sql)) { | ||
while ($row = $res->fetch_row()) { | ||
$cnt++; | ||
$buffer->write(array_values($row)); | ||
} | ||
$res->close(); | ||
} | ||
|
||
$api->response()->header('X-Rows', $cnt); | ||
|
||
$api->render($buffer); | ||
})->name('GET /data/scatter/:x/:y')->help = array( | ||
'since' => 'r6', | ||
'description' => 'Fetch data for scatter plot', | ||
'apikey' => true, | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.