-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathconfig.cpp
More file actions
46 lines (37 loc) · 2.52 KB
/
config.cpp
File metadata and controls
46 lines (37 loc) · 2.52 KB
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
/*
* File: config.cpp
* Project: nodemcu-clock
* Created Date: 2022-11-14 19:12:41
* Author: 3urobeat
*
* Last Modified: 2025-10-26 20:07:28
* Modified By: 3urobeat
*
* Copyright (c) 2022 - 2025 3urobeat <https://github.com/3urobeat>
*
* 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, or (at your option) any later version.
* 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 <https://www.gnu.org/licenses/>.
*/
// Define config variables at compile time or leave empty (default) to use setupMode
// Note: ESP8266 Flash needs to be empty for these values to be kept, otherwise the values already in flash will be used!
namespace Config
{
uint8_t maxcol = 20; // Width of the display
char wifiSSID[5][32] = { "", "", "", "", "" }; // You can provide up to 5 different networks
char wifiPW[5][32] = { "", "", "", "", "" };
char setupWifiPW[32] = "setuppassword136"; // Password used for hosted wifi network in setup mode
char lat[8] = ""; // Set your location manually with latitudinal and longitudinal coordinates. If you leave it empty the program will get you general location automatically via your IP.
char lon[8] = "";
char weatherapitoken[33] = "";
char newsapitoken[33] = "";
char spotifyClientID[33] = "";
char spotifyClientSecret[33] = "";
char dateformat[11] = "dd.mm.yyyy";
char timeformat[9] = "hh:mm:ss";
char miniClockFormat[6] = "hh:mm";
char pageOrder[6][32] = { "clock", "weather", "dino", "news", "flappy", "spotify" }; // Set an element to "0" to skip that page
uint32_t showuntil[6] = { 10000, 10000, 10000, 0, 10000, 10000 }; // How long each page should be shown in ms (Special Case: Set to 0 if page should progress on event, news page would progress when headline was fully displayed)
bool alwaysShowTime = true; // Always show the time in the upper right corner
uint16_t pageElemSwitch = 2500; // After how much ms a page should switch between elements (for example date & weekday on clock page, temp & sunrise on weather page). Set to 0 to disable
}