123456789101112131415161718192021222324252627282930313233343536373839404142 |
- #ifndef INCLUDE_CONFIGURATION_H_
- #define INCLUDE_CONFIGURATION_H_
- #include <SmingCore.h>
- #include <JsonObjectStream.h>
- // If you want, you can define WiFi settings globally in Eclipse Environment Variables
- #ifndef WIFI_SSID
- #define WIFI_SSID "Heaven-WiFi" // Put your SSID and password here
- #define WIFI_PWD "Heaven-32847"
- #endif
- #define LedBrightMin 0
- #define LedBrightMiddl 3
- #define LedBrightMax 7
- #define CLOCK_CONFIG_FILE ".clock.conf" // leading point for security reasons :)
- struct ClockConfig {
- ClockConfig()
- {
- AddTZ = 3;
- BrightnessLow = LedBrightMin;
- BrightnessMiddle = LedBrightMiddl;
- BrightnessHigh = LedBrightMax;
- }
- String NetworkSSID;
- String NetworkPassword;
- float AddTZ; // TimeZone - local time offset
- int8_t BrightnessLow; // Low LED brightness level
- int8_t BrightnessMiddle; // Middle LED brightness level
- int8_t BrightnessHigh; // High LED brightness level
- };
- ClockConfig loadConfig();
- void saveConfig(ClockConfig& cfg);
- extern ClockConfig ActiveConfig;
- #endif /* INCLUDE_CONFIGURATION_H_ */
|