0.7.9: via la barra di avanzamento dell'acqua
Partiva da 10 °C e stava sempre al 99%: non diceva niente. Tolta dal componente ReadingCell (la usava solo la Home) e con essa la funzione waterProgress.
This commit is contained in:
+18
-1
@@ -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`.
|
Le fonti restano in inglese, come tutto il catalogo; l'italiano sta nel `.ts`.
|
||||||
La Home non cambia.
|
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:
|
Deciso con l'uso, non in anticipo:
|
||||||
|
|
||||||
|
|||||||
@@ -12,8 +12,6 @@ BackgroundItem {
|
|||||||
property string title: ""
|
property string title: ""
|
||||||
property string value: ""
|
property string value: ""
|
||||||
property string subtitle: ""
|
property string subtitle: ""
|
||||||
property real progress: 0
|
|
||||||
property bool showBar: false
|
|
||||||
property color valueColor: Theme.primaryColor
|
property color valueColor: Theme.primaryColor
|
||||||
|
|
||||||
signal tapped()
|
signal tapped()
|
||||||
@@ -53,10 +51,5 @@ BackgroundItem {
|
|||||||
wrapMode: Text.Wrap
|
wrapMode: Text.Wrap
|
||||||
}
|
}
|
||||||
|
|
||||||
ProgressBar {
|
|
||||||
width: parent.width
|
|
||||||
value: Math.max(0, Math.min(1, root.progress))
|
|
||||||
opacity: root.showBar ? 1 : 0
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -47,15 +47,6 @@ Page {
|
|||||||
return "#4caf50"
|
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.
|
// Riga sotto il titolo: dice anche quando i numeri sono vecchi.
|
||||||
function updateText() {
|
function updateText() {
|
||||||
if (!api.hasData)
|
if (!api.hasData)
|
||||||
@@ -220,8 +211,6 @@ Page {
|
|||||||
title: qsTr("Hot water")
|
title: qsTr("Hot water")
|
||||||
value: page.fmt(page.raw("dhw_current")) + " °C"
|
value: page.fmt(page.raw("dhw_current")) + " °C"
|
||||||
subtitle: qsTr("target %1 °C").arg(page.fmt(page.raw("dhw_target")))
|
subtitle: qsTr("target %1 °C").arg(page.fmt(page.raw("dhw_target")))
|
||||||
progress: page.waterProgress()
|
|
||||||
showBar: true
|
|
||||||
valueColor: api.stale ? Theme.secondaryColor : Theme.primaryColor
|
valueColor: api.stale ? Theme.secondaryColor : Theme.primaryColor
|
||||||
onTapped: pageStack.push(Qt.resolvedUrl("SetpointsPage.qml"),
|
onTapped: pageStack.push(Qt.resolvedUrl("SetpointsPage.qml"),
|
||||||
{ "section": "water" })
|
{ "section": "water" })
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
Name: harbour-aira
|
Name: harbour-aira
|
||||||
Summary: Control your Aira heat pump through a local bridge
|
Summary: Control your Aira heat pump through a local bridge
|
||||||
Version: 0.7.8
|
Version: 0.7.9
|
||||||
Release: 1
|
Release: 1
|
||||||
Group: Qt/Qt
|
Group: Qt/Qt
|
||||||
License: MIT
|
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.
|
no personal data is stored in the binary.
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Sun Oct 11 2026 Carlo <carlo@carlobaratto.it> - 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 <carlo@carlobaratto.it> - 0.7.8-1
|
* Sun Oct 11 2026 Carlo <carlo@carlobaratto.it> - 0.7.8-1
|
||||||
- copertina: le tre diciture diventano "T. casa", "T. acqua" e "Temperatura
|
- copertina: le tre diciture diventano "T. casa", "T. acqua" e "Temperatura
|
||||||
esterna". Sono stringhe proprie della copertina, cosi' la Home resta "Casa" e
|
esterna". Sono stringhe proprie della copertina, cosi' la Home resta "Casa" e
|
||||||
|
|||||||
+2
-2
@@ -21,7 +21,7 @@ Q_DECL_EXPORT int main(int argc, char *argv[])
|
|||||||
|
|
||||||
app->setOrganizationName(QStringLiteral("harbour"));
|
app->setOrganizationName(QStringLiteral("harbour"));
|
||||||
app->setApplicationName(QStringLiteral("aira"));
|
app->setApplicationName(QStringLiteral("aira"));
|
||||||
app->setApplicationVersion(QStringLiteral("0.7.8"));
|
app->setApplicationVersion(QStringLiteral("0.7.9"));
|
||||||
|
|
||||||
Settings settings;
|
Settings settings;
|
||||||
ApiClient api(&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
|
// Prima riga del log: dice subito se il device sta girando la build nuova
|
||||||
// o una stale (trappola nota del build engine).
|
// 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("appSettings"), &settings);
|
||||||
view->rootContext()->setContextProperty(QStringLiteral("api"), &api);
|
view->rootContext()->setContextProperty(QStringLiteral("api"), &api);
|
||||||
|
|||||||
@@ -366,12 +366,12 @@
|
|||||||
<name>CoverPage</name>
|
<name>CoverPage</name>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../qml/cover/CoverPage.qml" line="79"/>
|
<location filename="../qml/cover/CoverPage.qml" line="79"/>
|
||||||
<source>House</source>
|
<source>T. house</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../qml/cover/CoverPage.qml" line="118"/>
|
<location filename="../qml/cover/CoverPage.qml" line="118"/>
|
||||||
<source>Hot water</source>
|
<source>T. water</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
@@ -386,7 +386,7 @@
|
|||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../qml/cover/CoverPage.qml" line="164"/>
|
<location filename="../qml/cover/CoverPage.qml" line="164"/>
|
||||||
<source>outside %1 °C</source>
|
<source>Outside temperature %1 °C</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
</context>
|
</context>
|
||||||
|
|||||||
Reference in New Issue
Block a user