74 char *web_root; ///< WWW root directory |
74 char *web_root; ///< WWW root directory |
75 } sys_config; |
75 } sys_config; |
76 |
76 |
77 |
77 |
78 /** |
78 /** |
79 * @brief Structure for the nodes. Database table 'nodes'. |
79 * @brief Structure for the nodes. Database table 'mon_nodes'. |
80 */ |
80 */ |
81 typedef struct _sys_node_list { |
81 typedef struct _sys_node_list { |
82 struct _sys_node_list *next; |
82 struct _sys_node_list *next; |
83 char *uuid; ///< uuid string |
83 char *uuid; ///< uuid string |
84 char *node; ///< nodename |
84 char *node; ///< nodename |
149 ALARM_FLAG_CHILLER = 0x0100, ///< Chiller too warm |
149 ALARM_FLAG_CHILLER = 0x0100, ///< Chiller too warm |
150 } ALARM_FLAGS; |
150 } ALARM_FLAGS; |
151 |
151 |
152 |
152 |
153 /** |
153 /** |
154 * @brief Structure for the fermenters. Stored in database table 'fermenters'. |
154 * @brief Structure for the fermenters. Stored in database table 'mon_fermenters'. |
155 */ |
155 */ |
156 typedef struct _fermenter_list { |
156 typedef struct _fermenter_list { |
157 struct _fermenter_list *next; |
157 struct _fermenter_list *next; |
158 char *uuid; ///< Fixed uuid string |
158 char *uuid; ///< Fixed uuid string |
159 char *alias; ///< Fixed short name |
159 char *alias; ///< Fixed short name |
247 } fermentation_log; |
247 } fermentation_log; |
248 |
248 |
249 |
249 |
250 |
250 |
251 /** |
251 /** |
|
252 * @brief Structure for the co2meters. Stored in database table 'mon_co2meters'. |
|
253 */ |
|
254 typedef struct _co2meter_list { |
|
255 struct _co2meter_list *next; |
|
256 char *uuid; ///< Fixed uuid string |
|
257 char *alias; ///< Fixed short name |
|
258 char *node; ///< Fixed node name |
|
259 bool online; ///< Online status |
|
260 char *mode; ///< Working mode |
|
261 char *beercode; ///< Beer unique code |
|
262 char *beername; ///< Beer name in fermenter |
|
263 char *beeruuid; ///< Beer uuid in fermenter |
|
264 char *temperature_state; ///< Temperature sensor state |
|
265 char *temperature_address; ///< Temperature sensor address |
|
266 float temperature; ///< Temperature value |
|
267 char *pressure_state; ///< Pressure sensor state |
|
268 uint8_t pressure_channel; ///< Pressure sensor channel |
|
269 float pressure_voltage; ///< Pressure voltage reading |
|
270 float pressure_zero; ///< Pressure zero offset voltage |
|
271 float pressure_bar; ///< Pressure in bar |
|
272 } sys_co2meter_list; |
|
273 |
|
274 |
|
275 /** |
|
276 * @brief Strcuture holding a co2 pressure log entry. |
|
277 */ |
|
278 typedef struct co2meter_log { |
|
279 char *datetime; ///< Date/time stamp |
|
280 char *product_uuid; ///< Product uuid |
|
281 char *product_code; ///< Product code |
|
282 char *product_name; ///< Product name |
|
283 float temperature; ///< Temperature |
|
284 float pressure; ///< Pressure |
|
285 char *co2meter_uuid; ///< Unit uuid |
|
286 char *co2meter_node; ///< Unit node |
|
287 char *co2meter_alias; ///< Unit alias |
|
288 } co2pressure_log; |
|
289 |
|
290 |
|
291 |
|
292 /** |
252 * @brief Brew computer controllers. Must have hardware + installation + recipe data. |
293 * @brief Brew computer controllers. Must have hardware + installation + recipe data. |
253 */ |
294 */ |
254 typedef struct _brewer_list { |
295 typedef struct _brewer_list { |
255 struct _brewer_list *next; |
296 struct _brewer_list *next; |
256 char *uuid; |
297 char *uuid; |