PaperPi
PaperPi copied to clipboard
Need to add altitude to weather plugin for reliable forecasts
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