kleiner-brauhelfer/kleiner-brauhelfer-2

Rohstoffe XML-Import (Enhancement)

Opened this issue · 4 comments

Hallo,

Zunächst einmal vielen Dank, dass Sie KBH erstellt haben.
Deutsch ist nicht meine Muttersprache, aber ich denke, dass es mit Google Translate ziemlich gut funktioniert. Entschuldigung für seltsame Sätze, die Google in der Übersetzung erfunden hat ;-)

Ist es möglich, eine Importfunktion für Rohstoffe im BEER-XML-Format hinzuzufügen?
Im Internet gibt es eine Reihe von XML-Dateien, die Malz- oder Hefedaten enthalten. Zum Beispiel: De Swaen mit den Malts der niederländischen Mälzerei De Swaen.
Es wäre schön, wenn solche XML-Dateien importiert werden könnten, was auch den Wechsel von meinem alten Paket zu KBH etwas erleichtert.

Vielen Dank und "Keep up the good work".

Grüße,
Ed.

I made some simple python scripts to import rohstoffe from 'Brouhulp'.A package widely used in The Netherlands.
https://github.com/dystechnic/kbh_import

Hi, import of BeerXML as used in Brewersfriend.com works fine in new versions from v 2.2.x.

Edit: Thanks for the data of The Swaen. Best to the Netherlands, Radulph

Thanks for the python code. This will help to implement it similarly in the KBH.

The XML is not 100% BeerXML standard (http://www.beerxml.com/beerxml.htm).
For example DI_pH does'nt exist in the standard. I can still take the value.

But I don't like the color conversion they are doing. In the XML you have

  <FERMENTABLE>
    <NAME>Swaen Melany</NAME>
    <COLOR>26.6780865725997</COLOR>
    <DISPLAY_COLOR>70 EBC</DISPLAY_COLOR>
  </FERMENTABLE>

Where COLOR is a SRM value. The conversion from SRM to EBC is "ebc = srm * 1.97" which gives here "26.7*1.97=52.6ebc" in contrast to 70 EBC.

The standard is to use COLOR. DISPLAY_COLOR is an extention. So I prefer to take COLOR.