Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

Need to add altitude to weather plugin for reliable forecasts

Cerrado
#176 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
2/5
Tiempo estimado
1-3 horas
Aptitud para principiantes
35/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Estancado
Stack tecnológico
python
Área
backend

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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

Lenguaje dominante
Python
Estrellas
205
Forks
17
Merge medio
5 h 20 min
PR fusionados (30 d)
54

Preparar el entorno

  • Sin Dockerfile ni archivo de Docker Compose
  • Tiene una plantilla de pull request
  • Sin guía de contribución

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de txoof/PaperPi

Todos los issues de txoof/PaperPi

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.