Code Monkey home page Code Monkey logo

recipe's Introduction

Recipe

Library to create well structured brew recipes for brewman. At the moment only one external source is implemented.

  • M3: maische-malz-und-mehr.de

M3

Only normal recipies supported. Not scaled recipies on M3 because they change the type of values so the parser is confused. Use the internal scale to change the water or the yield.

m3c

Converter for M3 recipes into brewman format.

m3d - maischemalzundmehr crawler

Get all recipes from m3 and convert it to brewman recipe json format. If you have downloaded recipes before they will be skipped if they are in the same dir.

Broken json

  • Parsing Amount error: Hopfen_VWH_1_Menge strconv.ParseFloat: parsing " 90": invalid syntax
  • json: invalid use of ,string struct tag, trying to unmarshal "" into float64
  • Rest value is empty: Infusion_Rastzeit4
  • Parsing Amount error: Infusion_Rastzeit2 strconv.Atoi: parsing "7.5": invalid syntax

Notices

Elasticsearch Stuff

insert into recipes-m3 index. change your user:password arg

curl --user elastic:changeme -XPOST http://node1:9200/recipes-m3/doc -H "Content-Type: application/json" -d @400_Meraner_Weizen.json
for i in $(ls):; do curl --user elastic:changeme -XPOST http://node1:9200/recipes-m3/doc -H "Content-Type: application/json" -d @$i; done

#or with bulk
PUT hockey/_bulk?refresh
{"index":{"_id":1}}
{"first":"johnny","last":"gaudreau","goals":[9,27,1],"assists":[17,46,0],"gp":[26,82,1],"born":"1993/08/13"}
{"index":{"_id":2}}

Found a lot of interesting misspelled stuff in recipes. So this will be corrected. Then convert the Data like: "Pilsener" and "Pilsener Malz" zu "Pilsener" in mapping from m3 to recipe struct

  • convert Pilsner Malz, Pilsner, Pilsener, Pilsenermalz, "Pilsenermalz, hell" to Pilsener Malz with data pipelines in es
  • Pale Ale, Pale ale Malz, Best Pale Ale Malz-> Pale Ale Malz
  • Münchener, Münchner Malz -> Münchener Malz
  • Wiener, Wienermalz -> Wiener Malz
  • Weizenmalz hell, "Weizenmalz, hell", Weizenmalz Hell -> Weizenmalz
  • Carahell, CaraHell, Cara Hell
  • CaraMünch II, Cara II
  • CaraAmber, Cara Amber
  • Amber Malz, Amber Malt
  • Best Röstmalz -> Röstmalz
  • Best Red X -> Red X

find duplicates with elastic search and remove them: elastic.co/de/blog/how-to-find-and-remove-duplicate-documents-in-elasticsearch

Calculations

doc

recipe's People

Contributors

ripx80 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.