0.0
No commit activity in last 3 years
No release in over 3 years
Provides a library to access your Picobrew data
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Development

~> 1.15
~> 10.0

Runtime

~> 0.15
~> 1.8
 Project Readme

Picobrew::Api

Back in 2013, Picobrew launched a Kickstarter for the Zymatic, and advertised that they'd open source the firmware and provide web APIs. I haven't seen any indication they plan on following through with that pledge despite many requests from their customers, so this project attempts to begin to fill that void.

The first version of this api provides some simple getters for various data from your Picobrew account - recipes, sessions, logs, notes, etc.

Installation

Add this line to your application's Gemfile:

gem 'picobrew-api'

And then execute:

$ bundle

Usage

require 'picobrew/api'

picobrew = Picobrew::Api.new('your-username', 'your-password')
recipe = picobrew.get_all_recipes().first
control_program = picobrew.get_recipe_control_program(recipe['GUID'])
session = picobrew.get_sessions_for_recipe(recipe['GUID']).first
session_notes = picobrew.get_session_notes(session['id'])
session_log = picobrew.get_session_log(session['id'])

See my REST api at https://github.com/toddq/pico-proxy for more example usage, or just use that if it's all you need.

Future

  • Post notes to session
  • Create/edit recipes
  • Create/edit recipe control programs
  • Document the api

Development

After checking out the repo, run bin/setup to install dependencies. You can also run bin/console for an interactive prompt that will allow you to experiment.

To install this gem onto your local machine, run gem build picobrew-api.gemspec and gem install ./picobrew-api-{version}.gem.

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/toddq/picobrew-api.

License

The gem is available as open source under the terms of the MIT License.