In product beerxml export added BMS specific items: cooling_to and whirlpool stages. These should be picked up by the brew computer and should do no harm to the rest of the world.

Wed, 05 Jun 2019 16:52:14 +0200

author
Michiel Broek <mbroek@mbse.eu>
date
Wed, 05 Jun 2019 16:52:14 +0200
changeset 401
4aad74bde00b
parent 400
6d07c51e7540
child 402
c61f6559cc45
child 404
39a688b8d069

In product beerxml export added BMS specific items: cooling_to and whirlpool stages. These should be picked up by the brew computer and should do no harm to the rest of the world.

README.design file | annotate | diff | comparison | revisions
www/prod_beerxml.php file | annotate | diff | comparison | revisions
--- a/README.design	Wed Jun 05 16:21:18 2019 +0200
+++ b/README.design	Wed Jun 05 16:52:14 2019 +0200
@@ -18,7 +18,5 @@
 
 Popups in de editors met rekenhulpjes.
 
-Beerxml cool tot temp toevoegen.
-
 Koolzuurdruk tabel inbouwen.
 
--- 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