www/prod_beerxml.php

changeset 401
4aad74bde00b
parent 400
6d07c51e7540
child 429
0d2cf505957c
--- a/www/prod_beerxml.php	Wed Jun 05 16:21:18 2019 +0200
+++ b/www/prod_beerxml.php	Wed Jun 05 16:52:14 2019 +0200
@@ -96,6 +96,34 @@
 xmlwriter_text($xw, sprintf("%.3f",floatval($row['fg'])));
 xmlwriter_end_element($xw);
 
+if ($row['brew_cooling_to'] > 0) {
+	xmlwriter_start_element($xw, 'BMS_COOLING_TO');
+	xmlwriter_text($xw, sprintf("%.1f",floatval($row['brew_cooling_to'])));
+	xmlwriter_end_element($xw);
+}
+
+if ($row['brew_whirlpool9'] > 0) {
+	xmlwriter_start_element($xw, 'BMS_WHIRLPOOL9');
+	xmlwriter_text($xw, sprintf("%.0f",floatval($row['brew_whirlpool9'])));
+	xmlwriter_end_element($xw);
+}
+if ($row['brew_whirlpool7'] > 0) {
+        xmlwriter_start_element($xw, 'BMS_WHIRLPOOL7');
+        xmlwriter_text($xw, sprintf("%.0f",floatval($row['brew_whirlpool7'])));
+        xmlwriter_end_element($xw);
+}
+if ($row['brew_whirlpool6'] > 0) {
+        xmlwriter_start_element($xw, 'BMS_WHIRLPOOL6');
+        xmlwriter_text($xw, sprintf("%.0f",floatval($row['brew_whirlpool6'])));
+        xmlwriter_end_element($xw);
+}
+if ($row['brew_whirlpool2'] > 0) {
+        xmlwriter_start_element($xw, 'BMS_WHIRLPOOL2');
+        xmlwriter_text($xw, sprintf("%.0f",floatval($row['brew_whirlpool2'])));
+        xmlwriter_end_element($xw);
+}
+
+
 // Style
 xmlwriter_start_element($xw, 'STYLE');
 

mercurial