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 PwsObservationsDTO} contains the most recent weather condition
17 * observations from the Personl Weather Station (PWS).
19 * @author Mark Hilbush - Initial contribution
21 public class PwsObservationsDTO {
23 * An array of length 1 of observations that represent the
24 * most recent PWS observations
26 public Observations[] observations;
28 public class Observations {
30 * Object containing fields that use a defined unit of measure.
31 * The object label is dependent on the units parameter assigned
34 public Imperial imperial;
37 * Two-character country code
39 public String country;
42 * Time in UNIX seconds
47 * The relative humidity of the air
49 public Double humidity;
57 * Longitude of the PWS
62 * Neighborhood associated with the PWS location
64 public String neighborhood;
67 * Time observation is valid in local apparent time by timezone - tz
68 * Format "2019-03-06 17:44:44"
70 public String obsTimeLocal;
74 * Format ISO 8601 - yyyy-MM-dd'T'HH:mm:ssZZ
76 public String obsTimeUtc;
79 * Quality control indicator:
80 * -1: No quality control check performed
81 * 0: This observation was marked as possibly incorrect by our quality control algorithm
82 * 1: This observation passed quality control checks
84 public Integer qcStatus;
87 * Frequency of data report updates in minutes
89 public Object realtimeFrequency;
92 * Software type of the PWS
94 public String softwareType;
97 * Solar radiation in Watts/meter2
99 public Double solarRadiation;
102 * ID as registered by wunderground.com
104 public String stationID;
107 * UV reading of the intensity of solar radiation
112 * Wind direction in degrees
114 public Integer winddir;
117 public class Imperial {
119 * The temperature which air must be cooled at constant pressure to reach saturation
124 * Elevation of the PWS in feet
129 * An apparent temperature. It represents what the air
130 * temperature “feels like” on exposed human skin due to the combined effect
131 * of warm temperatures and high humidity.
133 public Double heatIndex;
136 * Instantaneous precipitation rate. How much rain would fall if the
137 * precipitation intensity did not change for one hour
139 public Double precipRate;
142 * Accumulated precipitation for today from midnight to present.
144 public Double precipTotal;
147 * Mean Sea Level Pressure, the equivalent pressure reading at sea level recorded at this station
149 public Double pressure;
157 * An apparent temperature. It represents what the air temperature “feels like” on exposed human
158 * skin due to the combined effect of the cold temperatures and wind speed.
160 public Double windChill;
163 * Sudden and temporary variations of the average Wind Speed.
165 public Double windGust;
168 * The wind is treated as a vector; hence, winds must have direction and magnitude (speed).
169 * The wind information reported in the hourly current conditions corresponds to
170 * a 10-minute average called the sustained wind speed
172 public Double windSpeed;