0.1.6: UPS, carico sotto il 10% mostrato come 'basso'
This commit is contained in:
1 parent
8ed183c1fc
commit
99aba8fa03
4 files changed
+16
-5
No files matched your search
@@ -34,7 +34,7 @@ Requisiti: SDK Sailfish in `~/SailfishOS`, build engine Docker.
|
||||
## Installazione sul telefono
|
||||
|
||||
```sh
|
||||
devel-su rpm -Uvh harbour-server-0.1.5-1.aarch64.rpm
|
||||
devel-su rpm -Uvh harbour-server-0.1.6-1.aarch64.rpm
|
||||
```
|
||||
|
||||
Poi, all'apertura: indicare indirizzo (es. `http://192.168.3.21:8792`) e token.
|
||||
|
||||
@@ -121,8 +121,15 @@ Page {
|
||||
parts.push(qsTr("carica ") + statusClient.fmtNum(u.charge_pct, 0) + "%")
|
||||
if (u.runtime_s)
|
||||
parts.push(qsTr("autonomia ") + Math.round(u.runtime_s / 60) + " min")
|
||||
if (u.load_pct !== null && u.load_pct !== undefined)
|
||||
// Il carico lo riportano questi firmware a passi del 2% e sotto il 10%
|
||||
// dichiarano semplicemente il minimo: un "2%" sembrerebbe una misura
|
||||
// e non lo è. Sopra il 10% il numero ha senso, sotto si dice "basso".
|
||||
if (u.load_pct !== null && u.load_pct !== undefined) {
|
||||
if (u.load_pct >= 10)
|
||||
parts.push(qsTr("carico ") + statusClient.fmtNum(u.load_pct, 0) + "%")
|
||||
else
|
||||
parts.push(qsTr("carico basso"))
|
||||
}
|
||||
if (u.input_voltage)
|
||||
parts.push(statusClient.fmtNum(u.input_voltage, 0) + " V")
|
||||
return parts.join(" · ")
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
Name: harbour-server
|
||||
Summary: Parametri del server in una schermata
|
||||
Version: 0.1.5
|
||||
Version: 0.1.6
|
||||
Release: 1
|
||||
Group: Qt/Qt
|
||||
License: MIT
|
||||
@@ -23,6 +23,10 @@ schermata sola. Il formato consumato (schema status/1) non dipende dalla
|
||||
macchina: qualunque host che serva lo stesso JSON funziona senza modifiche.
|
||||
|
||||
%changelog
|
||||
* Sat Oct 31 2026 Carlo Baratto <carlo@carlobaratto.it> - 0.1.6-1
|
||||
- Card UPS: sotto il 10% di carico si legge "carico basso" invece di una
|
||||
percentuale: questi firmware (MEC0003/Qx) riportano il carico a passi del
|
||||
2% e al minimo dichiarano un valore che non è una misura
|
||||
* Sat Oct 31 2026 Carlo Baratto <carlo@carlobaratto.it> - 0.1.5-1
|
||||
- Card UPS: stato (rete / a batteria), carica, autonomia, carico e tensione
|
||||
d'ingresso da NUT; rosso con batteria scarica o allarme, giallo se la
|
||||
|
||||
+2
-2
@@ -15,9 +15,9 @@ Q_DECL_EXPORT int main(int argc, char *argv[])
|
||||
// AppConfigLocation = ~/.config/harbour/server (zona persistente).
|
||||
app->setOrganizationName(QStringLiteral("harbour"));
|
||||
app->setApplicationName(QStringLiteral("server"));
|
||||
app->setApplicationVersion(QStringLiteral("0.1.5"));
|
||||
app->setApplicationVersion(QStringLiteral("0.1.6"));
|
||||
|
||||
qDebug() << "harbour-server v0.1.5 build" << __DATE__ << __TIME__;
|
||||
qDebug() << "harbour-server v0.1.6 build" << __DATE__ << __TIME__;
|
||||
|
||||
Settings settings;
|
||||
StatusClient status(&settings);
|
||||
|
||||
Reference in new issue
Block a user