SQM screen: readings above 22.00 show no Bortle class and hide the age line, so a stale value looks live
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Idoneità per principianti
- 84/100
- Tipo di issue
- Bug
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Attiva
- Stack tecnologico
- python, raspberry-pi
- Ambito
- embedded-iot, frontend
Direzione di ricerca
Inizia con get_sky_details() e update() in python/PiFinder/ui/sqm.py; lì viene controllato il comportamento dell’età, delle stelle, dell’esposizione, della calibrazione e della legenda. Leggi python/PiFinder/solver.py solo per capire come vengono pubblicate e ripubblicate le letture. Fine significa che le letture al di fuori di 0.00–22.00 ricevono la classe Bortle di bordo specificata e che una ricerca dei dettagli non disponibile non impedisce più l’aggiornamento della riga dell’età e delle altre righe di stato della schermata SQM.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Reported on Cloudy Nights (thread 914101, comment 14873609, v2 hardware on 2.6.3): the SQM screen showed 22.08 with no Bortle class, and the reading appeared frozen until a power cycle.
Cause (v2.6.3, python/PiFinder/ui/sqm.py)
get_sky_details() covers 0.00 to 22.00 mag/arcsec². The darkest band is Bortle 1 at (21.76, 22.00), and anything above 22.00 returns None.
When details is None, update() draws the value and units and then returns early. That path skips:
- the "Ns ago" / "Nm ago" age line
- star count and exposure
- CAL / !CAL
- the altitude-corrected value
- the Bortle line and the SQUARE DETAILS legend (SQUARE has no description to show)
Why it looks like a freeze
The SQM producers in solver.py don't use the Bortle table, so a value above 22.00 is published and re-read every frame like any other. The UI doesn't hang. But without the age line, the user can't tell a live reading from a stale one. If the radiometer stops publishing (accumulator.estimate() returns None), the screen keeps showing the last value with nothing to say it is old. On an in-range value, the climbing "Nm ago" would have shown it.
So the missing Bortle class explains why the staleness was invisible. It does not explain why the value stopped updating, if it did. A value that kept re-publishing at about 22.08 would look the same.
Fix
- Treat anything above 22.00 as Bortle 1 (open-ended top band), and below 0 as Bortle 9.
- Don't return early when there are no details. Draw the age, stars, exposure and calibration rows regardless, and skip only the Bortle line.
Related, still open
- A second "frozen SQM screen" report on rev4, 2026-09-16, value within range.
- Jon Isaacs, same thread (14873285): "NO SQM DATA" that persisted through a reboot, which means
sqm().last_updatewas never set since boot. That is a producer-side question that this UI bug doesn't touch.
- Lingua principale
- Jupyter Notebook
- Stelle
- 253
- Fork
- 63
- Merge medio
- 11h 55m
- PR unite (30g)
- 8
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di brickbots/PiFinder
-
Discord Link InvalidAperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 67/100
brickbots/PiFinder#682 · 3 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 92/100
I maintainer di solito rispondono entro 1 giorno
-
documentation
Difficoltà 2/5 1-3 ore Idoneità per principianti 80/100
I maintainer di solito rispondono entro 1 giorno
-
catalogs enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di brickbots/PiFinder
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 85/100
openhab/openhab-addons#22135 ·
I maintainer di solito rispondono entro 1 giorno
-
analog-gpio-api api-v2
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
adafruit/Adafruit_Wippersnapper_Arduino#1075 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
followup Prio 📌
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100