-
Notifications
You must be signed in to change notification settings - Fork 0
/
hhg-config.h.in
81 lines (72 loc) · 3.17 KB
/
hhg-config.h.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
/***************************************************************************
*
* Hi Happy Garden
* Copyright (C) 2023/2025 Antonio Salsi <[email protected]>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
***************************************************************************/
#ifndef HHG_CONFIG_H
#define HHG_CONFIG_H
#define HHG_NAME "@PROJECT_NAME@"
#define HHG_VER "@PROJECT_VERSION@"
#define HHG_VER_MAJOR (@PROJECT_VERSION_MAJOR@)
#define HHG_VER_MINOR (@PROJECT_VERSION_MINOR@)
#define HHG_VER_PATCH (@PROJECT_VERSION_PATCH@)
#define HHG_DIVISOR "@DIVISOR@"
#define HHG_SCHEDULES_SIZE (@SCHEDULES_SIZE@)
#define HHG_ZONES_SIZE (@ZONES_SIZE@)
#define HHG_ADMIN_USER "@ADMIN_USER@"
#define HHG_ADMIN_PASSWD "@ADMIN_PASSWD@"
#define HHG_USER "@USER@"
#define HHG_PASSWD "@PASSWD@"
#if !defined(HHG_ADMIN_USER) || !defined(HHG_ADMIN_PASSWD)
#error HHG_ADMIN_USER or HHG_ADMIN_PASSWD are mandatory
#endif
#define HHG_WIFI_DISABLE (@WIFI_DISABLE@)
#define HHG_WIFI_DISABLE_NTP_TIMESTAMP (@WIFI_DISABLE_NTP_TIMESTAMP@)
#define HHG_WIFI_CONNECTION_TIMEOUT (@WIFI_CONNECTION_TIMEOUT@)
#if HHG_WIFI_CONNECTION_TIMEOUT > 30000
#error HHG_WIFI_CONNECTION_TIMEOUT max value permitted 30000
#endif
#define HHG_NTP_MSG_LEN (@NTP_MSG_LEN@)
#define HHG_NTP_PORT (@NTP_PORT@)
#define HHG_NTP_SERVER "@NTP_SERVER@"
#define HHG_MQTT_SUBSCRIPTION_BROKER "@MQTT_SUBSCRIPTION_BROKER@"
#define HHG_DAYLIGHT_SAVING_TIME (@DAYLIGHT_SAVING_TIME_START_MONTH@)
#define HHG_TIMEZONE (@TIMEZONE@)
#define HHG_DAYLIGHT_SAVING_TIME_START_MONTH (@DAYLIGHT_SAVING_TIME_START_MONTH@)
#if HHG_DAYLIGHT_SAVING_TIME_START_MONTH > 12
#error HHG_DAYLIGHT_SAVING_TIME_START_MONTH max value permitted 12
#endif
#define HHG_DAYLIGHT_SAVING_TIME_START_DAY (@DAYLIGHT_SAVING_TIME_START_DAY@)
#if HHG_DAYLIGHT_SAVING_TIME_START_DAY > 31
#error HHG_DAYLIGHT_SAVING_TIME_START_MONTH max value permitted 31
#endif
#define HHG_DAYLIGHT_SAVING_TIME_START_HOUR (@DAYLIGHT_SAVING_TIME_START_HOUR@)
#if HHG_DAYLIGHT_SAVING_TIME_START_HOUR > 24
#error HHG_DAYLIGHT_SAVING_TIME_START_HOUR max value permitted 24
#endif
#define HHG_DAYLIGHT_SAVING_TIME_END_MONTH (@DAYLIGHT_SAVING_TIME_END_MONTH@)
#if HHG_DAYLIGHT_SAVING_TIME_END_MONTH > 12
#error HHG_DAYLIGHT_SAVING_TIME_END_MONTH max value permitted 12
#endif
#define HHG_DAYLIGHT_SAVING_TIME_END_DAY (@DAYLIGHT_SAVING_TIME_END_DAY@)
#if HHG_DAYLIGHT_SAVING_TIME_END_DAY > 31
#error HHG_DAYLIGHT_SAVING_TIME_END_DAY max value permitted 31
#endif
#define HHG_DAYLIGHT_SAVING_TIME_END_HOUR (@DAYLIGHT_SAVING_TIME_END_HOUR@)
#if HHG_DAYLIGHT_SAVING_TIME_END_HOUR > 24
#error HHG_DAYLIGHT_SAVING_TIME_END_HOUR max value permitted 24
#endif
#endif // HHG_CONFIG_H