# HG changeset patch # User Michiel Broek # Date 1559746334 -7200 # Node ID 4aad74bde00b9e7a2255e143f97a924615b45e54 # Parent 6d07c51e7540843a8440857c0b225b78872295d4 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. diff -r 6d07c51e7540 -r 4aad74bde00b README.design --- 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. diff -r 6d07c51e7540 -r 4aad74bde00b www/prod_beerxml.php --- 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');