2 * Copyright (c) 2010-2023 Contributors to the openHAB project
4 * See the NOTICE file(s) distributed with this work for additional
7 * This program and the accompanying materials are made available under the
8 * terms of the Eclipse Public License 2.0 which is available at
9 * http://www.eclipse.org/legal/epl-2.0
11 * SPDX-License-Identifier: EPL-2.0
13 package org.openhab.binding.weathercompany.internal.model;
16 * The {@link DayPartDTO} is the JSON object that contains the n-day forecast.
18 * The daypart object as well as the temperatureMax field will
19 * appear as null in the API after 3:00 pm Local Apparent Time.
21 * @author Mark Hilbush - Initial contribution
23 public class DayPartDTO {
25 * The name of a 12 hour daypart not including day names in the
26 * first 48 hours (Today, Tonight)
28 public String[] daypartName;
31 * Day or night indicator (D, N)
33 public String[] dayOrNight;
36 * The narrative forecast for the daypart period
38 public String[] narrative;
41 * Sensible weather phrase
43 public String[] wxPhraseLong;
46 * Sensible weather phrase
48 public String[] wxPhraseShort;
51 * The maximum temperature between 7am and 7pm for daytime temperature and the minimum temperature
52 * between 7pm and 7am for night-time temperature. Minimum temperature also
54 public Double[] temperature;
58 * An apparent temperature. It represents what the air temperature “feels like” on exposed human skin
59 * due to the combined effect of warm temperatures and high humidity.
60 * When the temperature is 70°F or higher, the Feels Like value represents the computed Heat Index.
61 * For temperatures between 40°F and 70°F, the Feels Like value and Temperature are the same,
62 * regardless of wind speed and humidity, so use the Temperature value
64 public Double[] temperatureHeatIndex;
68 * An apparent temperature. It represents what the air temperature “feels like” on exposed human skin
69 * due to the combined effect of the cold temperatures and wind speed.
70 * When the temperature is 61°F or lower the Feels Like value represents the computed Wind Chill so display the
72 * For temperatures between 61°F and 75°F, the Feels Like value and Temperature are the same, regardless
73 * of wind speed and humidity, so display the Temperature value.
75 public Double[] temperatureWindChill;
78 * The relative humidity of the air, which is defined as the ratio of the amount of water vapor
79 * in the air to the amount of vapor required to bring the air to saturation at a constant
80 * temperature. Relative humidity is always expressed as a percentage
82 public Double[] relativeHumidity;
85 * Daytime average cloud cover expressed as a percentage
87 public Integer[] cloudCover;
90 * The maximum forecasted wind speed.
91 * The wind is treated as a vector; hence, winds must have direction and magnitude (speed).
92 * The wind information reported in the hourly current conditions corresponds to a 10-minute average
93 * called the sustained wind speed. Sudden or brief variations in the wind speed are known
94 * as “wind gusts” and are reported in a separate data field. Wind directions are always expressed
95 * as "from whence the wind blows" meaning that a North wind blows from North to South. If you face
96 * North in a North wind the wind is at your face. Face southward and the North wind is at your back
98 public Double[] windSpeed;
101 * Average wind direction in magnetic notation
103 public Integer[] windDirection;
106 * Average wind direction in cardinal notation
107 * N, NNE, NE, ENE, E, ESE, SE, SSE, S, SSW, SW, WSW, W, WNW, NW, NNW, CALM, VAR
109 public String[] windDirectionCardinal;
112 * The phrase that describes the wind direction and speed for a 12 hour daypart
114 public String[] windPhrase;
117 * Maximum probability of precipitation
119 public Integer[] precipChance;
122 * Type of precipitation to display with the probability of precipitation
123 * data element. (rain, snow, precip)
125 public String[] precipType;
128 * The description of probability thunderstorm activity in an area for 12 hour daypart
129 * 0 = "No thunder"; 1 = "Thunder possible"; 2 = "Thunder expected"; 3 = "Severe thunderstorms possible";
130 * 4 = "Severe thunderstorms likely"; 5 = "High risk of severe thunderstorms"
132 public String[] thunderCategory;
135 * The enumeration of thunderstorm probability within an area for a 12 hour daypart
137 public Integer[] thunderIndex;
140 * The forecasted measurable precipitation (liquid or liquid equivalent) during 12 or 24 hour period
145 * The forecasted measurable precipitation as snow during the 12 or 24 hour forecast period
147 public Double[] qpfSnow;
150 * A phrase associated to the qualifier code describing special weather criteria
152 public String[] qualifierPhrase;
157 public String[] qualifierCode;
160 * Snow accumulation amount for the 12 hour forecast period
162 public String[] snowRange;
165 * The UV Index Description which complements the UV Index value by providing an associated
166 * level of risk of skin damage due to exposure.
167 * -2 = Not Available, -1 = No Report, 0 to 2 = Low, 3 to 5 = Moderate,
168 * 6 to 7 = High, 8 to 10 = Very High, 11 to 16 = Extreme
170 public String[] uvDescription;
173 * Maximum UV index for the 12 hour forecast period
175 public Integer[] uvIndex;
178 * This number is the key to the weather icon lookup. The data field shows the icon
179 * number that is matched to represent the observed weather conditions
181 public Integer[] iconCode;
184 * Code representing full set sensible weather
186 public Integer[] iconCodeExtend;