Need to add altitude to weather plugin for reliable forecasts
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 35/100
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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
- Ngôn ngữ chính
- Python
- Star
- 205
- Fork
- 17
- Merge trung bình
- 4 giờ 8 phút
- Pull request đã merge (30 ngày)
- 72
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Không có hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của txoof/PaperPi
-
enhancement
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 75/100
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Maintainer thường phản hồi trong vòng 1 ngày
-
area:plugins enhancement
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
Maintainer thường phản hồi trong vòng 1 ngày
-
area:core needs-decision
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 32/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của txoof/PaperPi
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Arekkazu/sgpmp-backend#744 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Review backlog (security): master-branch remote guard trusts unbound provenance package fieldĐang mởagent/reviewer
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
projectbluefin/utah-packages#634 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement good first issue help wanted
Độ khó 2/5 1-2 ngày Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
home-assistant/core#188613 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
WebsiteĐang mởgood first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 91/100
TanbirRamim/open-source-radar#314 ·
Maintainer thường phản hồi trong vòng 1 ngày