diff -r 1253a237b620 -r 9cd6873bda75 www/getispindellog.php --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/www/getispindellog.php Sun Jan 05 20:00:39 2020 +0100 @@ -0,0 +1,45 @@ + $row[0], + 'temperature' => $row[1], + 'plato' => $row[2], + 'sg' => $row[3], + 'battery' => $row[4] + ); + } + if (!feof($handle)) { + echo "Error: unexpected fgets() fail\n"; + } + fclose($handle); +} +header("Content-type: application/json"); +echo json_encode($logs); +//echo $lines . ' lines' . PHP_EOL;