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 (true)
55 
60 #define USE_SENSOR_OA2 (false)
61 #define USE_SENSOR_OA3 (false)
62 
67 #define USE_SENSOR_OB2 (false)
68 #define USE_SENSOR_OB3 (false)
69 
74 #define USE_SENSOR_OC2 (false)
75 #define USE_SENSOR_OC3 (false)
76 
81 #define USE_SENSOR_OD2 (false)
82 #define USE_SENSOR_OD3 (false)
83 
88 #define USE_SENSOR_OE3 (false)
89 
94 #define USE_SENSOR_LWT (false)
95 
100 #define USE_SENSOR_HI7 (false)
101 
106 #define USE_SENSOR_BMP (false)
107 
112 #define USE_SENSOR_DW1 (false)
113 
118 #define USE_SENSOR_TBR (true)
119 
124 #define USE_SENSOR_STH (false)
125 
130 #define USE_SENSOR_ITH (true)
131 
136 #define USE_SENSOR_NTH (true)
137 
142 #define USE_SENSOR_MTH (true)
143 
148 #define USE_SENSOR_XTH (true)
149 
154 #define USE_SENSOR_SSD (false)
155 
160 #define USE_SENSOR_ISD (false)
161 
166 #define USE_SENSOR_NSD (false)
167 
172 #define USE_SENSOR_MSD (false)
173 
178 #define USE_SENSOR_XSD (false)
179 
184 #define USE_SENSOR_SMI (false)
185 
190 #define USE_SENSOR_IMI (false)
191 
196 #define USE_SENSOR_NMI (false)
197 
202 #define USE_SENSOR_MMI (false)
203 
208 #define USE_SENSOR_GWS (false)
209 
214 #define USE_SENSOR_XMI (false)
215 
220 #define USE_SENSOR_RF24 (false)
221 
226 #define RAIN_FOR_TIP (1)
227 
232 #define VALUES_TO_READ_FROM_SENSOR_COUNT (3)
233 #define JSONS_TO_READ_FROM_SENSOR_COUNT (3)
234 
235 // sampling every 3-15 seconds --> watchdog timer (SENSORS_SAMPLE_TIME_S in relative modules)
236 // observations with processing every 1-10 minutes (minutes for processing sampling)
237 // report every 5-60 minutes (> OBSERVATIONS_MINUTES)
238 // reported data is calulate by moving average on STATISTICAL_DATA_MINUTES window
239 
240 // observations every 1-10 minutes (minutes for processing samples)
241 // report every 5-60 minutes (minutes for report. > n * OBSERVATIONS_MINUTES)
242 
247 #define OBSERVATIONS_MINUTES (1)
248 
253 #define STATISTICAL_DATA_COUNT (15)
254 
259 #define OBSERVATION_COUNT (STATISTICAL_DATA_COUNT * 2)
260 
265 #define OBSERVATION_COUNT_TOLLERANCE (1)
266 
267 #if (OBSERVATION_COUNT < STATISTICAL_DATA_COUNT)
268 #error OBSERVATION_COUNT must be major of STATISTICAL_DATA_COUNT !!!
269 #endif
270 
271 #endif