www/mon_fermenter.php

Wed, 09 Jan 2019 16:19:26 +0100

author
Michiel Broek <mbroek@mbse.eu>
date
Wed, 09 Jan 2019 16:19:26 +0100
changeset 184
3dbe1d2265ed
parent 183
a810539dc218
child 185
4c25db9e8102
permissions
-rw-r--r--

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.

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

mercurial