www/mon_fermenter.php

Thu, 10 Jan 2019 20:22:06 +0100

author
Michiel Broek <mbroek@mbse.eu>
date
Thu, 10 Jan 2019 20:22:06 +0100
changeset 185
4c25db9e8102
parent 184
3dbe1d2265ed
child 188
0ef62ec2d5b0
permissions
-rw-r--r--

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.

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;'>
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
12 <tr><th colspan=3>Klimaatkast overzicht</th></tr>
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
13 <tr><td>Uuid</td><td colspan="2"><div id="info_uuid"></div></td></tr>
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
14 <tr><td>Systeem</td><td colspan="2"><div id="info_system"></div></td></tr>
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><td>Code en bier</td><td><div id="info_beer"></div></td><td><div id="select_beer"></div></td></tr>
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
16 <tr><td>Werking</td><td colspan="2"><div id="info_mode"></div></td></tr>
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
17 <tr><td>Vergisting fase</td><td colspan="2"><div id="info_stage"></div></td></tr>
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
18 <tr><td>Vergisting profiel</td><td><div id="info_profile"></div></td><td><div id="select_profile"></div></td></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
19 </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
20 </div>
182
58618d93c0fb Fermenter monitor screen added control boxes and LED's.
Michiel Broek <mbroek@mbse.eu>
parents: 180
diff changeset
21 </div>
58618d93c0fb Fermenter monitor screen added control boxes and LED's.
Michiel Broek <mbroek@mbse.eu>
parents: 180
diff changeset
22 <div id='fermenter_thermometers'>
16
522022b4fae4 Added monitoring screens
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
23 <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
24 <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
25 <div id="gaugeContainer_chiller" style="float: left; margin-top: 15px;"></div>
522022b4fae4 Added monitoring screens
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
26 </div>
182
58618d93c0fb Fermenter monitor screen added control boxes and LED's.
Michiel Broek <mbroek@mbse.eu>
parents: 180
diff changeset
27 </div> <!-- End left side -->
58618d93c0fb Fermenter monitor screen added control boxes and LED's.
Michiel Broek <mbroek@mbse.eu>
parents: 180
diff changeset
28
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
29 <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
30 <div id="fermenter_panel_top">
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
31 <div id="fermenter_selector">
182
58618d93c0fb Fermenter monitor screen added control boxes and LED's.
Michiel Broek <mbroek@mbse.eu>
parents: 180
diff changeset
32 </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
33 <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
34 <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
35 </div> <!-- fermenter_panel_top -->
58618d93c0fb Fermenter monitor screen added control boxes and LED's.
Michiel Broek <mbroek@mbse.eu>
parents: 180
diff changeset
36
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
37 <div id="fermenter_panel_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
38 <div id="fermenter_display">
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
39 <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
40 <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
41 </div>
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
42 <div id="fermenter_display">
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
43 <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
44 <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
45 </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
46 </div> <!-- fermenter_panel_display -->
182
58618d93c0fb Fermenter monitor screen added control boxes and LED's.
Michiel Broek <mbroek@mbse.eu>
parents: 180
diff changeset
47
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
48 <div id="fermenter_panel_control">
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
49 <div id="fermenter_led1"></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
50 <div id="fermenter_led2"></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
51 <div id="fermenter_led3"></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
52 <div id="fermenter_toggle1"></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
53 <div id="fermenter_toggle2"></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
54 <div id="fermenter_toggle3"></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
55 </div> <!-- fermenter_panel_control -->
182
58618d93c0fb Fermenter monitor screen added control boxes and LED's.
Michiel Broek <mbroek@mbse.eu>
parents: 180
diff changeset
56
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
57 <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
58 <input style="margin-top: 20px; margin-left: 70px;" type="button" id="FLog" value="Vergisting log" />
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
59 </div> <!-- fermenter_panel_buttons -->
182
58618d93c0fb Fermenter monitor screen added control boxes and LED's.
Michiel Broek <mbroek@mbse.eu>
parents: 180
diff changeset
60 </div> <!-- End right side -->
16
522022b4fae4 Added monitoring screens
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
61 </div>
522022b4fae4 Added monitoring screens
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
62
522022b4fae4 Added monitoring screens
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
63 <?php
522022b4fae4 Added monitoring screens
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
64 page_footer();
522022b4fae4 Added monitoring screens
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
65 ?>

mercurial