Sin descripción

Thomas Hondema d84e091715 Fix medium findings hace 1 mes
android e19c644fa6 first commit hace 1 mes
assets e19c644fa6 first commit hace 1 mes
ios e19c644fa6 first commit hace 1 mes
lib d84e091715 Fix medium findings hace 1 mes
macos e19c644fa6 first commit hace 1 mes
test d84e091715 Fix medium findings hace 1 mes
.flutter-plugins-dependencies e19c644fa6 first commit hace 1 mes
.gitignore e19c644fa6 first commit hace 1 mes
.metadata e19c644fa6 first commit hace 1 mes
README.md d84e091715 Fix medium findings hace 1 mes
analysis_options.yaml e19c644fa6 first commit hace 1 mes
flutter_launcher_icons.yaml e19c644fa6 first commit hace 1 mes
mebarista.iml e19c644fa6 first commit hace 1 mes
pubspec.lock e19c644fa6 first commit hace 1 mes
pubspec.yaml e19c644fa6 first commit hace 1 mes

README.md

meBarista Flutter

A modern, cross-platform Flutter port of the original meBarista app for the meCoffee espresso PID controller.

About the Project

meBarista is the software interface for the meCoffee PID, an internal controller that adds advanced features to espresso machines like the Silvia, Gaggia Classic, and others. This project aims to bring the functionality of the original Android and Ionic-based apps to a modern Flutter codebase, providing a unified experience across iOS and Android.

For more information on the original project and its opening to the community, visit: Opening up meBarista

Key Features

  • Real-time PID Monitoring: Live temperature tracking with stability visualization (FL Chart).
  • Bluetooth Connectivity: BLE via flutter_blue_plus, including write-without-response modules, and Android Bluetooth Classic/SPP via a native channel. Pair Classic controllers in Android settings, then select them in the connection screen. iOS and macOS remain BLE-only.
  • Shot Automation: Automatic shot timer detection based on pump activation.
  • Advanced Configuration:
    • Precision Brew Temperature control.
    • Steam Temperature management.
    • Customizable pre-infusion pump/pause duration and valve behavior.
    • Firmware-aware V4 PID and pre-infusion scaling.
  • Telemetry freshness: A warning appears after three seconds without a valid temperature frame. Stale readings are retained for reference, but heating/brewing indicators and the running shot timer are stopped.
  • History: Up to 5,000 timestamped samples, including historical setpoints and aligned second-sensor readings, with selectable time windows and history navigation. History is session-only, not a persisted shot database.
  • Diagnostics: A bounded, in-memory log of the last 1,000 received/sent/event entries. Use the dashboard Diagnostics button to copy or clear it. Nothing is uploaded automatically.
  • Persistence: Settings are saved locally after successful Bluetooth delivery. Connect before editing; failed writes display an error and do not save the requested setting. A multi-command failure may leave the controller partially updated, so reconnect to read back its settings before retrying. Bluetooth write completion is not confirmation that firmware accepted a setting; no-response BLE modules cannot provide transport acknowledgments. Settings writes wait for the controller's firmware identity. Individual controls send only the edited parameter, rather than resending cached companion settings. Dashboard temperature adjustments also wait for the controller's brew setpoint readback.
  • Dark Mode: High-contrast, industrial theme optimized for kitchen environments.

Implementation Roadmap

  • Phase 1: Infrastructure & BLE Connectivity
  • Phase 2: Core Monitoring Dashboard & Real-time Graphs
  • Phase 3: Machine Configuration & Settings Persistence
  • Phase 4: Shot Automation (Timer) & Steam Controls
  • Phase 5: Guarded Bluetooth Classic firmware updates (Experimental)
  • Phase 6: Shot Logging and Extraction Analytics

Getting Started

Prerequisites

  • Flutter SDK
  • Android Studio / VS Code
  • A meCoffee PID controller installed in your espresso machine.

Installation

  1. Clone the repository.
  2. Run flutter pub get.
  3. Enable Bluetooth permissions on your mobile device.
  4. Launch the app and tap "Connect to meCoffee". On Android, choose BLE scanning or a paired Classic/SPP controller.

Firmware updates

Hardware Configuration can install the existing bundled V10 firmware through an Android Classic/SPP connection. This is an experimental STK500v1 operation, not a network download or a BLE OTA implementation. It requires live temperature data, the machine switched off at its power switch (confirmed by a pid 0 0 0 0 frame on live telemetry), a boiler at or below 50 C, and explicit confirmation. Pending settings finish while telemetry continues to be parsed; the safety conditions are rechecked before controller reset.

Only controllers reporting pcb V9 (V9/V10 hardware) are offered the update; V4 controllers (pcb V3) use a different sensor scale and EEPROM layout and are refused. The Intel HEX image is validated before resetting the controller. After reconnecting, the app waits 750 ms for the bootloader and retries STK500 GET_SYNC (ignoring application output) before programming; if no bootloader answers, nothing is written. The programmer checks the ATmega328P signature before writing and verifies programmed pages by reading them back. Unsupported bootloaders, timeouts, checksum errors, and verification failures stop the operation and surface an error.

Do not brew, close the app, or interrupt controller power/Bluetooth during an update. There is no rollback: a failed update may require manual bootloader recovery. Only use this function if you can recover your controller. The app reconnects and reads settings after a successful update; settings may have changed.

App icons

Launcher icons use the original meCoffee artwork from meBarista_in_Ionic2/resources/icon.png. The generator sources are assets/icons/mebarista.png and assets/icons/mebarista_foreground.png; the foreground has a transparent background for Android adaptive masks.

After changing the artwork, regenerate the Android, iOS, and macOS icons:

flutter pub get
dart run flutter_launcher_icons

Configuration is in flutter_launcher_icons.yaml. Android uses a white adaptive background and foreground padding to avoid mask clipping; iOS icons are generated without an alpha channel. Keep both source images square and prefer original 1024 x 1024 artwork when available (the legacy source is 512 x 512). Do not bake rounded corners into the images.

Rebuild and reinstall the app to see launcher changes; hot reload does not update launcher icons.

Contributing

This project is inspired by the open-source spirit of the original meCoffee community. Feel free to submit pull requests, report issues, or suggest new features to help make the perfect shot.


Disclaimer: this meBarista app is an independent project and is not officially affiliated with the hardware manufacturer.