www/log_fermentation.php

Mon, 18 May 2020 11:00:59 +0200

author
Michiel Broek <mbroek@mbse.eu>
date
Mon, 18 May 2020 11:00:59 +0200
changeset 679
48f8f3fce7c0
parent 602
10b61aacb1c1
permissions
-rw-r--r--

Added reconnecting-websocket.js to automatic reconnect the websocket if the connection is lost. Usefull for mobile devices that go to sleep after a while. Changed mon_fermenters to use websockets instead of polling. Fixed wrong temperature color ranges on the fermenter monior. Increased the websocket receive buffer to 2048. In cannot overflow, but larger messages are chunked and the application does not handle these split messages. Needs termferm 0.9.9 or newer.

<?php
require_once($_SERVER['DOCUMENT_ROOT'].'/includes/global.inc.php');
page_header('Klimaatkast grafiek', "log_fermentation");
?>

   <div id="MainPanel">
    <div id="ContentPanel"></div>
    <div id="fermenter_chart" style="width:1130px; height:610px; float:left; margin-left: 10px; margin-top: 10px;"></div>
    <div style="margin-top: 10px; margin-left: 10px;">
     <input style="float: left; margin-left: 10px;" id="print" type="button" value="Print grafiek" />
     <input style="float: left; margin-left: 10px; margin-top: 10px;" id="pdfButton" type="button" value="Maak PDF" />
     <input style="float: left; margin-left: 10px; margin-top: 10px;" id="pngButton" type="button" value="Maak PNG" />
     <input style="float: left; margin-left: 10px; margin-top: 10px;" id="Close" type="button" value="Sluiten" />
    </div>
   </div>

<?php
page_footer();
?>

mercurial