diff --git a/docs/PIANO.md b/docs/PIANO.md index c1b27e1..8569d7b 100644 --- a/docs/PIANO.md +++ b/docs/PIANO.md @@ -583,7 +583,24 @@ la copertina). Servono quindi stringhe **proprie della copertina**: Le fonti restano in inglese, come tutto il catalogo; l'italiano sta nel `.ts`. La Home non cambia. -## 20. Conseguenze dell'uso reale (0.7.0) +## 20. Via la barra di avanzamento dell'acqua — v0.7.9 + +Carlo, dopo aver chiesto cosa fosse: *"Toglila pure"*. + +La barra diceva quanto l'acqua è carica verso l'obiettivo **partendo da 10 °C** +(non da zero), quindi stava quasi sempre al 99% e non aggiungeva informazione: +una striscia che non cambia non dice niente, e non si spiegava da sola (servita +la domanda "cos'è la striscia bianca sotto l'acqua calda?"). + +- `ReadingCell.qml`: tolti `progress`, `showBar` e il `ProgressBar` (era usato + solo dalla Home, quindi sparisce dal componente); +- `MainPage.qml`: tolto `progress: page.waterProgress()` / `showBar: true` e la + funzione `waterProgress()`, che non serviva più. + +Regola: un indicatore permanente che resta sempre allo stesso valore è rumore. +Se un giorno servisse, va ancorato a qualcosa che cambia davvero. + +## 21. Conseguenze dell'uso reale (0.7.0) Deciso con l'uso, non in anticipo: diff --git a/qml/components/ReadingCell.qml b/qml/components/ReadingCell.qml index 239e4f0..42b8b69 100644 --- a/qml/components/ReadingCell.qml +++ b/qml/components/ReadingCell.qml @@ -12,8 +12,6 @@ BackgroundItem { property string title: "" property string value: "" property string subtitle: "" - property real progress: 0 - property bool showBar: false property color valueColor: Theme.primaryColor signal tapped() @@ -53,10 +51,5 @@ BackgroundItem { wrapMode: Text.Wrap } - ProgressBar { - width: parent.width - value: Math.max(0, Math.min(1, root.progress)) - opacity: root.showBar ? 1 : 0 - } } } diff --git a/qml/pages/MainPage.qml b/qml/pages/MainPage.qml index ea5f957..74ade83 100644 --- a/qml/pages/MainPage.qml +++ b/qml/pages/MainPage.qml @@ -47,15 +47,6 @@ Page { return "#4caf50" } - // Quanto e' carica l'acqua calda verso l'obiettivo (da 10 °C in su). - function waterProgress() { - var ora = Number(page.raw("dhw_current")) - var obiettivo = Number(page.raw("dhw_target")) - if (!(obiettivo > 10) || isNaN(ora)) - return 0 - return (ora - 10) / (obiettivo - 10) - } - // Riga sotto il titolo: dice anche quando i numeri sono vecchi. function updateText() { if (!api.hasData) @@ -220,8 +211,6 @@ Page { title: qsTr("Hot water") value: page.fmt(page.raw("dhw_current")) + " °C" subtitle: qsTr("target %1 °C").arg(page.fmt(page.raw("dhw_target"))) - progress: page.waterProgress() - showBar: true valueColor: api.stale ? Theme.secondaryColor : Theme.primaryColor onTapped: pageStack.push(Qt.resolvedUrl("SetpointsPage.qml"), { "section": "water" }) diff --git a/rpm/harbour-aira.spec b/rpm/harbour-aira.spec index ae44495..3d7a000 100644 --- a/rpm/harbour-aira.spec +++ b/rpm/harbour-aira.spec @@ -1,6 +1,6 @@ Name: harbour-aira Summary: Control your Aira heat pump through a local bridge -Version: 0.7.8 +Version: 0.7.9 Release: 1 Group: Qt/Qt License: MIT @@ -37,6 +37,10 @@ Address and token of the bridge live in the app settings (AppConfigLocation); no personal data is stored in the binary. %changelog +* Sun Oct 11 2026 Carlo - 0.7.9-1 +- via la barra di avanzamento sotto l'acqua calda: partiva da 10 °C e stava + sempre al 99%, quindi non diceva niente. Tolta dal componente ReadingCell + (era usata solo dalla Home) e la funzione waterProgress dalla Home. * Sun Oct 11 2026 Carlo - 0.7.8-1 - copertina: le tre diciture diventano "T. casa", "T. acqua" e "Temperatura esterna". Sono stringhe proprie della copertina, cosi' la Home resta "Casa" e diff --git a/src/main.cpp b/src/main.cpp index 1d60be1..10e113f 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -21,7 +21,7 @@ Q_DECL_EXPORT int main(int argc, char *argv[]) app->setOrganizationName(QStringLiteral("harbour")); app->setApplicationName(QStringLiteral("aira")); - app->setApplicationVersion(QStringLiteral("0.7.8")); + app->setApplicationVersion(QStringLiteral("0.7.9")); Settings settings; ApiClient api(&settings); @@ -36,7 +36,7 @@ Q_DECL_EXPORT int main(int argc, char *argv[]) // Prima riga del log: dice subito se il device sta girando la build nuova // o una stale (trappola nota del build engine). - qDebug() << "harbour-aira v0.7.8 build" << __DATE__ << __TIME__; + qDebug() << "harbour-aira v0.7.9 build" << __DATE__ << __TIME__; view->rootContext()->setContextProperty(QStringLiteral("appSettings"), &settings); view->rootContext()->setContextProperty(QStringLiteral("api"), &api); diff --git a/translations/harbour-aira.ts b/translations/harbour-aira.ts index 0b3d7ce..60fcfdc 100644 --- a/translations/harbour-aira.ts +++ b/translations/harbour-aira.ts @@ -366,12 +366,12 @@ CoverPage - House + T. house - Hot water + T. water @@ -386,7 +386,7 @@ - outside %1 °C + Outside temperature %1 °C