-
Notifications
You must be signed in to change notification settings - Fork 49
/
Copy pathSettings24.h
45 lines (31 loc) · 2.34 KB
/
Settings24.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
/*----------------------------------------------------------------------------------------------------
Project Name : Solar Powered WiFi Weather Station
Features: temperature, dewpoint, dewpoint spread, heat index, humidity, absolute pressure, relative pressure, battery status and
the famous Zambretti Forecaster (multi lingual)
Authors: Keith Hungerford, Debasish Dutta and Marc Stähli
Website : www.opengreenenergy.com */
const String StationName = "SWS_YourPlace"; // SolarWeatherStation (SWS)
const String Version = "2.43";
/******* configuration control constant for use of Blynk and/or Thingspeak **/
const String App1 = "BLYNK"; // empty string if not applicable -> "" else "BLYNK"
#define BLYNK_TEMPLATE_ID "YOUR_ID"
#define BLYNK_TEMPLATE_NAME "Solar Weather Station"
#define BLYNK_AUTH_TOKEN "YOUR_TOKEN"
//char auth[] = BLYNK_AUTH_TOKEN;
/****** WiFi Settings ******************************************************/
char ssid[] = "YOUR_SSID"; // WiFi Router ssid
char pass[] = "YOUR_PASSWORD"; // WiFi Router password
/****** MQTT Settings ********************************************************/
bool MQTT = true; // If you use MQTT, set to true, else false
const char* mqtt_server = "broker.hivemq.com"; // MQTT Server (broker) address
const char* mqtt_user = ""; // MQTT Server (broker) userid
const char* mqtt_pass = ""; // MQTT Server (broker) password
const char* mqtt_topic = "YOUR_TOPIC"; // e.g. myname/weather/my_location
const char* mqtt_status = "YOUR_STATUS"; // e.g. myname/status
/****** Additional Settings **************************************************/
String LANGUAGE = "DE"; // Using 'DE' for German for summer and winter messages ('EN' for English as example still in the code)
#define TEMP_CORR (0) // Manual correction of temp sensor, humidity will automatically corrected with August-Roche-Magnus approximation
#define ELEVATION (420) // Enter your elevation in m ASL to calculate rel pressure (ASL/QNH) at your place
#define sleepTimeMin (10) // setting of deepsleep time in minutes (default: 10)
// NTP (reading UTC; local timezone does not matter, time is only needed for raising/falling pressure calcualtions)
#define NTP_SERVER "ch.pool.ntp.org"