Author Topic: BeerSmith XML Tags ((Updated))  (Read 62162 times)

Offline erikborg

  • BeerSmith Apprentice Brewer
  • **
  • Posts: 4
Re: BeerSmith XML Tags ((Updated))
« Reply #15 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

Offline BeerSmith

  • Brewer, Author, Patriot
  • BeerSmith Administrator
  • BeerSmith Grandmaster Brewer
  • *****
  • Posts: 5308
  • BeerSmith - take the guesswork out of brewing!
    • BeerSmith
Re: BeerSmith XML Tags ((Updated))
« Reply #16 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
Get a free trial of BeerSmith 3 here

Offline UselessBrewing

  • BeerSmith Grandmaster Brewer
  • *****
  • Posts: 1115
  • Useless Brewing
    • Useless Brewing
Re: BeerSmith XML Tags ((Updated))
« Reply #17 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
The woodpecker pecks, Not to annoy, But to survive!

Offline uwjester

  • BeerSmith Apprentice Brewer
  • **
  • Posts: 3
Re: BeerSmith XML Tags ((Updated))
« Reply #18 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.

Offline Henway

  • BeerSmith Brewer
  • ***
  • Posts: 36
Re: BeerSmith XML Tags ((Updated))
« Reply #19 on: February 26, 2009, 10:58:47 AM »
Dune geek    ;D

Offline uwjester

  • BeerSmith Apprentice Brewer
  • **
  • Posts: 3
Re: BeerSmith XML Tags ((Updated))
« Reply #20 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.

Offline bananskib

  • BeerSmith Apprentice Brewer
  • **
  • Posts: 4
Re: BeerSmith XML Tags ((Updated))
« Reply #21 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
« Last Edit: July 09, 2009, 03:22:48 PM by bananskib »

Offline UselessBrewing

  • BeerSmith Grandmaster Brewer
  • *****
  • Posts: 1115
  • Useless Brewing
    • Useless Brewing
Re: BeerSmith XML Tags ((Updated))
« Reply #22 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
The woodpecker pecks, Not to annoy, But to survive!

Offline bananskib

  • BeerSmith Apprentice Brewer
  • **
  • Posts: 4
Re: BeerSmith XML Tags ((Updated))
« Reply #23 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

Offline UselessBrewing

  • BeerSmith Grandmaster Brewer
  • *****
  • Posts: 1115
  • Useless Brewing
    • Useless Brewing
Re: BeerSmith XML Tags ((Updated))
« Reply #24 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
The woodpecker pecks, Not to annoy, But to survive!

Mij

  • Guest
Re: BeerSmith XML Tags ((Updated))
« Reply #25 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...


Offline UselessBrewing

  • BeerSmith Grandmaster Brewer
  • *****
  • Posts: 1115
  • Useless Brewing
    • Useless Brewing
Re: BeerSmith XML Tags ((Updated))
« Reply #26 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
The woodpecker pecks, Not to annoy, But to survive!

Offline BeerSmith

  • Brewer, Author, Patriot
  • BeerSmith Administrator
  • BeerSmith Grandmaster Brewer
  • *****
  • Posts: 5308
  • BeerSmith - take the guesswork out of brewing!
    • BeerSmith
Re: BeerSmith XML Tags ((Updated))
« Reply #27 on: August 17, 2009, 10:17:26 PM »
Yes,
  I don't think I have added that one yet - sorry!

Brad
Get a free trial of BeerSmith 3 here

Mij

  • Guest
Re: BeerSmith XML Tags ((Updated))
« Reply #28 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.

Offline denimglen

  • BeerSmith Apprentice Brewer
  • **
  • Posts: 23
Re: BeerSmith XML Tags ((Updated))
« Reply #29 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 :-)