STIMA  3
sensors_config.h
Go to the documentation of this file.
1 
3 /*********************************************************************
4 Copyright (C) 2017 Marco Baldinetti <m.baldinetti@digiteco.it>
5 authors:
6 Paolo Patruno <p.patruno@iperbole.bologna.it>
7 Marco Baldinetti <m.baldinetti@digiteco.it>
8 
9 This program is free software; you can redistribute it and/or
10 modify it under the terms of the GNU General Public License as
11 published by the Free Software Foundation; either version 2 of
12 the License, or (at your option) any later version.
13 
14 This program is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 GNU General Public License for more details.
18 
19 You should have received a copy of the GNU General Public License
20 along with this program. If not, see <http://www.gnu.org/licenses/>.
21 **********************************************************************/
22 
23 #ifndef SENSOR_CONFIG_H
24 #define SENSOR_CONFIG_H
25 
30 #define USE_JSON (true)
31 
36 #define USE_SENSOR_ADT (false)
37 
42 #define USE_SENSOR_HIH (false)
43 
48 #define USE_SENSOR_HYT (false)
49 
54 #define USE_SENSOR_DEP (false)
55 
60 #define USE_SENSOR_DES (false)
61 
66 #define USE_SENSOR_DED (false)
67 
72 #define USE_SENSOR_DSR (false)
73 
78 #define USE_SENSOR_VSR (false)
79 
84 #define USE_SENSOR_DSA (false)
85 
90 #define USE_SENSOR_DWA (false)
91 
96 #define USE_SENSOR_DWB (false)
97 
102 #define USE_SENSOR_DWC (false)
103 
108 #define USE_SENSOR_DWD (false)
109 
114 #define USE_SENSOR_DWE (false)
115 
120 #define USE_SENSOR_OA2 (false)
121 #define USE_SENSOR_OA3 (false)
122 
127 #define USE_SENSOR_OB2 (false)
128 #define USE_SENSOR_OB3 (false)
129 
134 #define USE_SENSOR_OC2 (false)
135 #define USE_SENSOR_OC3 (false)
136 
141 #define USE_SENSOR_OD2 (false)
142 #define USE_SENSOR_OD3 (false)
143 
148 #define USE_SENSOR_OE3 (false)
149 
154 #define USE_SENSOR_LWT (false)
155 
160 #define USE_SENSOR_HI7 (false)
161 
166 #define USE_SENSOR_BMP (false)
167 
172 #define USE_SENSOR_DW1 (false)
173 
178 #define USE_SENSOR_TBR (false)
179 
184 #define USE_SENSOR_STH (false)
185 
190 #define USE_SENSOR_ITH (false)
191 
196 #define USE_SENSOR_NTH (false)
197 
202 #define USE_SENSOR_MTH (false)
203 
208 #define USE_SENSOR_XTH (false)
209 
214 #define USE_SENSOR_SSD (false)
215 
220 #define USE_SENSOR_ISD (false)
221 
226 #define USE_SENSOR_NSD (false)
227 
232 #define USE_SENSOR_MSD (false)
233 
238 #define USE_SENSOR_XSD (false)
239 
244 #define USE_SENSOR_SMI (false)
245 
250 #define USE_SENSOR_IMI (false)
251 
256 #define USE_SENSOR_NMI (false)
257 
262 #define USE_SENSOR_MMI (false)
263 
268 #define USE_SENSOR_GWS (true)
269 
274 #define USE_SENSOR_XMI (false)
275 
280 #define USE_SENSOR_RF24 (false)
281 
286 #define VALUES_TO_READ_FROM_SENSOR_COUNT (3)
287 #define JSONS_TO_READ_FROM_SENSOR_COUNT (3)
288 
289 // sampling every 3-15 seconds --> watchdog timer (SENSORS_SAMPLE_TIME_S in relative modules)
290 // observations with processing every 1-10 minutes (minutes for processing sampling)
291 // report every 5-60 minutes (> OBSERVATIONS_MINUTES)
292 // reported data is calulate by moving average on STATISTICAL_DATA_MINUTES window
293 
294 // observations every 1-10 minutes (minutes for processing samples)
295 // report every 5-60 minutes (minutes for report. > n * OBSERVATIONS_MINUTES)
296 
301 #define OBSERVATIONS_MINUTES (1)
302 
307 #define STATISTICAL_DATA_COUNT (15)
308 
313 #define OBSERVATION_COUNT (STATISTICAL_DATA_COUNT * 2)
314 
319 #define OBSERVATION_COUNT_TOLLERANCE (1)
320 
321 #if (OBSERVATION_COUNT < STATISTICAL_DATA_COUNT)
322 #error OBSERVATION_COUNT must be major of STATISTICAL_DATA_COUNT !!!
323 #endif
324 
325 #endif