- Add Claude, Mistral and local Ollama (lfm3-vl) vision backends that read the digits inside the blue boxes of a cropped, upscaled picture - Retry every 30s when the picture has no blue box or the reading does not have WATERMETER_DIGITS digits - Set input_number.index_compteur_d_eau to reading * 100 when it is within 1000 of the current value - Append one line per run to watermeter.log for cron runs Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
17 lines
390 B
TOML
17 lines
390 B
TOML
[package]
|
|
name = "watermeter_watcher"
|
|
version = "0.1.0"
|
|
edition = "2024"
|
|
|
|
[dependencies]
|
|
anyhow = "1.0.104"
|
|
base64 = "0.23.1"
|
|
chrono = { version = "0.4.45", default-features = false, features = ["clock"] }
|
|
dotenvy = "0.15.7"
|
|
image = "0.25.10"
|
|
ocrs = "0.13.1"
|
|
reqwest = { version = "0.13.5", features = ["blocking", "json"] }
|
|
rten = "0.26.0"
|
|
rten-imageproc = "0.26.0"
|
|
serde_json = "1.0.151"
|