Fix #2405 - Pirate Weather - Clean up unused fields

This commit is contained in:
Julien Papasian 2025-11-21 12:43:12 +01:00
parent 5d42ec2856
commit 4ac2d5afa7
8 changed files with 264 additions and 305 deletions

View file

@ -4,14 +4,15 @@
- [Changelog for v4.x](docs/CHANGELOG_4.x.md)
# Version 6.1.x (not yet released)
The following features are already available in the current branch, but will be removed before each v6.0.x release and restored after, during the testing phase.
# Version 6.1.0 (not yet released)
**New features**
- Content provider: allows (with your permission) other apps to query your weather data. [Read the announcement](https://github.com/breezy-weather/breezy-weather/discussions/2089)
- New broadcast: you can use `org.breezyweather.ACTION_UPDATE_NOTIFIER` (or `org.breezyweather.debug.ACTION_UPDATE_NOTIFIER` with the debug build) to be notified of updated locations (most common use case is coupled with the content provider)
**Weather sources**
- Pirate Weather - Fix refresh error
# Version 6.0.12 (2025-11-11)

View file

@ -25,7 +25,6 @@ data class PirateWeatherAlert(
@SerialName("time") val start: Long,
@SerialName("expires") val end: Long,
val description: String?,
val regions: List<String>?,
val severity: String?,
val uri: String?,
)

View file

@ -24,11 +24,6 @@ data class PirateWeatherCurrently(
val icon: String?,
val summary: String?,
val precipType: String?,
val precipIntensity: Double?,
val precipProbability: Double?,
val precipIntensityError: Double?,
val temperature: Double?,
val apparentTemperature: Double?,

View file

@ -24,40 +24,15 @@ data class PirateWeatherDaily(
val icon: String?,
val summary: String?,
val precipType: String?,
val precipIntensity: Double?,
val precipIntensityMax: Double?,
val precipIntensityMaxTime: Long?,
val precipProbability: Double?,
val precipAccumulation: Double?,
val temperatureHigh: Double?,
val temperatureHighTime: Long?,
val temperatureLow: Double?,
val temperatureLowTime: Long?,
val apparentTemperatureHigh: Double?,
val apparentTemperatureHighTime: Long?,
val apparentTemperatureLow: Double?,
val apparentTemperatureLowTime: Long?,
val temperatureMin: Double?,
val temperatureMinTime: Long?,
val temperatureMax: Double?,
val temperatureMaxTime: Long?,
val apparentTemperatureMin: Double?,
val apparentTemperatureMinTime: Long?,
val apparentTemperatureMax: Double?,
val apparentTemperatureMaxTime: Long?,
val dewPoint: Double?,
val humidity: Double?,
val pressure: Double?,
val windSpeed: Double?,
val windGust: Double?,
val windGustTime: Long?,
val windBearing: Double?,
val cloudCover: Double?,
val uvIndex: Double?,
val uvIndexTime: Long?,
val visibility: Double?,
)

View file

@ -20,11 +20,6 @@ import kotlinx.serialization.Serializable
@Serializable
data class PirateWeatherForecastResult(
val latitude: Double?,
val longitude: Double?,
val timezone: String?,
val offset: Double?,
val elevation: Int?,
val currently: PirateWeatherCurrently?,
val minutely: PirateWeatherForecast<PirateWeatherMinutely>?,
val hourly: PirateWeatherForecast<PirateWeatherHourly>?,

View file

@ -24,10 +24,7 @@ data class PirateWeatherHourly(
val icon: String?,
val summary: String?,
val precipType: String?,
val precipIntensity: Double?,
val precipProbability: Double?,
val precipIntensityError: Double?,
val precipAccumulation: Double?,
val liquidAccumulation: Double?,
val snowAccumulation: Double?,

View file

@ -21,8 +21,5 @@ import kotlinx.serialization.Serializable
@Serializable
data class PirateWeatherMinutely(
val time: Long,
val precipType: String?,
val precipIntensity: Double?,
val precipProbability: Double?,
val precipIntensityError: Double?,
)

View file

@ -5,7 +5,7 @@ Must be completed by checking the national agency website listed in [COVERAGE.md
This will help putting the correct default units for every country *and* territory, since the CLDR data is incomplete.
| Code | English name | Temp. | Wind | Vis. | Prec. | Pres. | Source | Last checked |
|------|----------------------------------------------|-------|------|------|-------|-------|--------------|--------------|
|------|----------------------------------------------|-------|-----------------------|------|-------|-------|--------------|--------------|
| AD | Andorra | | | | | | | |
| AE | United Arab Emirates | | | | | | | |
| AF | Afghanistan | | | | | | | |
@ -171,7 +171,7 @@ This will help putting the correct default units for every country *and* territo
| NF | Norfolk Island | | | | | | | |
| NG | Nigeria | | | | | | | |
| NI | Nicaragua | | | | | | | |
| NL | Kingdom of the Netherlands | °C | m/s | m | mm/cm | hPa | KNMI | 2025-09-03 |
| NL | Kingdom of the Netherlands | °C | bft, m/s, gusts: km/h | m | mm/cm | hPa | KNMI | 2025-09-03 |
| NO | Norway | | | | | | | |
| NP | Nepal | | | | | | | |
| NR | Nauru | | | | | | | |