Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Need to add altitude to weather plugin for reliable forecasts

Chiusa
#176 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

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
35/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Ferma
Stack tecnologico
python
Ambito
backend

Direzione di ricerca

Start with paperpi/plugins/met_no/met_no.py at the referenced configuration and request-building locations. Read how plugin configuration is handled and how the met.no URL is assembled; add support for an optional altitude value and include it in the request. Done means the configured altitude is sent and the forecast uses the appropriate elevation.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

bug

Describe the bug
In some cases the met.no weather API supplies the incorrect altitude for a given Lat/Lon. It appears to default to 4949 meters for some locations. See Atlanta Georgia. This leads the temperature forecasts to be very wrong.

Valid forecast with supplied altitude (320m)

To Reproduce
Set up the weather plugin with the following values

Plugin: Weather Atlanta]
layout = layout
plugin = met_no
refresh_rate = 300
min_display_time = 50
max_priority = 2
location_name = Atlanta, Georgia
lat = 34.6
lon = 84.31

Expected behavior

The plugin should get the appropriate temperature forecast.

Additional context
This can be fixed by adding an altitude key to the plugin configuration and then updating the plugin to use an altitude value in the requested URL

Lingua principale
Python
Stelle
205
Fork
17
Merge medio
5h 42m
PR unite (30g)
50

Preparare l'ambiente

  • Nessun Dockerfile né file Docker Compose
  • Ha un modello di pull request
  • Nessuna guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di txoof/PaperPi

Tutte le issue di txoof/PaperPi

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.