Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created December 24, 2020 18:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parzibyte/eae30af37ab244800b4bb6cb45e0a5ad to your computer and use it in GitHub Desktop.
Save parzibyte/eae30af37ab244800b4bb6cb45e0a5ad to your computer and use it in GitHub Desktop.
<?php
if (!isset($_GET["start"]) || !isset($_GET["end"])) {
echo json_encode([]);
exit;
}
$start = $_GET["start"];
$end = $_GET["end"];
include_once "functions.php";
echo json_encode(getSensorData($start, $end));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment