-
Notifications
You must be signed in to change notification settings - Fork 1
/
config.h.default
73 lines (64 loc) · 3.9 KB
/
config.h.default
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
/*
* BSB-LAN monitor (https://github.com/DE-cr/BSBmonCR)
* using esp32 with (optional) ssd1306 display
* (file config.h)
*/
//- WiFi credentials:
#define MY_SSID "MyWiFi"
#define MY_PASSWORD "MyPassword"
//- BSB parameters:
#define OUTSIDE_TEMPERATURE 8700
#define ROOMS_TEMPERATURE 8770
#define WATER_TEMPERATURE 8830
#define HEATING_STATUS 8001
#define WATER_STATUS 8003
#define BOILER_STATUS 8005
#define BUFFER_TEMPERATURE 7831 // remove if no buffer in system
// use the following °C start value for a fixed scale:
//#define BUFFER_TEMP_OFFSET 0 // choose as large as possible to have max-offset<=64 (or accept cut-off)
// how to recognize BSB activity:
#define ROOMS_HEATING ( ( 111 <= value && value <= 116 ) || value == 17 ) // value: HEATING_STATUS
#define WATER_HEATING ( ( 83 <= value && value <= 97 ) || value == 17 ) // value: WATER_STATUS
#define BOILER_RUNNING ( 13 <= value && value <= 16 ) // value: BOILER_STATUS
//- UDP port to listen for BSB_LAN messages (pick one of the following two lines):
#define UDP_PORT 6502 // requires BSB_LAN source from 2022-08-20 or newer, with UPD logging configured
//#define UDP_PORT 28000 // requires BSB_LAN customization (c.f. README.md)
//- time info:
// see https://github.com/nayarsystems/posix_tz_db/blob/master/zones.csv for full list of timezones
#define NTP_SERVER "pool.ntp.org"
#define LOCAL_TIMEZONE "CET-1CEST,M3.5.0,M10.5.0/3"
//- names of computers to periodically check their network presence:
#define ADDR_TO_CHECK // e.g.: "Smartphone1", "Smartphone2", "Notebook"
//- define the following to periodically transfer screenshot and csv log file to your dropbox account:
//#define USE_DROPBOX
// your token should be 64 chars!: 1234567890123456789012345678901234567890123456789012345678901234
#define DROPBOX_REFRESH_TOKEN "--- Use 'Get_Dropbox_token_for_BSBmonCR.html' to get yours! ----"
// where to put files in your dropbox:
#define DROPBOX_PATH "/BSBmonCR/" // must start and end with '/'!
// when to write files to dropbox (hh:mm ending like this? -> write!; "" = every minute, "-" = never):
#define DROPBOX_BMP_WRITE_TIME_PATTERN ":00" // keeping bmp and csv writing separate (not required)
#define DROPBOX_CSV_WRITE_TIME_PATTERN ":30" // will also be forced when entering a new day or on OTA update!
//- define the following, depending on your nerd status: ;)
//#define WITH_NERDY_TIMESTAMP_DISPLAY
// uses area to the left of the boiler status display line to binary encode yyyy-mm-dd_HH:MM:SS,
// item by item; to decode, use the following command on a screenshot received from BSBmonCR:
// perl Decode_nerdy_timestamp_in_BSBmonCR_screenshot.pl
#define LSB_MARKERS_FOR_NERDY_TIMESTAMP // to improve readability for humans
//- define the following if you have a small solar system registered with nepviewer.com:
// (you'll find your ident in the URLs nepviewer.com guides you to after login)
//#define PV_IDENT "cc_yyyymmdd_code"
// global position to determine sunrise/sunset (no need to ask for pv updates when there's no sun):
#define LATITUDE 52.4
#define LONGITUDE 13.3
//- define the following, if desired (requires a buffer in your heating system!)
//#define LIMIT_BOILER_RUNS_FOR_WATER
// allow only one boiler run for DHW per day, then allow loading from the buffer only - as long as possible
// do this via disabling (and re-enabling) DWH only, because that's easy to see (and "fix") on the boiler's room unit
// (one could take this a bit further by tweaking the following heating parameters, but ... see above)
#define TWW_Sollwert_1610 45 // must be as programmed for the heating system!
#define TWW_Schaltdifferenz_5024 10 // "
#define TWW_Umladeueberhoehung_5021 8 // "
#define SWITCH_MARGIN 0.5
#define RE_SWITCH_DIFFERENCE (TWW_Umladeueberhoehung_5021 + 5)
// if the following is defined: after first boiler run per day it won't be started for DHW
#define NO_BOILER_STARTS_FOR_WATER_AFTER_INITIAL_RUN