Project

General

Profile

Actions

Bug #48

open

Weather does not work

Added by Constantinos Lempidakis about 1 year ago. Updated 12 months ago.

Status:
Resolved
Priority:
Normal
Target version:
Start date:
11/26/2024
Due date:
% Done:

100%

Estimated time:
Spent time:

Description

Unti now we were using OpenWeathermap.org to receive the weather. Due to chagnes of the API and the pricing we will need to switch to the following:

https://github.com/open-meteo/open-meteo?tab=readme-ov-file

https://open-meteo.com/

At the same time we need to update weather icons using the following https://basmilius.github.io/weather-icons/index-line.html

Actions #1

Updated by Constantinos Lempidakis about 1 year ago

Νέο API

https://open-meteo.com/en/docs#latitude=38.0833&longitude=23.7333&current=temperature_2m,relative_humidity_2m,weather_code,wind_speed_10m,wind_direction_10m&hourly=&daily=

Από Current Weather επιλέγουμε:

  • Weather code
  • Temperature (2 m)
  • Relative Humidity (2 m)
  • Wind Speed (10 m)
  • Wind Direction (10 m)

Από Daily Weather Variables

  • Weather code
  • Maximum Temperature (2 m)
  • Minimum Temperature (2 m)
  • Maximum Wind Speed (10 m)
  • Dominant Wind Direction (10 m)

Για την εβδομαδιαία λείπει η πληροφορία της υγρασίας.
Και μια επιφύλαξη αν μας κάνει το Dominant Wind Direction

WMO Weather interpretation codes (WW)
Code Description
0 Clear sky
1, 2, 3 Mainly clear, partly cloudy, and overcast
45, 48 Fog and depositing rime fog
51, 53, 55 Drizzle: Light, moderate, and dense intensity
56, 57 Freezing Drizzle: Light and dense intensity
61, 63, 65 Rain: Slight, moderate and heavy intensity
66, 67 Freezing Rain: Light and heavy intensity
71, 73, 75 Snow fall: Slight, moderate, and heavy intensity
77 Snow grains
80, 81, 82 Rain showers: Slight, moderate, and violent
85, 86 Snow showers slight and heavy
95 * Thunderstorm: Slight or moderate
96, 99 * Thunderstorm with slight and heavy hail

Actions #2

Updated by Alex Seferidis 12 months ago

  • Status changed from New to Resolved
  • % Done changed from 0 to 100

Change to new API
https://open-meteo.com

Actions

Also available in: Atom PDF