BeerSmith™ Home Brewing Forum

BeerSmith Software => Support for v1.4 => Topic started by: UselessBrewing on March 14, 2008, 01:01:20 PM

Title: BeerSmith XML Tags ((Updated))
Post by: UselessBrewing on March 14, 2008, 01:01:20 PM
{Edited} Props to "tgioiosa" for helping with this effort!
I have put together a listing from the templates of the all the various tags available (That I could Find). If I have missed any this would be a great place for them to go!
FYI: From what I have gathered, not all Data types will allow all tags.  In order to use other "Data Types" you will need to prefix the DATATYPE to the TAG. Just to keep things straight I am specifing the "DATATYPE" begining and end IE: <DATATYPE></DATATYPE>

((Updated))I have also attached a new brewsheet that I modified and currently use. It is in "Draft" form. I also added $BITTERNESS_RATIO to the list of confirmed tags. You can find it at the bottom of this post.             Maybe I will get back on this project soon.

I conducted a test and have confirmed that the Following Tags work with the Recipe Data Type.
----------------------------
Purpose          Tag
Actual Alcohol by Vol:   $ABV
Adjust Temp for Equipment:   $EQUIP_ADJUST
Age beer for:   $AGE
Age (In Days)r:   $AGE
Asst Brewer:   $ASST_BREWER
Batch Size:   $DISPLAY_BATCH_SIZE
Bitterness:   $IBU
Bitterness Ratio:   $BITTERNESS_RATIO
Boil Ingredients:   $BOIL_INGREDIENTS
Boil Size:   $DISPLAY_BOIL_SIZE
Boil Time:   $BOIL_TIME
Boil Volume:   $DISPLAY_BOIL_SIZE
Bottling Date:   $BOTTLING_DATE
Brewer:   $BREWER
Brewhouse Efficiency:   $EFFICIENCY
Calories:   $CALORIES
Carbonation Type:   $CARBONATION_TYPE
Carbonation Used:   $CARBONATION_USED
Color Swatch:   $COLOR_SWATCH
((Added 3/28/08)) HEX Color:   $RGB_COLOR
Date:   $DATE
Display Age Temp:   $DISPLAY_AGE_TEMP
Display Batch Size:   $DISPLAY_BATCH_SIZE
Display Carbonation:   $DISPLAY_CARBONATION
Display Primary Temp:   $DISPLAY_PRIMARY_TEMP
Display Secondary Temp:   $DISPLAY_SECONDARY_TEMP
Display Tertiary Temp:   $DISPLAY_TERTIARY_TEMP
Drink and Enjoy!:   $END_DATE
Equipment:   $EQUIPMENT
Est Color:   $EST_COLOR
Est Final Gravity:   $EST_FG
Est Original Gravity:   $EST_OG
Estimated Alcohol by Vol:   $EST_ABV
Estimated pre-boil gravity:   $PRE_BOIL_OG
Ferment Ingredients:   $FERMENT_INGREDIENTS
Final Volume:   $DISPLAY_BATCH_SIZE
For Batch Size:   $BATCH_SIZE
Grain Temperature:   $GRAIN_TEMP
Ingredients:   $INGREDIENTS
Keg/Bottling Temperature:   $DISPLAY_CARB_TEMP
Mash Ingredients :   $MASH_INGREDIENTS
Mash Ingredients :   $MASH_INGREDIENTS
Measured Final Gravity:   $DISPLAY_FG
Measured Original Gravity:   $DISPLAY_OG
Name:   $NAME
Notes:   $NOTES
Prepare for Bottling/Kegging:   $BOTTLING_INGREDIENTS
Pressure/Weight:   $CARBONATION_PRESS
Primary Age:   $PRIMARY_AGE
Primary fermentation:   $PRIMARY_DATE
Primary Ingredients:   $PRIMARY_INGREDIENTS
Recipe Price   $PRICE
Secondary Age:   $SECONDARY_AGE
Secondary fermentation:   $SECONDARY_DATE
Secondary Ingredients:   $SECONDARY_INGREDIENTS
Sparge Steps:   $SPARGE_STEPS
Sparge Temperature:   $SPARGE_TEMP
Sparge Water:   $SPARGE_VOLUME
Steep Hops:   $STEEP_HOPS
Steep Ingredients:   $STEEP_INGREDIENTS
Storage Temperature:   $DISPLAY_AGE_TEMP
Style Category   $STYLE.CATEGORY
Style Letter:   $STYLE_LETTER
Style Name:   $STYLE_NAME
Taste Notes:   $TASTE_NOTES
Taste Rating(out of 50):   $TASTE_RATING
Tertiary Age:   $TERTIARY_AGE
Tertiary Fermentation:   $TERTIARY_DATE
Total Grain Weight:   $GRAIN_WEIGHT
Total Grain Weight:   $TOTAL_GRAINS
Total Hops added to boil:   $TOTAL_HOPS
TunTemperature:   $TUN_TEMP
Type:   $TYPE
Volumes of CO2:   $CARBONATION
Water preperation:   $WATER_PREP
Yeast Starter:   $YEAST_STARTERS

----------------------------

In order for the following tags to work in the Recipe Data Type, you will need to prefix the "DATATYPE" to the tag IE: DATATYPE.TAG. Just to keep things straight I am specifing the "DATATYPE" begining and end IE: <DATATYPE></DATATYPE>

Competition Data Type:
<COMPETITION>
Name: $COMPETITION.BREWER
Assistant Brewer: $COMPETITION.ASST_BREWER
Club/Organization: $COMPETITION.CLUB
Address:    $COMPETITION.ADDRESS
Phone: $COMPETITION.PHONE
Email: $COMPETITION.EMAIL
Name of Brew: $COMPETITION.NAME
Entry Category: $COMPETITION.STYLE_NAME
Type: $COMPETITION.TYPE
Category Number: $COMPETITION.STYLE_NUMBER
Subcategory Letter: $COMPETITION.STYLE_LETTER
Starting Gravity: $COMPETITION.DISPLAY_OG    
Batch Size: $COMPETITION.DISPLAY_BATCH_SIZE
Final Gravity: $COMPETITION.DISPLAY_FG    
Mash Profile: $COMPETITION.MASH_NAME
Hops Used: $COMPETITION.HOPS
Fermentables: $COMPETITION.FERMENTABLES
Misc: $COMPETITION.MISCS
Yeast: $COMPETITION.YEASTS
Category: $COMPETITION.STYLE
</COMPETITION>

Style Data Type
<STYLES>
Style Name: $STYLE_NAME
Style Category: $STYLE.CATEGORY
Type: $STYLE.TYPE
Category Number: $STYLE.CATEGORY_NUMBER
Style Letter: $STYLE.STYLE_LETTER
Original Gravity: $STYLE.OG_RANGE
Color: $STYLE.COLOR_RANGE
Final Gravity: $STYLE.FG_RANGE    
Bitterness: $STYLE.IBU_RANGE
Carbonation: $STYLE.CARB_RANGE
Alcohol by Volume: $STYLE.ABV_RANGE
Description: $STYLE.NOTES
Profile: $STYLE.PROFILE
Ingredients: $STYLE.INGREDIENTS
Examples: $STYLE.EXAMPLES
Style Guide: $STYLE.STYLE_GUIDE
</STYLES>

Equipment Data Type
<EQUIPMENT>
Equipment Name: $EQUIPMENT.NAME
Batch Size: $EQUIPMENT.DISPLAY_BATCH_SIZE
Mash Volume: $EQUIPMENT.DISPLAY_TUN_VOLUME
Mash Volume: $EQUIPMENT.TUN_VOLUME
Boil Volume: $EQUIPMENT.DISPLAY_BOIL_SIZE
Calc Boil Volume: $EQUIPMENT.CALC_BOIL_VOLUME
Mash Tun Weight: $EQUIPMENT.DISPLAY_TUN_WEIGHT
Mash Tun Weight: $EQUIPMENT.TUN_WEIGHT
Evaporation Rate: $EQUIPMENT.EVAP_RATE %    
Mash Tun Specific Heat : $EQUIPMENT.TUN_SPECIFIC_HEAT cal/g-deg C
Boil Time: $EQUIPMENT.BOIL_TIME    
Mash Tun Deadspace: $EQUIPMENT.DISPLAY_LAUTER_DEADSPACE
Mash Tun Deadspace: $EQUIPMENT.LAUTER_DEADSPACE
Mash Tun Deadspace: $EQUIPMENT.LAUTER_DEADSPACE
Top-up for Boiler: $EQUIPMENT.DISPLAY_TOP_UP_KETTLE
Top-up for Boiler: $EQUIPMENT.TOP_UP_KETTLE
Equip Hop Utilization: $EQUIPMENT.HOP_UTILIZATION %
Losses to Trub/Chiller: $EQUIPMENT.DISPLAY_TRUB_CHILLER_LOSS
Losses to Trub/Chiller: $EQUIPMENT.TRUB_CHILLER_LOSS
Cooling Loss (%): $EQUIPMENT.COOLING_LOSS_PCT
Top up water for Fermenter: $EQUIPMENT.DISPLAY_TOP_UP_WATER
Top up water for Fermenter: $EQUIPMENT.TOP_UP_WATER
Equipment Notes: $EQUIPMENT.NOTES
</EQUIPMENT>

Mash Data Type
<MASH>
Mash Name: $MASH.NAME
Grain Weight Basis: $MASH.GRAIN_WEIGHT
Grain Temperature: $MASH.DISPLAY_GRAIN_TEMP
Tun Temperature: $MASH.DISPLAY_TUN_TEMP
Batch Sparge: $MASH.BATCH_SPARGE_YESNO
Batch Sparge Percent: $MASH.BATCH_SPARGE_PCT
Sparge Temperature: $MASH.DISPLAY_SPARGE_TEMP
PH: $MASH.PH
Mash Steps: $MASH.MASH_STEPS
Notes: $MASH.NOTES
</MASH>

Hope this helps!

Thanks for the great software Brad

Preston
Title: Re: BeerSmith XML Tags
Post by: BeerSmith on March 14, 2008, 10:13:09 PM
Thats a very good list - thanks!

Brad
Title: Re: BeerSmith XML Tags
Post by: UselessBrewing on March 17, 2008, 09:39:46 AM
Did I miss any?

Thanks

Preston
Title: Re: BeerSmith XML Tags
Post by: tgioiosa on March 25, 2008, 12:15:02 PM
Nice job, these are very informative, but I have two questions:

1. Many of these tags do not display anything (just the tag name itself displays in reports). How are they used in a report? Or are they not working?

2. How can you place a "dollar sign" in a report? For example, it would be nice to show recipe cost as "Recipe Cost: $5.00", but it seems as though
    a single '$' symbol in the template file doesn't show up in the report.

-Tony

Title: Re: BeerSmith XML Tags
Post by: UselessBrewing on March 25, 2008, 12:37:54 PM
Nice job, these are very informative, but I have two questions:
1. Many of these tags do not display anything (just the tag name itself displays in reports). How are they used in a report? Or are they not working?
2. How can you place a "dollar sign" in a report? For example, it would be nice to show recipe cost as "Recipe Cost: $5.00", but it seems as though
    a single '$' symbol in the template file doesn't show up in the report.
-Tony
Hi Tony I started a new thread ( http://www.beersmith.com/forum/index.php?topic=1471.0 ) that addresses part of question number 1. The "$" is the marker for the software to get data. The Data Types are the reason that some will show up and some will not. Until we have a Data Type that encompasses all the tags this is what we are relegated to. You may note that I have modified the list above to show which tags work with the recipe data type.

As far as question number 2 is concerned. I have been putting anything that wont auto-populate into the Notes field and then using tag $NOTES to show this information.

Cheers

Preston
Title: Re: BeerSmith XML Tags ((Updated))
Post by: rokgoblin on March 26, 2008, 01:16:53 AM
I have put together a listing from the templates of the all the various tags available (That I could Find). If I have missed any this would be a great place for them to go!
FYI: From what I have gathered, not all Data types will allow all tags. It would be nice if there was a Data Type that encompassed every tag available. Then we truly could make our own reports! ;) I have attached my brew sheet that I modified and currently used. You can find it at the bottom of this post.

Thanks for the list Preston and thanks for the brew sheet.  Maybe I will start to tweak and play around with the reports myself but I am not really a coder.

And yes, thanks to Brad for the awesome software.

Peace,

G!
Title: Re: BeerSmith XML Tags ((Updated))
Post by: tgioiosa on March 26, 2008, 03:29:04 PM
Hi Preston,

Thanks for the feedback.  Here is something I can contribute. After playing around I found that if you prefix some of these "other" tags you can get the data to show up in reports.

These seem to work in the Recipe Reports.

Here is what I came up with:

Style Data Types:   (assumes <STYLE> type)

Style Category         $STYLE.CATEGORY
Style Number      $STYLE.CATEGORY_NUMBER
Style Letter:         $STYLE.STYLE_LETTER
Style Guide:      $STYLE.STYLE_GUIDE
Style Name:         $STYLE_NAME
Style Type:         $STYLE.TYPE
Style OG Range:         $STYLE.OG_RANGE
Style FG Range:         $STYLE.FG_RANGE
Style IBU Range:      $STYLE.IBU_RANGE
Style Carb Range:      $STYLE.CARB_RANGE
Style ABV Range:      $STYLE.ABV_RANGE
Style Color Range:      $STYLE.COLOR_RANGE

Equipment Data Types:  (assumes <EQUIPMENT> type)

Losses to Trub/Chiller:      $EQUIPMENT.DISPLAY_TRUB_CHILLER_LOSS
Mash Tun Deadspace:      $EQUIPMENT.DISPLAY_LAUTER_DEADSPACE
Mash Tun Weight:         $EQUIPMENT.DISPLAY_TUN_WEIGHT
Mash Volume:             $EQUIPMENT.DISPLAY_TUN_VOLUME
Top up water for Fermenter:        $EQUIPMENT.DISPLAY_TOP_UP_WATER
Top-up for Boiler:             $EQUIPMENT.DISPLAY_TOP_UP_KETTLE
Losses to Trub/Chiller:      $EQUIPMENT.TRUB_CHILLER_LOSS
Mash Tun Deadspace:      $EQUIPMENT.LAUTER_DEADSPACE
Mash Tun Weight:         $EQUIPMENT.TUN_WEIGHT
Mash Volume:               $EQUIPMENT.TUN_VOLUME
Top up water for Fermenter:        $EQUIPMENT.TOP_UP_WATER
Top-up for Boiler:                   $EQUIPMENT.TOP_UP_KETTLE
MashTun Sp Heat (cal/g-degC):     $EQUIPMENT.TUN_SPECIFIC_HEAT
Evaporation Rate %:                $EQUIPMENT.EVAP_RATE
Boil Time:                   $EQUIPMENT.BOIL_TIME
Calc Boil Volume:            $EQUIPMENT.CALC_BOIL_VOLUME
Mash Tun Deadspace:      $EQUIPMENT.LAUTER_DEADSPACE
Equip Hop Utilization %:      $EQUIPMENT.HOP_UTILIZATION
Cooling Loss (%):         $EQUIPMENT.COOLING_LOSS_PCT
Equipment Name:      $EQUIPMENT.NAME
Equipment Notes:      $EQUIPMENT.NOTES


Cheers,  :)
Tony
Title: Re: BeerSmith XML Tags ((Updated))
Post by: UselessBrewing on March 27, 2008, 08:00:30 AM
Hi Preston,
Thanks for the feedback.  Here is something I can contribute. After playing around I found that if you prefix some of these "other" tags you can get the data to show up in reports.
These seem to work in the Recipe Reports.
Here is what I came up with:
Style Data Types:   (assumes <STYLE> type)
Equipment Data Types:  (assumes <EQUIPMENT> type)
Cheers,  :)
Tony
That was exactly what I was looking for!

So you tell the template the data type is by prefixing the tag with $DATATYPE.tag and it should work.

I will play with this and see what I can come up with. It makes perfect sense now!

I will post what I put together

Preston
Title: Re: BeerSmith XML Tags ((Updated))
Post by: rokgoblin on March 27, 2008, 10:56:07 AM
I also like to "Geek" around with code and see what I can find / learn / break / fix along the way.  I am by no means a coder, but if you guys want me to play with something to test and debug and provide feedback just let me know.  I dabbled a little bit in modifying other peoples XML code (World of Warcraft GUI mods) to customize my game interface, so I might actually be able to do some good.

Peace,

G!
Title: Re: BeerSmith XML Tags ((Updated))
Post by: UselessBrewing on March 27, 2008, 11:40:24 AM
I am still working on the following. I have gone through the BeerXML.doc and still have some research/testing to do with these.

*******CHECK THESE **********


<FERMENTABLES>Fermentables
<FERMENTABLE>
Grain Name: $FERMENTABLE_NAME
Grain Origin: $FERMENTABLE.ORIGIN
Supplier: $FERMENTABLE.SUPPLIER
Yield: $FERMENTABLE.YIELD %
Type: $FERMENTABLE.TYPE
Potential: $FERMENTABLE.POTENTIAL
Color: $FERMENTABLE.COLOR
Coarse Fine Diff: $FERMENTABLE.COARSE_FINE_DIFF %
Max In Batch: $FERMENTABLE.MAX_IN_BATCH %
Moisture: $FERMENTABLE.MOISTURE
Must Mash: $FERMENTABLE.RECOMMEND_MASH
Diastatic Power: $FERMENTABLE.DIASTATIC_POWER
Protein: $FERMENTABLE.PROTEIN
Inventory: $FERMENTABLE.INVENTORY
IBU: $FERMENTABLE.IBU_GAL_PER_LB
Notes: $FERMENTABLE.NOTES
</FERMENTABLE>
</FERMENTABLES>

<HOPS>Hops
<HOP>
Hops Name: $HOP.NAME
Hops Origin: $HOP.ORIGIN
Alpha: $HOP.ALPHA %
Type: $HOP.TYPE
Beta: $HOP.BETA %
Form: $HOP.FORM
HSI: $HOP.HSI % per 6 months
Inventory: $HOP.INVENTORY
Notes: $HOP.NOTES
</HOP>
</HOPS>

<MISCS>MISC
<MISC>
Misc Name: $MISC.NAME
Misc Type: $MISC.TYPE
Use For: $MISC.USE_FOR
Amount: $MISC.DISPLAY_AMOUNT
For Batch Size: $MISC.BATCH_SIZE
Add To: $MISC.USE
Time: $MISC.DISPLAY_TIME
Inventory: $MISC.INVENTORY
Notes: $MISC.NOTES
</MISC>
</MISCS>

<NOTES>NOTE
<NOTE>
Note Name: $NOTE.NAME
Note Description: $NOTE.DESCRIPTION
Note Type: $NOTE.TYPE
Priority: $NOTE.PRIORITY
Start Date: $NOTE.START_DATE
End Date: $NOTE.END_DATE
Notes: $NOTE.NOTES
</NOTE>
</NOTES>

<WATERS>WATER
<WATER>
Water Name: $WATER.NAME
Calcium: $WATER.CALCIUM ppm
Sulfate: $WATER.SULFATE ppm
Magnesium: $WATER.MAGNESIUM ppm
Chloride: $WATER.CHLORIDE ppm
Sodium: $WATER.ODIUM ppm
Bicarbonate: $WATER.BICARBONATE ppm
PH: $WATER.PH    
Gypsum: $WATER.GYPSUM
Baking Soda: $WATER.BAKE
Salt: $WATER.SALT
Chalk: $WATER.CHALK
Epsom Salt: $WATER.EPSOM
Calcium Chloride: $WATER.CALC
Notes: $WATER.NOTES
</WATER>
</WATERS>

<YEASTS>YEAST
<YEAST>
Yeast Name: $YEAST.NAME
Yeast Laboratory: $YEAST.LABORATORY
Yeast Product ID: $YEAST.PRODUCT_ID
Type: $YEAST.TYPE
Form: $YEAST.FORM
Attenuation: $YEAST.ATTENUATION %
Min Temperature: $YEAST.DISP_MIN_TEMP
Flocculation: $YEAST.FLOCCULATION
Max Temperature: $YEAST.DISP_MAX_TEMP
Size: $YEAST.DISPLAY_AMOUNT
Times Cultured: $YEAST.TIMES_CULTURED
Add To Secondary: $YEAST.ADD_TO_SECONDARY
Max Reuse: $YEAST.MAX_REUSE
Inventory: $YEAST.INVENTORY    
Best For: $YEAST.BEST_FOR
Notes: $YEAST.NOTES
</YEAST>
</YEASTS>
Title: Re: BeerSmith XML Tags ((Updated))
Post by: tgioiosa on March 27, 2008, 02:44:46 PM
Hi Preston,

I have tried some of those last datatypes and tags in your latest post, like FERMENTABLES, HOPS, etc.  I couldn't get any success with them in a Recipe Report.

For example, <HOPS></HOPS> can contain several individual <HOP></HOP> datatypes, and the tags such as TYPE, BETA%, ALPHA%, etc. are tied to these <HOP></HOP> pairs, not the encompassing <HOPS></HOPS> datatype.  Question is, how do we enumerate through the <HOPS></HOPS> datatype to get to reference the individual <HOP></HOP> datatypes?

I think it's a similar situation for FERMENTABLES, MISCS, WATERS, and YEASTS. We need to somehow pinpoint the individual entities in those groups in order to get anything to show in a report.

Let us know if you have any success, as I haven't been able to get these to show up.

Cheers, :)
Tony
Title: Re: BeerSmith XML Tags ((Updated))
Post by: UselessBrewing on March 28, 2008, 08:47:28 AM
Hi Preston,
I have tried some of those last datatypes and tags in your latest post, like FERMENTABLES, HOPS, etc.  I couldn't get any success with them in a Recipe Report.
For example, <HOPS></HOPS> can contain several individual <HOP></HOP> datatypes, and the tags such as TYPE, BETA%, ALPHA%, etc. are tied to these <HOP></HOP> pairs, not the encompassing <HOPS></HOPS> datatype.  Question is, how do we enumerate through the <HOPS></HOPS> datatype to get to reference the individual <HOP></HOP> datatypes?
I think it's a similar situation for FERMENTABLES, MISCS, WATERS, and YEASTS. We need to somehow pinpoint the individual entities in those groups in order to get anything to show in a report.
Let us know if you have any success, as I haven't been able to get these to show up.
Cheers, :)
Tony
We are on the same page and will need guidance from Mr BeerSmith himself (Brad) on this one.

I have tried using both data types in an effort to get the tag to work. I have also changed the referencing data type and combinations their-in to no avail.

On a side note: (Off Topic)
In the process of doing all of this I found that BeerSmith report templates will work with CSS and have a preliminary BrewSheet that has the capability of referencing other templates. I am playing around with this right now and have posted my first draft with this post. There are some pretty cool stuff we can do with this if I can get it to work, like link the brewsheet with my Keg Label's, Bottle Label's, or Whatever. I will let you know what I find.
Title: Re: BeerSmith XML Tags ((Updated))
Post by: UselessBrewing on March 28, 2008, 08:52:51 AM
I also like to "Geek" around with code and see what I can find / learn / break / fix along the way.  I am by no means a coder, but if you guys want me to play with something to test and debug and provide feedback just let me know.  I dabbled a little bit in modifying other peoples XML code (World of Warcraft GUI mods) to customize my game interface, so I might actually be able to do some good.
Peace,
G!

Dig In! Any help is Appreciated!

Thanks

Preston
Title: Re: BeerSmith XML Tags ((Updated))
Post by: erikborg on April 22, 2008, 01:26:57 PM
Hi

Good job you've done.

I have som problem with the $RGB_COLOR tag. It displays 6 hex digits, but I would like it to display three bloks of decimal numbers just to type in the RGB-field in most programs. I.e. $RGB_COLOR #b66333 should display 182.99.51.

Any suggestions?

Erik

Title: Re: BeerSmith XML Tags ((Updated))
Post by: BeerSmith on April 22, 2008, 09:56:38 PM
Erik,
  No at the moment, the hex version is the only one I've implemented, as it works in HTML.

  I could add another version in a future update - would it be the decimal RGB numbers separated by a decimal point??

Brad
Title: Re: BeerSmith XML Tags ((Updated))
Post by: erikborg on April 23, 2008, 02:49:18 PM
That would be great, Brad.

Decimal number seperated with a decimal point is fine.

Until then I'll convert between hex and dec, no problem. Decimal notation is just easier.

Erik
Title: Re: BeerSmith XML Tags ((Updated))
Post by: BeerSmith on August 26, 2008, 10:33:02 PM
Here's a few more for recipes I found:
  $BITTERNESS_RATIO - shows the BU:GU ratio (per Ray Daniels book)
  $TOTAL_HOPS - shows the total amount of hops in the recipe
  $TOTAL_GRAINS - total grains for the recipe.

Cheers,
Brad
Title: Re: BeerSmith XML Tags ((Updated))
Post by: UselessBrewing on August 27, 2008, 06:55:51 AM
I added $BITTERNESS_RATIO to the confirmed working tags. However I did not update the Brewsheet. If you would like you can edit line 122 with ( <td width="52%">Bitterness Ratio: $BITTERNESS_RATIO</td>) and then it will show up on yours.

Maybe I will get back on this project at some point in the near future.

Cheers

Preston
Title: Re: BeerSmith XML Tags ((Updated))
Post by: uwjester on February 25, 2009, 04:44:10 PM
I have a slightly different problem. I'd like to add custom images to different reports. So if I have a recipe named Mentat Marzen and want to add the image Mentat Marzen.jpg in the html, how can I do that? I have tried a number of different lines such as the following.

src="./images/$NAME.jpg"
src="./images/${NAME}.jpg"
src="./images/\$NAME.jpg"

I have also tried a number of different quote options with no luck. I can get src="./images/ $NAME .jpg" to work, but that line requires post processing to remove the spaces. Is there a way to get one of the beersmith variables into a string?

Thanks,

A very happy beersmith user.
Title: Re: BeerSmith XML Tags ((Updated))
Post by: Henway on February 26, 2009, 10:58:47 AM
Dune geek    ;D
Title: Re: BeerSmith XML Tags ((Updated))
Post by: uwjester on February 26, 2009, 11:17:15 AM
Yeah, I name most of my brews in some kind of Dune way. Mentat Marzen, Golden Path Hefeweizen, Muad Dib Spice Ale, Tears of the Maker ESB, etc. Lots of neat graphics that I'd like to get into the reports.
Title: Re: BeerSmith XML Tags ((Updated))
Post by: bananskib on July 09, 2009, 03:21:06 PM
Hi,

is there a way to get the recipe in xml-format in a tag? Something like $XML, and all elements are returned. <RECIPE .... </RECIPE>
That way, I can parse it through some xsl, and do my own thing.

Regards,
Robert
Title: Re: BeerSmith XML Tags ((Updated))
Post by: UselessBrewing on July 10, 2009, 08:07:39 AM
Go to the "My Recipes" section where your recipes are. Highlight a recipe and use the Drop down box, choose BeerXML.

Cheers
Preston
Title: Re: BeerSmith XML Tags ((Updated))
Post by: bananskib on July 12, 2009, 12:10:45 PM
Hi,
   true, that will only give me the XML. But I would like to use the recipe-xml in a ".htm"-report.
Is there a way to get all (and only) the recipe data - without any generated html?

For instance $FERMENTABLES does not just give you the data, it generates a html table with four columns and x rows.

Regards,
Robert
Title: Re: BeerSmith XML Tags ((Updated))
Post by: UselessBrewing on July 13, 2009, 07:13:08 AM
I don't believe so. The Recipe data is stored in the Recipe.bsm which is referenced by BeerSmith when you open a recipe.

Cheers
Preston
Title: Re: BeerSmith XML Tags ((Updated))
Post by: Mij on August 15, 2009, 05:38:33 AM
I was looking for the var that represents "Effec into Boiler" and was wondering if that was just a calculation evaluated whenever you are in the "Brewhouse Effec" screen.  I don't see anything like it in the xml output...

Title: Re: BeerSmith XML Tags ((Updated))
Post by: UselessBrewing on August 17, 2009, 02:16:32 PM
I'm pretty sure this is a calculation and not a variable. Maybe Brad could chime in on this one.

Cheers
Preston
Title: Re: BeerSmith XML Tags ((Updated))
Post by: BeerSmith on August 17, 2009, 10:17:26 PM
Yes,
  I don't think I have added that one yet - sorry!

Brad
Title: Re: BeerSmith XML Tags ((Updated))
Post by: Mij on August 18, 2009, 06:30:07 AM
Thanks for the answer!

You know, not a big deal in any way - I just happen to be "testing" batches to try and get a consistent rate/ratio and that value has some importance to me at the moment.  In another month, it won't :)

Thanks again.
Title: Re: BeerSmith XML Tags ((Updated))
Post by: denimglen on March 01, 2011, 11:39:22 PM
Hi Preston,

I have tried some of those last datatypes and tags in your latest post, like FERMENTABLES, HOPS, etc.  I couldn't get any success with them in a Recipe Report.

For example, <HOPS></HOPS> can contain several individual <HOP></HOP> datatypes, and the tags such as TYPE, BETA%, ALPHA%, etc. are tied to these <HOP></HOP> pairs, not the encompassing <HOPS></HOPS> datatype.  Question is, how do we enumerate through the <HOPS></HOPS> datatype to get to reference the individual <HOP></HOP> datatypes?

I think it's a similar situation for FERMENTABLES, MISCS, WATERS, and YEASTS. We need to somehow pinpoint the individual entities in those groups in order to get anything to show in a report.

Let us know if you have any success, as I haven't been able to get these to show up.

Cheers, :)
Tony

Just wondering if there's been an update on this?

I'm trying to output the water profile into my brewsheet.

Cheers :-)
Title: Re: BeerSmith XML Tags ((Updated))
Post by: BillN on September 30, 2011, 10:12:22 PM
Hey guys....any body know the tag in 2.0 for mash efficiency - not brewhouse eff.
Thanks!
Title: Re: BeerSmith XML Tags ((Updated))
Post by: costadelrica on March 18, 2014, 04:27:18 PM
I was looking for it, I will play with this and see what I can come up with. It makes perfect sense now! I will post what I put together i hope soon :D
Title: Re: BeerSmith XML Tags ((Updated))
Post by: maxcloutier on August 15, 2015, 03:22:55 PM
Sorry for the necro.

I am working on a custom brewsheet and I am unable to print the "first wort hops" other than with  $INGREDIENTS
I like having $MASH_INGREDIENTS + $STEEP_INGREDIENTS  separated from $BOIL_INGREDIENTS + $STEEP_INGREDIENTS + $STEEP_HOPS.

I have found $FIRST_WORT_HOPS in Brewsheet.htm, but it doesn't print anything.

Any thoughts?
Title: Re: BeerSmith XML Tags ((Updated))
Post by: msevland on October 13, 2015, 02:15:54 AM
I'd like to add custom images to different reports....
If you use put the image extention in asst brewer in beerSmith, this will work.
src=$NAME$ASST_BREWER
... but it would be better if someone can tell me how to make a custom variabel inside the xml document. Something like...
<xsl:variable name="$image_extention" select="'.jpg'" />
<xsl:variable name="$image_path" select="'./images/'" />
Then the code could look like this
src=$image_path$NAME$image_extention
Title: Re: BeerSmith XML Tags ((Updated))
Post by: kcbeersnob on April 01, 2017, 12:55:17 PM
What's the tag for Mash Volume Needed?
Title: Re: BeerSmith XML Tags ((Updated))
Post by: Zythonaute on January 18, 2021, 07:34:31 AM
Hi !!

Sorry to ask but in the basic report there is a tag that is not in this list : $MASH_ACID_TEXT

It would be very usefull for me to use it but it seems that it doesn't work because whatever phosporic acid I add in my recipe, it still indicate "None"

Could you check Brad ?

Thank you so much !

Andy
Title: Re: BeerSmith XML Tags ((Updated))
Post by: Waldner on July 13, 2021, 06:50:54 AM
Where is the "Mash Temp" tag in all of these? I see many other mash tags but don't see one for mash temp. Is it called something else perhaps? Thanks
Title: Re: BeerSmith XML Tags ((Updated))
Post by: GigaFemto on July 13, 2021, 10:44:59 AM
There is no such thing as "THE" Mash Temperature. The Mash tag contains a series of Mash Steps, and each of those has its own temperature. You can use the tag for mash steps to get a table of the steps, but there is no access to the internals of the table in a custom report.

--GF