-
Notifications
You must be signed in to change notification settings - Fork 0
/
secrets.example.h
63 lines (56 loc) · 1.62 KB
/
secrets.example.h
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
#if !defined(secrets_h)
#define secrets_h
// Enter your WiFi SSID and password
const char ssid[] = "your-ssid"; // network SSID (name)
const char pass[] = "your-super-secure-password"; // WPA network password
const char apSSID[] = "your-BSEC"; // AP fallback network SSID
/**
* For prometheus and homebridge
*/
const char defaultMetricLocation[] = "office";
/**
* If you would like to update an apple home temperature "sensor"
* emulated by https://github.com/benzman81/homebridge-http-webhooks,
* define these constants
*/
#define HOMEBRIDGE
const String homebridgeHost = "192.168.192.168";
const String webhookPort = "51828";
const String aqiSensorId = "aqi";
const String humiditySensorId = "humidity";
const String tempSensorId = "temp";
/**
* If you have a calibrated thermometer, use it to determine the temp offset (in C)
*/
const float temperatureOffset = 0.5;
/**
* If you have a calibrated barometer, use it to determine the pressure offset (in inHg)
*/
const float pressureOffset = 0.56;
/**
* If you would like to serve the web server over TLS in
* addition to plain http, define your server certificate
* chain (leaf, intermediate(s), and root) below, along with
* your private key. If you are using an ECC cert, define
* TLS_ECC as well.
*/
#define TLS
// SSL certificate
#define TLS_ECC
const char serverCert[] PROGMEM = R"EOF(
-----BEGIN CERTIFICATE-----
...
-----END CERTIFICATE-----
-----BEGIN CERTIFICATE-----
...
-----END CERTIFICATE-----
-----BEGIN CERTIFICATE-----
...
-----END CERTIFICATE-----
)EOF";
const char serverKey[] PROGMEM = R"EOF(
-----BEGIN PRIVATE KEY-----
...
-----END PRIVATE KEY-----
)EOF";
#endif