hotzenklotz / picobrew-server

A reverse engineered server for the proprietary PicoBrew Zymatic protocol
MIT License
61 stars 16 forks source link

Add Support for Pico S/C/Pro machines #8

Open hotzenklotz opened 4 years ago

hotzenklotz commented 4 years ago

Right now, the picobrew-server only supports the Zymatic machine protocol. It would be cool to support newer machines from the Pico family as well.

hotzenklotz commented 4 years ago

@chiefwigms According to the readme from https://github.com/chiefwigms/picobrew_pico you figured out the protocol for the Pico S/C/Pro, correct? I'd love to upstream these changes.

hotzenklotz commented 4 years ago

@chiefwigms Looks like the Pico reads it's recipes as JSON.

chiefwigms commented 4 years ago

Yep - i have the Pico S/C/Pro protocol (loosely documented in routes_api.py)

The pico doesn't have a real recipe aspect - the server pushes down a string for each pack that lists each step. I added a feature where you can create your own recipe and act as though it were one of Pico's Paks. I used JSON for both session data & the recipe because it was nearly plug in for HighCharts (live session graphing and historical sessions) as well as creating custom recipes via Tabulator.

PicoBrew doesn't have a recipe builder for the Pico..

Here's what a recipe looks like (similar to the zymatic):

Test/-1,-1,5.5,48,0,3,0,0,Preparing To Brew,110,0,0,2,Heating,110,7,0,1,Dough In,148,45,0,1,Mash 1,156,0,0,1,Mash 2,178,7,2,1,Mash Out,202,10,0,3,Hops 1,202,8,0,4,Hops 2,202,8,0,6,Hops 3,202,8,5,5,Hops 4,|2048 BYTE IMAGE|

hotzenklotz commented 4 years ago

I see. I guess I will just make the Zymatic recipes available in the Pico string format then for now.

dlgreenwald commented 4 years ago

I think it may still be worth supporting Pico Pro api endpoints just for delivering the cleaning "recipes" as well as data logging for a manual brew even if the true custom recipes can't be supported. If you are open to it I can look into what it would take and make a pull request if I'm successful.

hotzenklotz commented 4 years ago

@dlgreenwald Sounds good. Good for it. Happy to accept PRs.