- non si ferma piu' quando la pagina perde il primo piano: il polling vive dentro l'app e si spegne chiudendo l'app - il conto alla rovescia a schermo gira solo con la pagina visibile - dichiarato il limite di sistema: Sailfish puo' congelare un'app in background, e in quel caso l'avviso arriva alla riapertura - post e descrizione allineati alla 0.3.1 (nomi, impronte, comportamento)
223 lines
8.7 KiB
Markdown
223 lines
8.7 KiB
Markdown
# Forum post — Thinq-like
|
|
|
|
Testo pronto da incollare. Prima la versione inglese (forum internazionale),
|
|
sotto quella italiana. Le immagini da allegare sono in questa cartella.
|
|
|
|
---
|
|
|
|
## English
|
|
|
|
**Title:** `[App] Thinq-like — your LG ThinQ washer from Sailfish OS (no bridge, no server)`
|
|
|
|
Hi all,
|
|
|
|
Full disclosure first: **this app is entirely AI-written**. I am a programmer,
|
|
and this is not a showcase of my code: I wanted to monitor the washing machine
|
|
from my phone without installing the Android app, so I had an AI write it. It is
|
|
quick and dirty — no design awards, no elegant settings screen — but it works.
|
|
|
|
It is a Sailfish OS app for LG ThinQ washing machines and washer-dryers. It
|
|
talks **straight to the LG ThinQ cloud from the phone**: no bridge, no server of
|
|
your own, nothing running at home. One phone, one app.
|
|
|
|
### What it does
|
|
|
|
* Lists every washer and washer-dryer linked to your LG account, with the
|
|
current phase, the time left and the cycle in progress.
|
|
* Start, stop, power off, wake the display, and delayed stop (3 to 19 hours —
|
|
the values these machines accept).
|
|
* Notification when the wash is done, and it picks the news up the next time you
|
|
open the app if the cycle ended while it was closed.
|
|
* The machine in progress on the home screen cover, so the time left is one
|
|
glance away.
|
|
* Italian and English, following the phone language.
|
|
|
|
### What you need
|
|
|
|
* A Sailfish OS phone. Built against 5.1 and tested on Sailfish OS 5.1
|
|
(aarch64); it should work on armv7hl too, the package is built for both.
|
|
* The machine registered in the LG ThinQ app, with remote control enabled.
|
|
* **Your own LG ThinQ Personal Access Token** — free, made once from a computer
|
|
(see below). It stays on your phone and it is yours; the app ships no
|
|
credentials of its own.
|
|
|
|
### Install
|
|
|
|
**1. Check your architecture** — in the terminal:
|
|
|
|
```
|
|
uname -m
|
|
```
|
|
|
|
`aarch64` for 64-bit devices, `armv7l` for 32-bit ones.
|
|
|
|
**2. Download the matching package**
|
|
|
|
| device | file | link |
|
|
|---|---|---|
|
|
| 64-bit (`aarch64`) | `harbour-thinq-0.3.1-1.aarch64.rpm` (100 KB) | https://nextcloud.hackatoniclife.com/s/kXmJFokw9Ld6HNs |
|
|
| 32-bit (`armv7l`) | `harbour-thinq-0.3.1-1.armv7hl.rpm` (96 KB) | https://nextcloud.hackatoniclife.com/s/MPHaQLmfLSrZkMR |
|
|
|
|
Checksums, if you like to verify downloads:
|
|
|
|
```
|
|
ef2553735ece863a22292fc7db5ad725bb82dc83158be37fc8c847fdfc0f0fb5 harbour-thinq-0.3.1-1.aarch64.rpm
|
|
16cc58996409f7b4ca925785111d2f8e9729a59dc8af479550c5c5b704705804 harbour-thinq-0.3.1-1.armv7hl.rpm
|
|
```
|
|
|
|
**3. Install it** — either tap the downloaded file in Files and confirm, or from
|
|
the terminal (developer mode):
|
|
|
|
```
|
|
devel-su rpm -Uvh harbour-thinq-0.3.1-1.aarch64.rpm
|
|
```
|
|
|
|
**4. First run** — paste your token, pick your country code (IT is the default),
|
|
and the app lists your machines. After that it goes straight to the status
|
|
screen.
|
|
|
|
### Creating your token (once, from a computer)
|
|
|
|
1. Go to **https://connect-pat.lgthinq.com** and sign in with your LG ThinQ
|
|
account.
|
|
2. Open **Personal Access Tokens** → **ADD NEW TOKEN**.
|
|
3. Tick all the scopes and **CREATE TOKEN**.
|
|
4. Copy it right away — it is shown only once — and paste it into the app.
|
|
|
|
### What it does not do
|
|
|
|
* No LG account name and password. Tokens only: the unofficial password method
|
|
can get accounts blocked by LG, so the app does not offer it.
|
|
* No wash program selection. The machine's API does not expose it, so the
|
|
program is still chosen on the machine.
|
|
* No hidden background service, no daemon: the check lives inside the app. It
|
|
reads LG once every 30 minutes, keeps doing so while the app is in the
|
|
background, and stops when you close the app. Between one check and the next
|
|
the time left is recalculated on the phone, so the countdown keeps moving
|
|
without any network call. If LG reports too many requests, the check drops to
|
|
once an hour. Sailfish may freeze background apps to save power; if it does,
|
|
the end-of-wash notification arrives when you open the app again.
|
|
|
|
### Privacy
|
|
|
|
The token is stored in the app's private configuration file on the phone and
|
|
never goes anywhere except LG. No analytics, no trackers, no third-party server.
|
|
The app contains no credentials: every user brings their own token.
|
|
|
|
### Not affiliated with LG
|
|
|
|
Independent project, not made or approved by LG. ThinQ is a trademark of LG
|
|
Electronics, mentioned only to say which machines the app talks to. Licence MIT,
|
|
source code and issues:
|
|
|
|
**https://git.hackatoniclife.com/kaneda/harbour-thinq**
|
|
|
|
Feedback very welcome — especially other models and other regions: if your
|
|
machine shows up and works, say so, it helps everyone else with the same one.
|
|
|
|
---
|
|
|
|
## Italiano
|
|
|
|
**Titolo:** `[App] Thinq-like — la tua lavatrice LG ThinQ da Sailfish OS (senza ponte né server)`
|
|
|
|
Ciao a tutti,
|
|
|
|
avvertenza prima di tutto: **l'app è scritta interamente dall'intelligenza
|
|
artificiale**. Sono un programmatore, e questa non è una vetrina del mio codice:
|
|
volevo monitorare la lavatrice dal telefono senza installare l'app Android, così
|
|
me la sono fatta scrivere dall'AI. È spartana e fatta in fretta — nessun premio
|
|
di design, nessuna schermata di impostazioni elegante — ma funziona.
|
|
|
|
È un'app per Sailfish OS per lavatrici e lavasciuga LG ThinQ. Parla
|
|
**direttamente con il cloud LG dal telefono**: nessun ponte, nessun server
|
|
proprio, niente che resti acceso in casa.
|
|
|
|
### Cosa fa
|
|
|
|
* Elenca tutte le lavatrici e lavasciuga collegate al tuo account LG, con fase
|
|
in corso, tempo rimanente e ciclo.
|
|
* Avvio, stop, spegnimento, risveglio del display e stop ritardato (da 3 a 19
|
|
ore, i valori che queste macchine accettano).
|
|
* Avviso a fine lavaggio, recuperato alla riapertura se il ciclo è finito
|
|
mentre l'app era chiusa.
|
|
* La macchina in funzione sulla copertina, così il tempo rimanente si legge a
|
|
colpo d'occhio.
|
|
* Italiano e inglese, segue la lingua del telefono.
|
|
|
|
### Cosa serve
|
|
|
|
* Un telefono Sailfish OS. Compilata per la 5.1 e provata su Sailfish OS 5.1
|
|
(aarch64); dovrebbe funzionare anche su armv7hl, il pacchetto c'è per
|
|
entrambe.
|
|
* La macchina registrata nell'app LG ThinQ, con il controllo remoto abilitato.
|
|
* **Un tuo token di accesso LG ThinQ** (Personal Access Token): gratuito, si
|
|
crea una volta da computer (vedi sotto). Resta sul tuo telefono: l'app non
|
|
contiene credenziali proprie.
|
|
|
|
### Installazione
|
|
|
|
**1. Controlla l'architettura** — nel terminale:
|
|
|
|
```
|
|
uname -m
|
|
```
|
|
|
|
`aarch64` per i telefoni a 64 bit, `armv7l` per quelli a 32 bit.
|
|
|
|
**2. Scarica il pacchetto giusto**
|
|
|
|
| dispositivo | file | link |
|
|
|---|---|---|
|
|
| 64 bit (`aarch64`) | `harbour-thinq-0.3.1-1.aarch64.rpm` (100 KB) | https://nextcloud.hackatoniclife.com/s/kXmJFokw9Ld6HNs |
|
|
| 32 bit (`armv7l`) | `harbour-thinq-0.3.1-1.armv7hl.rpm` (96 KB) | https://nextcloud.hackatoniclife.com/s/MPHaQLmfLSrZkMR |
|
|
|
|
**3. Installala** — tocca il file scaricato in File e conferma, oppure dal
|
|
terminale (modalità sviluppatore):
|
|
|
|
```
|
|
devel-su rpm -Uvh harbour-thinq-0.3.1-1.aarch64.rpm
|
|
```
|
|
|
|
**4. Primo avvio** — incolla il token, scegli il codice paese (l'Italia è
|
|
predefinita) e l'app elenca le macchine. Dalla volta dopo si apre direttamente
|
|
sullo stato.
|
|
|
|
### Creare il token (una volta, da computer)
|
|
|
|
1. Vai su **https://connect-pat.lgthinq.com** e accedi con l'account LG ThinQ.
|
|
2. Apri **Personal Access Tokens** → **ADD NEW TOKEN**.
|
|
3. Spunta tutte le voci e premi **CREATE TOKEN**.
|
|
4. Copialo subito — viene mostrato una volta sola — e incollalo nell'app.
|
|
|
|
### Cosa non fa
|
|
|
|
* Niente nome utente e password LG. Solo token: il metodo non ufficiale con
|
|
password può far bloccare l'account da LG, quindi l'app non lo offre.
|
|
* Niente scelta del programma di lavaggio: l'API della macchina non lo espone,
|
|
quindi il programma si sceglie ancora sulla macchina.
|
|
* Nessun servizio nascosto e nessun demone: il controllo vive dentro l'app. Legge
|
|
LG una volta ogni mezz'ora, continua anche con l'app in background e si ferma
|
|
quando chiudi l'app. Fra un controllo e l'altro il tempo rimanente viene
|
|
ricalcolato sul telefono, così il conto alla rovescia scende senza chiamare la
|
|
rete. Se LG segnala troppe richieste si passa a una volta l'ora. Sailfish può
|
|
congelare le app in background per risparmiare: se lo fa, l'avviso di fine
|
|
lavaggio arriva alla riapertura.
|
|
|
|
### Privacy
|
|
|
|
Il token è nel file di configurazione privato dell'app, sul telefono, e non va
|
|
da nessuna parte tranne che da LG. Niente statistiche, niente tracciamenti,
|
|
nessun server di terze parti.
|
|
|
|
### Non è di LG
|
|
|
|
Progetto indipendente, non realizzato né approvato da LG. ThinQ è un marchio di
|
|
LG Electronics, citato solo per dire con quali macchine l'app parla. Licenza
|
|
MIT, codice e segnalazioni:
|
|
|
|
**https://git.hackatoniclife.com/kaneda/harbour-thinq**
|
|
|
|
Ogni riscontro è benvenuto — soprattutto altri modelli e altri paesi: se la tua
|
|
macchina compare e funziona, scrivilo, aiuta chi ha la stessa.
|