From ce4d6ad54067dde66711edeef39adafc43c90296 Mon Sep 17 00:00:00 2001 From: woheller69 Date: Fri, 3 Mar 2023 13:43:21 +0100 Subject: [PATCH] Improvements from omWeather development: Add wind icons Use Rainviewer clouds layer in rain radar Fix white lines in rain radar Use violet for max uv level Layout improvements --- README.md | 2 + app/src/main/assets/leaflet.css | 4 ++ app/src/main/assets/rainviewer.html | 48 ++++++++++++------- .../activities/RainViewerActivity.java | 5 +- .../weather/database/PFASQLiteHelper.java | 18 +++---- .../dialogs/AddLocationDialogPhotonAPI.java | 2 + .../weather/services/UpdateDataService.java | 12 ++--- .../weather/ui/Help/StringFormatUtils.java | 14 +++--- .../ui/RecycleList/CityWeatherAdapter.java | 8 +++- .../ui/RecycleList/CourseOfDayAdapter.java | 3 ++ .../ui/RecycleList/WeekWeatherAdapter.java | 3 ++ app/src/main/res/drawable/ic_wind_empty.xml | 20 ++++++++ .../main/res/drawable/rounded_highlight.xml | 2 +- app/src/main/res/drawable/rounded_violet.xml | 14 ++++++ app/src/main/res/layout/card_overview.xml | 22 ++++++--- .../res/layout/list_item_course_of_day.xml | 33 ++++++++----- .../res/layout/list_item_week_forecast.xml | 33 ++++++++----- app/src/main/res/values-da/strings.xml | 16 +++---- app/src/main/res/values-de/strings.xml | 2 +- app/src/main/res/values-es/strings.xml | 2 +- app/src/main/res/values-fr/strings.xml | 2 +- app/src/main/res/values-hu/strings.xml | 16 +++---- app/src/main/res/values-it/strings.xml | 16 +++---- app/src/main/res/values-night/colors.xml | 1 + app/src/main/res/values-nl/strings.xml | 16 +++---- app/src/main/res/values-pt/strings.xml | 16 +++---- app/src/main/res/values-ru/strings.xml | 2 +- app/src/main/res/values-sv/strings.xml | 16 +++---- app/src/main/res/values/colors.xml | 1 + app/src/main/res/values/strings.xml | 2 +- app/src/main/res/xml/pref_general.xml | 2 +- 31 files changed, 224 insertions(+), 129 deletions(-) create mode 100644 app/src/main/res/drawable/ic_wind_empty.xml create mode 100644 app/src/main/res/drawable/rounded_violet.xml diff --git a/README.md b/README.md index cb5aec2..dbe979f 100644 --- a/README.md +++ b/README.md @@ -24,6 +24,8 @@ For subscriptions later than Aug 15, 2022 you need a free subscription and OneCa Please register for free account at: https://home.openweathermap.org/users/sign_up +Use [omWeather](https://github.com/woheller69/omweather) instead if you do not yet have an API key. + [](https://f-droid.org/de/packages/org.woheller69.weather/) diff --git a/app/src/main/assets/leaflet.css b/app/src/main/assets/leaflet.css index 609a662..16d172b 100644 --- a/app/src/main/assets/leaflet.css +++ b/app/src/main/assets/leaflet.css @@ -638,3 +638,7 @@ svg.leaflet-image-layer.leaflet-interactive path { margin-left: -12px; border-right-color: #fff; } +.leaflet-tile-container img { + width: 257px !important; + height: 257px !important; +} \ No newline at end of file diff --git a/app/src/main/assets/rainviewer.html b/app/src/main/assets/rainviewer.html index 35cd979..3e09592 100644 --- a/app/src/main/assets/rainviewer.html +++ b/app/src/main/assets/rainviewer.html @@ -35,7 +35,7 @@