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.ambientweather.internal.model;
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
22 * @author Mark Hilbush - Initial Contribution
24 public class EventDataJson {
26 * The weather station's MAC address
28 public String macAddress;
31 * Date of the weather observation in UTC format
36 * Date of the weather observation as a string
41 * Temperature from station in degrees F
46 * Real-feel temperature
48 public Double feelsLike;
53 public Double dewPoint;
56 * Relative humidity from station
58 public Double humidity;
61 * Relative barometric pressure in inches
63 public Double baromrelin;
66 * Absolute barometric pressure in inches
68 public Double baromabsin;
71 * Temperature from indoor sensor
73 public Double tempinf;
76 * Humidity from indoor sensor
78 public Double humidityin;
81 * Battery from indoor sensor
88 public Double solarradiation;
103 public String battout;
107 * Instantaneous wind speed, mph
109 public Double windspeedmph;
113 * Instantaneous wind direction, 0-360 degrees
115 public Integer winddir;
119 * Max wind speed in the last 10 minutes, mph
121 public Double windgustmph;
124 * Wind gust direction
125 * Wind direction at which the wind gust occurred, 0-360 degrees
127 public Integer windgustdir;
130 * Maximum daily wind gust speed
131 * Maximum wind speed in last day, mph
133 public Double maxdailygust;
136 * Wind speed 2-minute average
137 * Average wind speed, 2 minute average, mph
138 * Name must contain underscore
140 public Double windspdmph_avg2m;
143 * Wind direction 2 minute average
144 * Average wind direction, 2 minute average, 0-360 degrees
145 * Name must contain underscore
147 public Integer winddir_avg2m;
150 * Wind speed 10-minute average
151 * Average wind speed, 10 minute average, mph
152 * Name must contain underscore
154 public Double windspdmph_avg10m;
157 * Wind direction 10 minute average
158 * Average wind direction, 10 minute average, 0-360 degrees
159 * Name must contain underscore
161 public Integer winddir_avg10m;
164 * Hourly rain rate in inches/hour
166 public Double hourlyrainin;
171 public Double dailyrainin;
174 * Weekly rain, inches
176 public Double weeklyrainin;
179 * Monthly rain, inches
181 public Double monthlyrainin;
184 * Yearly rain, inches
186 public Double yearlyrainin;
191 public Double eventrainin;
194 * Rain in past 24 hours, inches
195 * Can't use since it starts with numbers
197 // public double 24hourrainin;
200 * Total rain since last factory reset, inches
202 public Double totalrainin;
205 * lastRain - Last time hourlyrainin > 0,
207 public String lastRain;
210 * Temperature from remote sensors 1-10
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;
224 * Relative humidity from remote sensors 1-10
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;
238 * Battery status of remote sensors 1-10
239 * Good/Bad indication, String, 1=Good, 0=Bad
250 public String batt10;
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;
267 * Soil temperature from remote sensors 1-10
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;
281 * Soil moisture from remote sensors 1-10
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;