]> git.basschouten.com Git - openhab-addons.git/blob
b722cb7ce6f991a28a742010b68182051975cb82
[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.ambientweather.internal.model;
14
15 /**
16  * The {@link EventDataJson} is the JSON object returned
17  * from the Ambient Weather real-time API for the weather stations
18  * whose weather data is hosted on ambientweather.net. This object is
19  * generated whenever the data for the station changes on
20  * ambientweather.net.
21  *
22  * @author Mark Hilbush - Initial Contribution
23  */
24 public class EventDataJson {
25     /*
26      * The weather station's MAC address
27      */
28     public String macAddress;
29
30     /*
31      * Date of the weather observation in UTC format
32      */
33     public long dateutc;
34
35     /*
36      * Date of the weather observation as a string
37      */
38     public String date;
39
40     /*
41      * Temperature from station in degrees F
42      */
43     public Double tempf;
44
45     /*
46      * Real-feel temperature
47      */
48     public Double feelsLike;
49
50     /*
51      * Dew point
52      */
53     public Double dewPoint;
54
55     /*
56      * Relative humidity from station
57      */
58     public Double humidity;
59
60     /*
61      * Relative barometric pressure in inches
62      */
63     public Double baromrelin;
64
65     /*
66      * Absolute barometric pressure in inches
67      */
68     public Double baromabsin;
69
70     /*
71      * Temperature from indoor sensor
72      */
73     public Double tempinf;
74
75     /*
76      * Humidity from indoor sensor
77      */
78     public Double humidityin;
79
80     /*
81      * Battery from indoor sensor
82      */
83     public String battin;
84
85     /*
86      * Solar radiation
87      */
88     public Double solarradiation;
89
90     /*
91      * UV Index
92      */
93     public Integer uv;
94
95     /*
96      * Carbon dioxide
97      */
98     public Double co;
99
100     /*
101      * Battery level
102      */
103     public String battout;
104
105     /*
106      * Wind speed
107      * Instantaneous wind speed, mph
108      */
109     public Double windspeedmph;
110
111     /*
112      * Wind direction
113      * Instantaneous wind direction, 0-360 degrees
114      */
115     public Integer winddir;
116
117     /*
118      * Wind gust speed
119      * Max wind speed in the last 10 minutes, mph
120      */
121     public Double windgustmph;
122
123     /*
124      * Wind gust direction
125      * Wind direction at which the wind gust occurred, 0-360 degrees
126      */
127     public Integer windgustdir;
128
129     /*
130      * Maximum daily wind gust speed
131      * Maximum wind speed in last day, mph
132      */
133     public Double maxdailygust;
134
135     /*
136      * Wind speed 2-minute average
137      * Average wind speed, 2 minute average, mph
138      * Name must contain underscore
139      */
140     public Double windspdmph_avg2m;
141
142     /*
143      * Wind direction 2 minute average
144      * Average wind direction, 2 minute average, 0-360 degrees
145      * Name must contain underscore
146      */
147     public Integer winddir_avg2m;
148
149     /*
150      * Wind speed 10-minute average
151      * Average wind speed, 10 minute average, mph
152      * Name must contain underscore
153      */
154     public Double windspdmph_avg10m;
155
156     /*
157      * Wind direction 10 minute average
158      * Average wind direction, 10 minute average, 0-360 degrees
159      * Name must contain underscore
160      */
161     public Integer winddir_avg10m;
162
163     /*
164      * Hourly rain rate in inches/hour
165      */
166     public Double hourlyrainin;
167
168     /*
169      * Daily rain, inches
170      */
171     public Double dailyrainin;
172
173     /*
174      * Weekly rain, inches
175      */
176     public Double weeklyrainin;
177
178     /*
179      * Monthly rain, inches
180      */
181     public Double monthlyrainin;
182
183     /*
184      * Yearly rain, inches
185      */
186     public Double yearlyrainin;
187
188     /*
189      * Event rain, inches
190      */
191     public Double eventrainin;
192
193     /*
194      * Rain in past 24 hours, inches
195      * Can't use since it starts with numbers
196      */
197     // public double 24hourrainin;
198
199     /*
200      * Total rain since last factory reset, inches
201      */
202     public Double totalrainin;
203
204     /*
205      * lastRain - Last time hourlyrainin > 0,
206      */
207     public String lastRain;
208
209     /*
210      * Temperature from remote sensors 1-10
211      */
212     public Double temp1f;
213     public Double temp2f;
214     public Double temp3f;
215     public Double temp4f;
216     public Double temp5f;
217     public Double temp6f;
218     public Double temp7f;
219     public Double temp8f;
220     public Double temp9f;
221     public Double temp10f;
222
223     /*
224      * Relative humidity from remote sensors 1-10
225      */
226     public Double humidity1;
227     public Double humidity2;
228     public Double humidity3;
229     public Double humidity4;
230     public Double humidity5;
231     public Double humidity6;
232     public Double humidity7;
233     public Double humidity8;
234     public Double humidity9;
235     public Double humidity10;
236
237     /*
238      * Battery status of remote sensors 1-10
239      * Good/Bad indication, String, 1=Good, 0=Bad
240      */
241     public String batt1;
242     public String batt2;
243     public String batt3;
244     public String batt4;
245     public String batt5;
246     public String batt6;
247     public String batt7;
248     public String batt8;
249     public String batt9;
250     public String batt10;
251
252     /*
253      * Relay 1-10
254      */
255     public String relay1;
256     public String relay2;
257     public String relay3;
258     public String relay4;
259     public String relay5;
260     public String relay6;
261     public String relay7;
262     public String relay8;
263     public String relay9;
264     public String relay10;
265
266     /*
267      * Soil temperature from remote sensors 1-10
268      */
269     public Double soiltemp1;
270     public Double soiltemp2;
271     public Double soiltemp3;
272     public Double soiltemp4;
273     public Double soiltemp5;
274     public Double soiltemp6;
275     public Double soiltemp7;
276     public Double soiltemp8;
277     public Double soiltemp9;
278     public Double soiltemp10;
279
280     /*
281      * Soil moisture from remote sensors 1-10
282      */
283     public Double soilhum1;
284     public Double soilhum2;
285     public Double soilhum3;
286     public Double soilhum4;
287     public Double soilhum5;
288     public Double soilhum6;
289     public Double soilhum7;
290     public Double soilhum8;
291     public Double soilhum9;
292     public Double soilhum10;
293 }