[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4709: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3841)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4711: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3841)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4712: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3841)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4713: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3841)
BeerTools Discussion Forum • View topic - Writing custom XML namespace to recipe

Writing custom XML namespace to recipe

Suggestions and discussion about upcoming features in future BeerTools Pro releases.

Writing custom XML namespace to recipe

Postby doctorjames » Sat Jul 05, 2014 2:51 pm

I'm in the process of writing a simple python script to read the schedule information from a BeerTools recipe and use it to automatically control my HLT PID and RIMS PID via RS485/modbus. The BeerTools XML format is great and very easy to utilise for this purpose (thank you @jeff!).

What I would like to do is add annotations to the recipe XML using my own arbitrary XML namespace declared in my own node (in this case to record the actual measured temperature profile, heater performance, etc.) Could there be a <b:annotations /> node added to the XML format that is invisible in the BeerTools interface but loaded and saved (untouched) when a recipe is loaded into BeerTools?

I'd personally also use this to store water treatment information from Bru'n'water as well. (You could perhaps add an add attachment option in the interface to save arbitrary other documents in the recipe file — people might find it handy for adding photographs as well as spreadsheets, though that might quickly make the XML unwieldy and be better to suited to an XML in archive type format.)

At the present time the ability to store a small amount of my own valid XML in the file would be perfectly fine for my purposes, recognising of course that if I write invalid XML and BeerTools fails to load a recipe that's my fault!

Cheers,
James
doctorjames
Light Lager
Light Lager
 
Posts: 12
Joined: Tue Nov 27, 2012 4:01 pm

Re: Writing custom XML namespace to recipe

Postby jeff » Mon Jul 21, 2014 9:27 am

User avatar
jeff
Imperial Stout
Imperial Stout
 
Posts: 1502
Joined: Sun Jan 09, 2000 9:16 pm
Location: Hollywood, SC

Re: Writing custom XML namespace to recipe

Postby doctorjames » Mon Jul 21, 2014 10:24 am

That's perfect! Thanks a lot.

James
doctorjames
Light Lager
Light Lager
 
Posts: 12
Joined: Tue Nov 27, 2012 4:01 pm


Return to BeerTools Pro Feature Requests

Who is online

Users browsing this forum: No registered users and 2 guests

cron