]> git.basschouten.com Git - openhab-addons.git/blob
43bba57ca35422107f0b8ebb770dabdac070cddb
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2023 Contributors to the openHAB project
3  *
4  * See the NOTICE file(s) distributed with this work for additional
5  * information.
6  *
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
10  *
11  * SPDX-License-Identifier: EPL-2.0
12  */
13 package org.openhab.binding.weathercompany.internal.model;
14
15 /**
16  * The {@link PwsObservationsDTO} contains the most recent weather condition
17  * observations from the Personl Weather Station (PWS).
18  *
19  * @author Mark Hilbush - Initial contribution
20  */
21 public class PwsObservationsDTO {
22     /*
23      * An array of length 1 of observations that represent the
24      * most recent PWS observations
25      */
26     public Observations[] observations;
27
28     public class Observations {
29         /*
30          * Object containing fields that use a defined unit of measure.
31          * The object label is dependent on the units parameter assigned
32          * in the request
33          */
34         public Imperial imperial;
35
36         /*
37          * Two-character country code
38          */
39         public String country;
40
41         /*
42          * Time in UNIX seconds
43          */
44         public long epoch;
45
46         /*
47          * The relative humidity of the air
48          */
49         public Double humidity;
50
51         /*
52          * Latitude of the PWS
53          */
54         public Double lat;
55
56         /*
57          * Longitude of the PWS
58          */
59         public Double lon;
60
61         /*
62          * Neighborhood associated with the PWS location
63          */
64         public String neighborhood;
65
66         /*
67          * Time observation is valid in local apparent time by timezone - tz
68          * Format "2019-03-06 17:44:44"
69          */
70         public String obsTimeLocal;
71
72         /*
73          * GMT (UTC) time
74          * Format ISO 8601 - yyyy-MM-dd'T'HH:mm:ssZZ
75          */
76         public String obsTimeUtc;
77
78         /*
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
83          */
84         public Integer qcStatus;
85
86         /*
87          * Frequency of data report updates in minutes
88          */
89         public Object realtimeFrequency;
90
91         /*
92          * Software type of the PWS
93          */
94         public String softwareType;
95
96         /*
97          * Solar radiation in Watts/meter2
98          */
99         public Double solarRadiation;
100
101         /*
102          * ID as registered by wunderground.com
103          */
104         public String stationID;
105
106         /*
107          * UV reading of the intensity of solar radiation
108          */
109         public Double uv;
110
111         /*
112          * Wind direction in degrees
113          */
114         public Integer winddir;
115     }
116
117     public class Imperial {
118         /*
119          * The temperature which air must be cooled at constant pressure to reach saturation
120          */
121         public Double dewpt;
122
123         /*
124          * Elevation of the PWS in feet
125          */
126         public Double elev;
127
128         /*
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.
132          */
133         public Double heatIndex;
134
135         /*
136          * Instantaneous precipitation rate. How much rain would fall if the
137          * precipitation intensity did not change for one hour
138          */
139         public Double precipRate;
140
141         /*
142          * Accumulated precipitation for today from midnight to present.
143          */
144         public Double precipTotal;
145
146         /*
147          * Mean Sea Level Pressure, the equivalent pressure reading at sea level recorded at this station
148          */
149         public Double pressure;
150
151         /*
152          * Temperature
153          */
154         public Double temp;
155
156         /*
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.
159          */
160         public Double windChill;
161
162         /*
163          * Sudden and temporary variations of the average Wind Speed.
164          */
165         public Double windGust;
166
167         /*
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
171          */
172         public Double windSpeed;
173     }
174 }