www/getfermenter.php

Sun, 08 Mar 2020 17:11:18 +0100

author
Michiel Broek <mbroek@mbse.eu>
date
Sun, 08 Mar 2020 17:11:18 +0100
changeset 628
a42166cbb19a
parent 572
7a03181d29a3
permissions
-rw-r--r--

Record iSpindel original plato by updating to the highest measured value. Reset this value when a new beer is set. Added current status to the monitor screen.

<?php

require_once('config.php');

if (isset($_GET["uuid"]))
	    $uuid = $_GET["uuid"];
else
	    $uuid = "'ef166f25-1bb4-4bef-b112-a867af77f766'";


$mysqli = new mysqli(DBASE_HOST,DBASE_USER,DBASE_PASS,DBASE_NAME);
$query = "SELECT * FROM mon_fermenters WHERE uuid=".$uuid."";
$result = $mysqli->query($query);
$resultArray = $result->fetch_array(MYSQLI_ASSOC);
header("Content-type: application/json");
echo json_encode($resultArray);

mercurial