| appmodel.cpp |
The class is used as a cache for the weather information.
It contains a map to cache weather for cities.
The gps location is cached separately.
For the coordiante search we do not compare the coordinate directly, but
check if it's within a circle of 3 km radius (we assume that the weather
does not really change within that radius).
The cache returns a pair with empty location and weather data if no data
is found, or if the data is outdated.
|
13995 |
- |
| appmodel.h |
|
3741 |
- |
| BigForecastIcon.qml |
|
1609 |
- |
| CMakeLists.txt |
|
2478 |
- |
| doc |
|
|
- |
| ForecastIcon.qml |
|
1253 |
- |
| icons |
|
|
- |
| Info.cmake.ios.plist |
|
1462 |
- |
| Info.cmake.macos.plist |
|
1260 |
- |
| Info.qmake.ios.plist |
|
1419 |
- |
| Info.qmake.macos.plist |
|
1099 |
- |
| main.cpp |
|
659 |
- |
| openmeteobackend.cpp |
Weather codes are taken from the bottom of this page:
https://open-meteo.com/en/docs
The possible strings are based on the icon names. The icon name is built up
as follows:
weather-[mystring].png
|
9403 |
- |
| openmeteobackend.h |
|
827 |
- |
| openweathermapbackend.cpp |
Converts weather code to a string that will be used to show the icon.
The possible strings are based on the icon names. The icon name is built up
as follows:
weather-[mystring].png
where [mystring] is the value returned by this method.
Check resources for the full list of available icons.
|
8068 |
- |
| openweathermapbackend.h |
|
1193 |
- |
| providerbackend.cpp |
|
214 |
- |
| providerbackend.h |
|
1228 |
- |
| qmldir |
|
178 |
- |
| weatherapibackend.cpp |
Converts weather code to a string that will be used to show the icon.
The possible strings are based on the icon names. The icon name is built up
as follows:
weather-[mystring].png
where [mystring] is the value returned by this method.
Check resources for the full list of available icons.
|
7016 |
- |
| weatherapibackend.h |
|
874 |
- |
| WeatherIcon.qml |
|
629 |
- |
| weatherinfo.pro |
|
1499 |
- |
| WeatherInfo.qml |
|
8398 |
- |