Crates.io | longshot |
lib.rs | longshot |
version | 0.1.8 |
source | src |
created_at | 2022-11-01 16:25:53.292608 |
updated_at | 2024-01-13 21:59:41.331006 |
description | API and CLI for ECAM-based Delonghi machines |
homepage | |
repository | https://github.com/mmastrac/longshot |
max_upload_size | |
id | 702908 |
size | 291,447 |
Brew coffee from the command-line!
Longshot is an API and command-line application to brew coffee from the command-line (or whatever front-end is built). At this time it supports DeLonghi ECAM-based Bluetooth-Low-Energy devices, and has only been tested on the Dinamica Plus over Bluetooth.
The protocol for status and monitoring has been mostly decoded, but at this time is only available in source form.
Monitor the given device (will continue until you press Ctrl+C):
$ longshot monitor --device-name (device)
Dispensing... [###############################===========]
Get the brew information for a given beverage:
$ longshot brew --device-name (device) --beverage regularcoffee
...
Brew a beverage:
$ longshot brew --device-name (device) --beverage regularcoffee --coffee 180 --taste strong
Fetching recipe for RegularCoffee...
Fetching recipes...
Brewing RegularCoffee...
Brew a long coffee with 250 impulses of water (approximately the size of an average North American coffee mug, or slightly more).
let ecam = ecam_lookup(device_name).await?;
let req = Request::BeverageDispensingMode(
EcamBeverageId::LongCoffee.into(),
EcamOperationTrigger::Start.into(),
vec![RecipeInfo::new(EcamIngredients::Coffee, 250)],
EcamBeverageTasteType::Prepare.into(),
);
ecam.write_request(req).await?;