hallboyone / RaspberryLatte

A full stack suite to add smarts to a single boiler espresso machine using a Raspberry Pi Pico as the brains.
MIT License
15 stars 1 forks source link

ENHANCEMENT-update-settings-in-terminal #24

Closed hallboyone closed 1 year ago

hallboyone commented 1 year ago

Using the local dial and pump switch, though functional, is very clunky. With the newly expanded setting structure (120 folders!) it takes a long time to navigate and get set the way you want it. It would be much easier to do this with a console interface prior to the implementation of a remote application.

hallboyone commented 1 year ago

This ended up being a bigger project than the original scope. The settings are now displayed as

Brew Temp   :  92.0 C
Hot Temp    : 100.0 C
Steam Temp  : 140.0 C
Dose        :  16.0 g
Yield       :  30.0 g
Brew Power  :   100 %
Hot Power   :    20 %

|=|=========================|========================|=========|
| |        Setpoint         |         Target         | Timeout |
|#|  Style  : Start :  End  | Flow : Pressure : Mass |         |
|-|---------:-------:-------|------:----------:------|---------|
|0|  Power  :   100 :   100 | 0.50 :    1.0   : 10.0 |  30.0   |
|1|  Flow   :  0.25 :  0.25 | 0.00 :    0.0   :  0.0 |   0.0   |
|2| Pressure:   2.5 :   2.5 | 0.00 :    0.0   :  0.0 |   0.0   |
|3|  Power  :    25 :    25 | 0.00 :    0.0   :  0.0 |   0.0   |
|4|  Power  :    25 :    25 | 0.00 :    0.0   :  0.0 |   0.0   |
|5|  Power  :    25 :    25 | 0.00 :    0.0   :  0.0 |   0.0   |
|6|  Power  :    25 :    25 | 0.00 :    0.0   :  0.0 |   0.0   |
|7|  Power  :    25 :    25 | 0.00 :    0.0   :  0.0 |   0.0   |
|8|  Power  :    25 :    25 | 0.00 :    0.0   :  0.0 |   0.0   |
|=|=========================|========================|=========|

RaspberryLatte
 (1) Settings
 (2) Autobrew
 (3) Presets

This is much cleaner than it was and should maintain it's format during use without needing to reprint everything with each change.

The settings can be navigated while the machine is off using "1"-"3" for subfolder selection, "u" to go up a level, "r" to go to root, and "p" to reprint (e.g. after resizing the terminal window).