Sat, 11 Aug 2018 19:16:51 +0200
Added thermometers values block
<?php require_once('config.php'); $mysqli = new mysqli(DBASE_HOST,DBASE_USER,DBASE_PASS,DBASE_NAME); $result = $mysqli->query("SELECT uuid,node,online,net_address FROM nodes"); while($row = $result->fetch_array(MYSQLI_ASSOC)) { if ($row['online'] == 'Y') $row['online'] = true; else $row['online'] = false; $resultArray[] = $row; } echo json_encode($resultArray);