www/mon_fermenter.php

Sat, 23 May 2020 20:53:48 +0200

author
Michiel Broek <mbroek@mbse.eu>
date
Sat, 23 May 2020 20:53:48 +0200
changeset 691
9c21125f584e
parent 679
48f8f3fce7c0
permissions
-rw-r--r--

Added clone command to the equipment inventory.

16
522022b4fae4 Added monitoring screens
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
1 <?php
522022b4fae4 Added monitoring screens
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
2 require_once($_SERVER['DOCUMENT_ROOT'].'/includes/global.inc.php');
180
a5aa3502310c Updated README. Getfermenter and getnode scripts return 0 and 1 instead of false and true for boolean values. Global variable my_uuid added. Moved the javascript out of mon_fermenter.php. Added log chart view button in the fermenter monitor.
Michiel Broek <mbroek@mbse.eu>
parents: 40
diff changeset
3 page_header('Monitor Fermentation', 'mon_fermenter');
16
522022b4fae4 Added monitoring screens
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
4 ?>
522022b4fae4 Added monitoring screens
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
5
182
58618d93c0fb Fermenter monitor screen added control boxes and LED's.
Michiel Broek <mbroek@mbse.eu>
parents: 180
diff changeset
6 <div id="fermenter">
58618d93c0fb Fermenter monitor screen added control boxes and LED's.
Michiel Broek <mbroek@mbse.eu>
parents: 180
diff changeset
7
58618d93c0fb Fermenter monitor screen added control boxes and LED's.
Michiel Broek <mbroek@mbse.eu>
parents: 180
diff changeset
8 <div style="float: left; width: 970px;">
58618d93c0fb Fermenter monitor screen added control boxes and LED's.
Michiel Broek <mbroek@mbse.eu>
parents: 180
diff changeset
9 <div id="fermenter_table">
183
a810539dc218 Added cmd_fermenter.php which interfaces http POST commands to MQTT using mosquitto_pub in a shell. Several chnges to the monitor fermenter screen.
Michiel Broek <mbroek@mbse.eu>
parents: 182
diff changeset
10 <div id="fermenter_info">
a810539dc218 Added cmd_fermenter.php which interfaces http POST commands to MQTT using mosquitto_pub in a shell. Several chnges to the monitor fermenter screen.
Michiel Broek <mbroek@mbse.eu>
parents: 182
diff changeset
11 <table style='width: 100%; padding: 10px;'>
189
6470e5c6a001 In bmsd added missing json percent. The Makefile didn't install the fpdf library. Added profile commands. Small changes to the monitor fermenters screen. The monitor fermenters scheduler is now more responsive. Profiles selection and commands in the remote thermferm.
Michiel Broek <mbroek@mbse.eu>
parents: 188
diff changeset
12 <col width="20%">
6470e5c6a001 In bmsd added missing json percent. The Makefile didn't install the fpdf library. Added profile commands. Small changes to the monitor fermenters screen. The monitor fermenters scheduler is now more responsive. Profiles selection and commands in the remote thermferm.
Michiel Broek <mbroek@mbse.eu>
parents: 188
diff changeset
13 <col width="40%">
6470e5c6a001 In bmsd added missing json percent. The Makefile didn't install the fpdf library. Added profile commands. Small changes to the monitor fermenters screen. The monitor fermenters scheduler is now more responsive. Profiles selection and commands in the remote thermferm.
Michiel Broek <mbroek@mbse.eu>
parents: 188
diff changeset
14 <col width="40%">
185
4c25db9e8102 Added configuration settings for MQTT in config.php. Finished screen box sizes for the fermenters monitor. Select beername and code from the current brew products and send it to the fermenter. Added switch commands to the fermenter. Delay data get from the fermenter after sending any command so there is time to process the commands. Turn switches off when the mode changes. Removed 0.2 degrees setpoint diffs for low and high, the fermenter must deal with it. Prevent turning the heater and cooler together on.
Michiel Broek <mbroek@mbse.eu>
parents: 184
diff changeset
15 <tr><th colspan=3>Klimaatkast overzicht</th></tr>
189
6470e5c6a001 In bmsd added missing json percent. The Makefile didn't install the fpdf library. Added profile commands. Small changes to the monitor fermenters screen. The monitor fermenters scheduler is now more responsive. Profiles selection and commands in the remote thermferm.
Michiel Broek <mbroek@mbse.eu>
parents: 188
diff changeset
16 <tr style="height: 25px;">
6470e5c6a001 In bmsd added missing json percent. The Makefile didn't install the fpdf library. Added profile commands. Small changes to the monitor fermenters screen. The monitor fermenters scheduler is now more responsive. Profiles selection and commands in the remote thermferm.
Michiel Broek <mbroek@mbse.eu>
parents: 188
diff changeset
17 <td>Uuid</td>
6470e5c6a001 In bmsd added missing json percent. The Makefile didn't install the fpdf library. Added profile commands. Small changes to the monitor fermenters screen. The monitor fermenters scheduler is now more responsive. Profiles selection and commands in the remote thermferm.
Michiel Broek <mbroek@mbse.eu>
parents: 188
diff changeset
18 <td colspan="2"><div id="info_uuid"></div></td>
6470e5c6a001 In bmsd added missing json percent. The Makefile didn't install the fpdf library. Added profile commands. Small changes to the monitor fermenters screen. The monitor fermenters scheduler is now more responsive. Profiles selection and commands in the remote thermferm.
Michiel Broek <mbroek@mbse.eu>
parents: 188
diff changeset
19 </tr>
6470e5c6a001 In bmsd added missing json percent. The Makefile didn't install the fpdf library. Added profile commands. Small changes to the monitor fermenters screen. The monitor fermenters scheduler is now more responsive. Profiles selection and commands in the remote thermferm.
Michiel Broek <mbroek@mbse.eu>
parents: 188
diff changeset
20 <tr style="height: 25px;">
6470e5c6a001 In bmsd added missing json percent. The Makefile didn't install the fpdf library. Added profile commands. Small changes to the monitor fermenters screen. The monitor fermenters scheduler is now more responsive. Profiles selection and commands in the remote thermferm.
Michiel Broek <mbroek@mbse.eu>
parents: 188
diff changeset
21 <td>Systeem</td>
6470e5c6a001 In bmsd added missing json percent. The Makefile didn't install the fpdf library. Added profile commands. Small changes to the monitor fermenters screen. The monitor fermenters scheduler is now more responsive. Profiles selection and commands in the remote thermferm.
Michiel Broek <mbroek@mbse.eu>
parents: 188
diff changeset
22 <td><div id="info_system"></div></td>
6470e5c6a001 In bmsd added missing json percent. The Makefile didn't install the fpdf library. Added profile commands. Small changes to the monitor fermenters screen. The monitor fermenters scheduler is now more responsive. Profiles selection and commands in the remote thermferm.
Michiel Broek <mbroek@mbse.eu>
parents: 188
diff changeset
23 <td><div id="info_online"></div></td>
6470e5c6a001 In bmsd added missing json percent. The Makefile didn't install the fpdf library. Added profile commands. Small changes to the monitor fermenters screen. The monitor fermenters scheduler is now more responsive. Profiles selection and commands in the remote thermferm.
Michiel Broek <mbroek@mbse.eu>
parents: 188
diff changeset
24 </tr>
6470e5c6a001 In bmsd added missing json percent. The Makefile didn't install the fpdf library. Added profile commands. Small changes to the monitor fermenters screen. The monitor fermenters scheduler is now more responsive. Profiles selection and commands in the remote thermferm.
Michiel Broek <mbroek@mbse.eu>
parents: 188
diff changeset
25 <tr style="height: 25px;">
6470e5c6a001 In bmsd added missing json percent. The Makefile didn't install the fpdf library. Added profile commands. Small changes to the monitor fermenters screen. The monitor fermenters scheduler is now more responsive. Profiles selection and commands in the remote thermferm.
Michiel Broek <mbroek@mbse.eu>
parents: 188
diff changeset
26 <td>Code en bier</td>
6470e5c6a001 In bmsd added missing json percent. The Makefile didn't install the fpdf library. Added profile commands. Small changes to the monitor fermenters screen. The monitor fermenters scheduler is now more responsive. Profiles selection and commands in the remote thermferm.
Michiel Broek <mbroek@mbse.eu>
parents: 188
diff changeset
27 <td><div id="info_beer"></div></td>
6470e5c6a001 In bmsd added missing json percent. The Makefile didn't install the fpdf library. Added profile commands. Small changes to the monitor fermenters screen. The monitor fermenters scheduler is now more responsive. Profiles selection and commands in the remote thermferm.
Michiel Broek <mbroek@mbse.eu>
parents: 188
diff changeset
28 <td><div id="select_beer"></div></td>
6470e5c6a001 In bmsd added missing json percent. The Makefile didn't install the fpdf library. Added profile commands. Small changes to the monitor fermenters screen. The monitor fermenters scheduler is now more responsive. Profiles selection and commands in the remote thermferm.
Michiel Broek <mbroek@mbse.eu>
parents: 188
diff changeset
29 </tr>
6470e5c6a001 In bmsd added missing json percent. The Makefile didn't install the fpdf library. Added profile commands. Small changes to the monitor fermenters screen. The monitor fermenters scheduler is now more responsive. Profiles selection and commands in the remote thermferm.
Michiel Broek <mbroek@mbse.eu>
parents: 188
diff changeset
30 <tr style="height: 25px;">
6470e5c6a001 In bmsd added missing json percent. The Makefile didn't install the fpdf library. Added profile commands. Small changes to the monitor fermenters screen. The monitor fermenters scheduler is now more responsive. Profiles selection and commands in the remote thermferm.
Michiel Broek <mbroek@mbse.eu>
parents: 188
diff changeset
31 <td>Werking</td>
6470e5c6a001 In bmsd added missing json percent. The Makefile didn't install the fpdf library. Added profile commands. Small changes to the monitor fermenters screen. The monitor fermenters scheduler is now more responsive. Profiles selection and commands in the remote thermferm.
Michiel Broek <mbroek@mbse.eu>
parents: 188
diff changeset
32 <td><div id="info_mode"></div></td>
6470e5c6a001 In bmsd added missing json percent. The Makefile didn't install the fpdf library. Added profile commands. Small changes to the monitor fermenters screen. The monitor fermenters scheduler is now more responsive. Profiles selection and commands in the remote thermferm.
Michiel Broek <mbroek@mbse.eu>
parents: 188
diff changeset
33 <td><input type="button" id="Profile1" value="Profile 1" /><input style="margin-left: 10px;" type="button" id="Profile2" value="Profile 2" /></td>
6470e5c6a001 In bmsd added missing json percent. The Makefile didn't install the fpdf library. Added profile commands. Small changes to the monitor fermenters screen. The monitor fermenters scheduler is now more responsive. Profiles selection and commands in the remote thermferm.
Michiel Broek <mbroek@mbse.eu>
parents: 188
diff changeset
34 </tr>
6470e5c6a001 In bmsd added missing json percent. The Makefile didn't install the fpdf library. Added profile commands. Small changes to the monitor fermenters screen. The monitor fermenters scheduler is now more responsive. Profiles selection and commands in the remote thermferm.
Michiel Broek <mbroek@mbse.eu>
parents: 188
diff changeset
35 <tr style="height: 25px;">
6470e5c6a001 In bmsd added missing json percent. The Makefile didn't install the fpdf library. Added profile commands. Small changes to the monitor fermenters screen. The monitor fermenters scheduler is now more responsive. Profiles selection and commands in the remote thermferm.
Michiel Broek <mbroek@mbse.eu>
parents: 188
diff changeset
36 <td>Vergisting fase</td>
6470e5c6a001 In bmsd added missing json percent. The Makefile didn't install the fpdf library. Added profile commands. Small changes to the monitor fermenters screen. The monitor fermenters scheduler is now more responsive. Profiles selection and commands in the remote thermferm.
Michiel Broek <mbroek@mbse.eu>
parents: 188
diff changeset
37 <td colspan="2"><div id="info_stage"></div></td>
6470e5c6a001 In bmsd added missing json percent. The Makefile didn't install the fpdf library. Added profile commands. Small changes to the monitor fermenters screen. The monitor fermenters scheduler is now more responsive. Profiles selection and commands in the remote thermferm.
Michiel Broek <mbroek@mbse.eu>
parents: 188
diff changeset
38 </tr>
6470e5c6a001 In bmsd added missing json percent. The Makefile didn't install the fpdf library. Added profile commands. Small changes to the monitor fermenters screen. The monitor fermenters scheduler is now more responsive. Profiles selection and commands in the remote thermferm.
Michiel Broek <mbroek@mbse.eu>
parents: 188
diff changeset
39 <tr style="height: 25px;">
6470e5c6a001 In bmsd added missing json percent. The Makefile didn't install the fpdf library. Added profile commands. Small changes to the monitor fermenters screen. The monitor fermenters scheduler is now more responsive. Profiles selection and commands in the remote thermferm.
Michiel Broek <mbroek@mbse.eu>
parents: 188
diff changeset
40 <td>Vergisting profiel</td>
6470e5c6a001 In bmsd added missing json percent. The Makefile didn't install the fpdf library. Added profile commands. Small changes to the monitor fermenters screen. The monitor fermenters scheduler is now more responsive. Profiles selection and commands in the remote thermferm.
Michiel Broek <mbroek@mbse.eu>
parents: 188
diff changeset
41 <td><div id="info_profile"></div></td>
6470e5c6a001 In bmsd added missing json percent. The Makefile didn't install the fpdf library. Added profile commands. Small changes to the monitor fermenters screen. The monitor fermenters scheduler is now more responsive. Profiles selection and commands in the remote thermferm.
Michiel Broek <mbroek@mbse.eu>
parents: 188
diff changeset
42 <td><div id="select_profile"></div><div id="status_profile"></div></td>
6470e5c6a001 In bmsd added missing json percent. The Makefile didn't install the fpdf library. Added profile commands. Small changes to the monitor fermenters screen. The monitor fermenters scheduler is now more responsive. Profiles selection and commands in the remote thermferm.
Michiel Broek <mbroek@mbse.eu>
parents: 188
diff changeset
43 </tr>
183
a810539dc218 Added cmd_fermenter.php which interfaces http POST commands to MQTT using mosquitto_pub in a shell. Several chnges to the monitor fermenter screen.
Michiel Broek <mbroek@mbse.eu>
parents: 182
diff changeset
44 </table>
a810539dc218 Added cmd_fermenter.php which interfaces http POST commands to MQTT using mosquitto_pub in a shell. Several chnges to the monitor fermenter screen.
Michiel Broek <mbroek@mbse.eu>
parents: 182
diff changeset
45 </div>
182
58618d93c0fb Fermenter monitor screen added control boxes and LED's.
Michiel Broek <mbroek@mbse.eu>
parents: 180
diff changeset
46 </div>
58618d93c0fb Fermenter monitor screen added control boxes and LED's.
Michiel Broek <mbroek@mbse.eu>
parents: 180
diff changeset
47 <div id='fermenter_thermometers'>
16
522022b4fae4 Added monitoring screens
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
48 <div id="gaugeContainer_air" style='float: left; margin-top: 10px; margin-left: 10px;'></div>
522022b4fae4 Added monitoring screens
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
49 <div id="gaugeContainer_beer" style="float: right; margin-top: 10px; margin-right: 10px;"></div>
522022b4fae4 Added monitoring screens
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
50 <div id="gaugeContainer_chiller" style="float: left; margin-top: 15px;"></div>
522022b4fae4 Added monitoring screens
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
51 </div>
182
58618d93c0fb Fermenter monitor screen added control boxes and LED's.
Michiel Broek <mbroek@mbse.eu>
parents: 180
diff changeset
52 </div> <!-- End left side -->
58618d93c0fb Fermenter monitor screen added control boxes and LED's.
Michiel Broek <mbroek@mbse.eu>
parents: 180
diff changeset
53
184
3dbe1d2265ed Removed the setpoints and temperatures from the right display panel. Added the current temperatures in text to the gauges as caption. Adjusted the gauge caption font display. Only send commands to the mqtt server just before we fetch fresh data. Added new target temperature settings in the right display box.
Michiel Broek <mbroek@mbse.eu>
parents: 183
diff changeset
54 <div style="float: right; width: 295px;">
183
a810539dc218 Added cmd_fermenter.php which interfaces http POST commands to MQTT using mosquitto_pub in a shell. Several chnges to the monitor fermenter screen.
Michiel Broek <mbroek@mbse.eu>
parents: 182
diff changeset
55 <div id="fermenter_panel_top">
188
0ef62ec2d5b0 Added door and lights status leds.
Michiel Broek <mbroek@mbse.eu>
parents: 185
diff changeset
56 <div id="fermenter_doorled"></div>
0ef62ec2d5b0 Added door and lights status leds.
Michiel Broek <mbroek@mbse.eu>
parents: 185
diff changeset
57 <div id="fermenter_lightled"></div>
183
a810539dc218 Added cmd_fermenter.php which interfaces http POST commands to MQTT using mosquitto_pub in a shell. Several chnges to the monitor fermenter screen.
Michiel Broek <mbroek@mbse.eu>
parents: 182
diff changeset
58 <div id="fermenter_alarmled"></div>
a810539dc218 Added cmd_fermenter.php which interfaces http POST commands to MQTT using mosquitto_pub in a shell. Several chnges to the monitor fermenter screen.
Michiel Broek <mbroek@mbse.eu>
parents: 182
diff changeset
59 <div id="fermenter_powerled"></div>
182
58618d93c0fb Fermenter monitor screen added control boxes and LED's.
Michiel Broek <mbroek@mbse.eu>
parents: 180
diff changeset
60 </div> <!-- fermenter_panel_top -->
58618d93c0fb Fermenter monitor screen added control boxes and LED's.
Michiel Broek <mbroek@mbse.eu>
parents: 180
diff changeset
61
183
a810539dc218 Added cmd_fermenter.php which interfaces http POST commands to MQTT using mosquitto_pub in a shell. Several chnges to the monitor fermenter screen.
Michiel Broek <mbroek@mbse.eu>
parents: 182
diff changeset
62 <div id="fermenter_panel_display">
679
48f8f3fce7c0 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.
Michiel Broek <mbroek@mbse.eu>
parents: 334
diff changeset
63 <div id="fermenter_display" class="f_display">
184
3dbe1d2265ed Removed the setpoints and temperatures from the right display panel. Added the current temperatures in text to the gauges as caption. Adjusted the gauge caption font display. Only send commands to the mqtt server just before we fetch fresh data. Added new target temperature settings in the right display box.
Michiel Broek <mbroek@mbse.eu>
parents: 183
diff changeset
64 <div id="target_lo" style="margin-left: 40px; margin-top: 15px;"></div>
3dbe1d2265ed Removed the setpoints and temperatures from the right display panel. Added the current temperatures in text to the gauges as caption. Adjusted the gauge caption font display. Only send commands to the mqtt server just before we fetch fresh data. Added new target temperature settings in the right display box.
Michiel Broek <mbroek@mbse.eu>
parents: 183
diff changeset
65 <div style="margin-top: 5px;">&deg;C laag</div>
182
58618d93c0fb Fermenter monitor screen added control boxes and LED's.
Michiel Broek <mbroek@mbse.eu>
parents: 180
diff changeset
66 </div>
679
48f8f3fce7c0 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.
Michiel Broek <mbroek@mbse.eu>
parents: 334
diff changeset
67 <div id="fermenter_display" class="f_display">
184
3dbe1d2265ed Removed the setpoints and temperatures from the right display panel. Added the current temperatures in text to the gauges as caption. Adjusted the gauge caption font display. Only send commands to the mqtt server just before we fetch fresh data. Added new target temperature settings in the right display box.
Michiel Broek <mbroek@mbse.eu>
parents: 183
diff changeset
68 <div id="target_hi" style="margin-left: 40px; margin-top: 15px;"></div>
3dbe1d2265ed Removed the setpoints and temperatures from the right display panel. Added the current temperatures in text to the gauges as caption. Adjusted the gauge caption font display. Only send commands to the mqtt server just before we fetch fresh data. Added new target temperature settings in the right display box.
Michiel Broek <mbroek@mbse.eu>
parents: 183
diff changeset
69 <div style="margin-top: 5px;">&deg;C hoog</div>
182
58618d93c0fb Fermenter monitor screen added control boxes and LED's.
Michiel Broek <mbroek@mbse.eu>
parents: 180
diff changeset
70 </div>
183
a810539dc218 Added cmd_fermenter.php which interfaces http POST commands to MQTT using mosquitto_pub in a shell. Several chnges to the monitor fermenter screen.
Michiel Broek <mbroek@mbse.eu>
parents: 182
diff changeset
71 </div> <!-- fermenter_panel_display -->
182
58618d93c0fb Fermenter monitor screen added control boxes and LED's.
Michiel Broek <mbroek@mbse.eu>
parents: 180
diff changeset
72
183
a810539dc218 Added cmd_fermenter.php which interfaces http POST commands to MQTT using mosquitto_pub in a shell. Several chnges to the monitor fermenter screen.
Michiel Broek <mbroek@mbse.eu>
parents: 182
diff changeset
73 <div id="fermenter_panel_control">
679
48f8f3fce7c0 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.
Michiel Broek <mbroek@mbse.eu>
parents: 334
diff changeset
74 <div class="f_control_leds">
48f8f3fce7c0 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.
Michiel Broek <mbroek@mbse.eu>
parents: 334
diff changeset
75 <div id="fermenter_led1"></div>
48f8f3fce7c0 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.
Michiel Broek <mbroek@mbse.eu>
parents: 334
diff changeset
76 <div id="fermenter_led2"></div>
48f8f3fce7c0 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.
Michiel Broek <mbroek@mbse.eu>
parents: 334
diff changeset
77 <div id="fermenter_led3"></div>
48f8f3fce7c0 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.
Michiel Broek <mbroek@mbse.eu>
parents: 334
diff changeset
78 </div>
48f8f3fce7c0 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.
Michiel Broek <mbroek@mbse.eu>
parents: 334
diff changeset
79 <div class="f_control_switches">
48f8f3fce7c0 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.
Michiel Broek <mbroek@mbse.eu>
parents: 334
diff changeset
80 <div id="fermenter_toggle1"></div>
48f8f3fce7c0 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.
Michiel Broek <mbroek@mbse.eu>
parents: 334
diff changeset
81 <div id="fermenter_toggle2"></div>
48f8f3fce7c0 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.
Michiel Broek <mbroek@mbse.eu>
parents: 334
diff changeset
82 <div id="fermenter_toggle3"></div>
48f8f3fce7c0 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.
Michiel Broek <mbroek@mbse.eu>
parents: 334
diff changeset
83 </div>
183
a810539dc218 Added cmd_fermenter.php which interfaces http POST commands to MQTT using mosquitto_pub in a shell. Several chnges to the monitor fermenter screen.
Michiel Broek <mbroek@mbse.eu>
parents: 182
diff changeset
84 </div> <!-- fermenter_panel_control -->
182
58618d93c0fb Fermenter monitor screen added control boxes and LED's.
Michiel Broek <mbroek@mbse.eu>
parents: 180
diff changeset
85
183
a810539dc218 Added cmd_fermenter.php which interfaces http POST commands to MQTT using mosquitto_pub in a shell. Several chnges to the monitor fermenter screen.
Michiel Broek <mbroek@mbse.eu>
parents: 182
diff changeset
86 <div id="fermenter_panel_buttons">
185
4c25db9e8102 Added configuration settings for MQTT in config.php. Finished screen box sizes for the fermenters monitor. Select beername and code from the current brew products and send it to the fermenter. Added switch commands to the fermenter. Delay data get from the fermenter after sending any command so there is time to process the commands. Turn switches off when the mode changes. Removed 0.2 degrees setpoint diffs for low and high, the fermenter must deal with it. Prevent turning the heater and cooler together on.
Michiel Broek <mbroek@mbse.eu>
parents: 184
diff changeset
87 <input style="margin-top: 20px; margin-left: 70px;" type="button" id="FLog" value="Vergisting log" />
334
26c6f8e5d58e Added webcam_url and webcam_light fields to the mon_fermenters database table. Currently these fields need to be set using phpMyAdmin or another tool. If the webcam_url field is set, then on the mon_fermenter webpage a button is added to show a webcam page.
Michiel Broek <mbroek@mbse.eu>
parents: 191
diff changeset
88 <input style="margin-top: 20px; margin-left: 70px;" type="button" id="Camera" value="Camera" />
183
a810539dc218 Added cmd_fermenter.php which interfaces http POST commands to MQTT using mosquitto_pub in a shell. Several chnges to the monitor fermenter screen.
Michiel Broek <mbroek@mbse.eu>
parents: 182
diff changeset
89 </div> <!-- fermenter_panel_buttons -->
182
58618d93c0fb Fermenter monitor screen added control boxes and LED's.
Michiel Broek <mbroek@mbse.eu>
parents: 180
diff changeset
90 </div> <!-- End right side -->
16
522022b4fae4 Added monitoring screens
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
91 </div>
522022b4fae4 Added monitoring screens
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
92
191
fd1d7225ca6e Version 0.0.4. Added confirm popup window to abort a running profile. Translated the toggle buttons.
Michiel Broek <mbroek@mbse.eu>
parents: 189
diff changeset
93 <div id="eventWindow">
fd1d7225ca6e Version 0.0.4. Added confirm popup window to abort a running profile. Translated the toggle buttons.
Michiel Broek <mbroek@mbse.eu>
parents: 189
diff changeset
94 <div>
fd1d7225ca6e Version 0.0.4. Added confirm popup window to abort a running profile. Translated the toggle buttons.
Michiel Broek <mbroek@mbse.eu>
parents: 189
diff changeset
95 Bevestig profiel afbreken
fd1d7225ca6e Version 0.0.4. Added confirm popup window to abort a running profile. Translated the toggle buttons.
Michiel Broek <mbroek@mbse.eu>
parents: 189
diff changeset
96 </div>
fd1d7225ca6e Version 0.0.4. Added confirm popup window to abort a running profile. Translated the toggle buttons.
Michiel Broek <mbroek@mbse.eu>
parents: 189
diff changeset
97 <div>
fd1d7225ca6e Version 0.0.4. Added confirm popup window to abort a running profile. Translated the toggle buttons.
Michiel Broek <mbroek@mbse.eu>
parents: 189
diff changeset
98 <div>
fd1d7225ca6e Version 0.0.4. Added confirm popup window to abort a running profile. Translated the toggle buttons.
Michiel Broek <mbroek@mbse.eu>
parents: 189
diff changeset
99 Klik "OK" om dit profiel definitief te stoppen. Opnieuw starten begint dan weer bij het begin.<br>
fd1d7225ca6e Version 0.0.4. Added confirm popup window to abort a running profile. Translated the toggle buttons.
Michiel Broek <mbroek@mbse.eu>
parents: 189
diff changeset
100 Druk "Cancel" om te sluiten zonder dit profiel te stoppen.
fd1d7225ca6e Version 0.0.4. Added confirm popup window to abort a running profile. Translated the toggle buttons.
Michiel Broek <mbroek@mbse.eu>
parents: 189
diff changeset
101 </div>
fd1d7225ca6e Version 0.0.4. Added confirm popup window to abort a running profile. Translated the toggle buttons.
Michiel Broek <mbroek@mbse.eu>
parents: 189
diff changeset
102 <div>
fd1d7225ca6e Version 0.0.4. Added confirm popup window to abort a running profile. Translated the toggle buttons.
Michiel Broek <mbroek@mbse.eu>
parents: 189
diff changeset
103 <div style="float: right; margin-top: 40px; margin-bottom: 10px;">
fd1d7225ca6e Version 0.0.4. Added confirm popup window to abort a running profile. Translated the toggle buttons.
Michiel Broek <mbroek@mbse.eu>
parents: 189
diff changeset
104 <input type="button" id="delOk" value="OK" style="margin-right: 90px" />
fd1d7225ca6e Version 0.0.4. Added confirm popup window to abort a running profile. Translated the toggle buttons.
Michiel Broek <mbroek@mbse.eu>
parents: 189
diff changeset
105 <input type="button" id="delCancel" value="Cancel" style="margin-right: 80px" />
fd1d7225ca6e Version 0.0.4. Added confirm popup window to abort a running profile. Translated the toggle buttons.
Michiel Broek <mbroek@mbse.eu>
parents: 189
diff changeset
106 </div>
fd1d7225ca6e Version 0.0.4. Added confirm popup window to abort a running profile. Translated the toggle buttons.
Michiel Broek <mbroek@mbse.eu>
parents: 189
diff changeset
107 </div>
fd1d7225ca6e Version 0.0.4. Added confirm popup window to abort a running profile. Translated the toggle buttons.
Michiel Broek <mbroek@mbse.eu>
parents: 189
diff changeset
108 </div>
fd1d7225ca6e Version 0.0.4. Added confirm popup window to abort a running profile. Translated the toggle buttons.
Michiel Broek <mbroek@mbse.eu>
parents: 189
diff changeset
109 </div>
fd1d7225ca6e Version 0.0.4. Added confirm popup window to abort a running profile. Translated the toggle buttons.
Michiel Broek <mbroek@mbse.eu>
parents: 189
diff changeset
110
16
522022b4fae4 Added monitoring screens
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
111 <?php
522022b4fae4 Added monitoring screens
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
112 page_footer();
522022b4fae4 Added monitoring screens
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
113 ?>

mercurial