63°F

Aaron Parecki

  • Articles
  • Notes
  • Photos
  • Day 68: h-recipe Import for BarBot #100DaysOfIndieWeb

    February 26, 2017

    I've been putting the finishing touches on my robot that can mix cocktails over the last few weeks.

    One of the last steps was to build up the recipe database for it. I knew I wanted to have some sort of Microformats h-recipe integration, but this ended up working out better than I had hoped.

    In the "Perfect Drink" iOS app, you can input the list of liquors in your cabinet, and it will show you the recipes you can make with those ingredients. I clicked the "share" button on one of the recipes, and it shared a link to a web page with the recipe.

    https://makeitperfectly.com/drink/recipes/1a1913f6-6ba2-11e5-a3ed-f372faffcfa4

    I noticed that this web page happens to have Microformats 2 h-recipe markup in it! This meant I had a very quick way of getting these recipes into BarBot's recipe database, by parsing the Microformats!

    I created an interface for parsing the recipe from a URL that has h-recipe markup and mapping it to a BarBot recipe. The interface is ugly, but it works!

    When I want to add a recipe, the code parses the h-recipe, finds the name, photo and list of ingredients. It then presents me with an interface to map the list of ingredients in the recipe to the ingredients I have in my liquor cabinet. In this example, you can see I'm substituting Triple Sec for Cointreau.

    This ends up being the quickest way to add recipes to BarBot's database!

    Portland, Oregon
    Sun, Feb 26, 2017 10:35pm -08:00 #100daysofindieweb #barbot #h-recipe #recipe
    1 like 1 reply 2 mentions
    • booleansandbooze@gmail.com
    • Aaron Parecki aaronparecki.com
      This is fantastic! Looking forward to importing some of these into BarBot! https://aaronparecki.com/2017/02/26/18/day-68-barbot-recipes
      Mon, Jan 29, 2018 12:49pm -08:00

    Other Mentions

    • Aaron Parecki aaronparecki.com
      My 2017 Year in Review
      Thu, Jan 4, 2018 2:40pm -08:00
    • 100 Days of IndieWeb aaronparecki.com/tag/100daysofindieweb
      Day 68: h-recipe Import for BarBot #100DaysOfIndieWeb: aaronparecki.com/2017/02/26/18/…

      Mon, Feb 27, 2017 6:36am +00:00 (via brid-gy.appspot.com)
Posted in /articles using quill.p3k.io

Hi, I'm Aaron Parecki, Director of Identity Standards at Okta, and co-founder of IndieWebCamp. I maintain oauth.net, write and consult about OAuth, and participate in the OAuth Working Group at the IETF. I also help people learn about video production and livestreaming. (detailed bio)

I've been tracking my location since 2008 and I wrote 100 songs in 100 days. I've spoken at conferences around the world about owning your data, OAuth, quantified self, and explained why R is a vowel. Read more.

  • Director of Identity Standards at Okta
  • IndieWebCamp Founder
  • OAuth WG Editor
  • OpenID Board Member

  • 🎥 YouTube Tutorials and Reviews
  • 🏠 We're building a triplex!
  • ⭐️ Life Stack
  • ⚙️ Home Automation
  • All
  • Articles
  • Bookmarks
  • Notes
  • Photos
  • Replies
  • Reviews
  • Trips
  • Videos
  • Contact
© 1999-2025 by Aaron Parecki. Powered by p3k. This site supports Webmention.
Except where otherwise noted, text content on this site is licensed under a Creative Commons Attribution 3.0 License.
IndieWebCamp Microformats Webmention W3C HTML5 Creative Commons
WeChat ID
aaronpk_tv