2021-01-14 17:29:24 +00:00
|
|
|
|
/*
|
|
|
|
|
* Configuration values for ModularWeatherStation
|
|
|
|
|
*
|
|
|
|
|
* Copyright (C) 2021 Gergely Polonkai
|
|
|
|
|
* Author: Gergely POLONKAI <gergely@polonkai.eu>
|
|
|
|
|
*
|
|
|
|
|
* ModularWeatherStation 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.
|
|
|
|
|
*
|
|
|
|
|
* ModularWeatherStation 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 <http://www.gnu.org/licenses/>.
|
|
|
|
|
*
|
|
|
|
|
* As additional permission under GNU GPL version 3 section 7, you may
|
|
|
|
|
* distribute non-source form of the Program without the copy of the
|
|
|
|
|
* GNU GPL normally required by section 4, provided you inform the
|
|
|
|
|
* receipents of GNU GPL by a written offer.
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
|
2021-01-29 09:57:59 +00:00
|
|
|
|
#include "consts.h"
|
|
|
|
|
|
2021-01-14 17:29:24 +00:00
|
|
|
|
// The SSID (name) and password of the WiFi network you want to connect to
|
|
|
|
|
#define WIFI_SSID "YourWiFiName"
|
|
|
|
|
#define WIFI_PASS "YourWiFiPass"
|
|
|
|
|
|
2021-01-29 10:01:07 +00:00
|
|
|
|
// The system name will be the name your station is available as. This
|
|
|
|
|
// should be different for each station you install (e.g. if you want to
|
|
|
|
|
// measure the temperature and humidity of each room separately)
|
|
|
|
|
//
|
|
|
|
|
// If mDNS is enabled (ie. in HTTP pull mode), this will be the advertised
|
|
|
|
|
// hostname.
|
|
|
|
|
//
|
|
|
|
|
// If MQTT is enabled, this will be the MQTT client ID.
|
2021-01-29 09:57:59 +00:00
|
|
|
|
#define SYSTEM_NAME "internal-hostname"
|
2021-01-15 07:34:44 +00:00
|
|
|
|
|
2021-01-29 10:01:07 +00:00
|
|
|
|
// The mode this system should run in. See consts.h for the available values.
|
2021-02-01 14:31:44 +00:00
|
|
|
|
#define SYSTEM_MODE MODE_PROM_PULL
|
2021-01-29 10:01:07 +00:00
|
|
|
|
|
2021-01-15 07:34:44 +00:00
|
|
|
|
// If you have a DHT temperature+humidity sensor of this type will be used,
|
|
|
|
|
// remove the #undef line and uncomment one of DHT11 or DHT22. You also have
|
|
|
|
|
// to define the PIN your DHT sensor’s data (usually marked as DAT) is
|
|
|
|
|
// connected to.
|
|
|
|
|
//
|
|
|
|
|
// DHT11 sensors are usually blue, and don’t work under freezing point
|
|
|
|
|
// (0°C/32°F)
|
|
|
|
|
//
|
|
|
|
|
// DHT22 sensors are usually white and slightly bigger than DHT11 ones. They
|
|
|
|
|
// work well under freezing point (usually above -40°C/-40°F)
|
|
|
|
|
#undef DHT_TYPE
|
|
|
|
|
//#define DHT_TYPE DHT11
|
|
|
|
|
//#define DHT_TYPE DHT22
|
|
|
|
|
//#define DHT_PIN D5
|
2021-01-15 08:48:21 +00:00
|
|
|
|
|
|
|
|
|
// If you have a rain sensor (FC-37 or YL-83), connect its digital pin (not the
|
|
|
|
|
// analogue one!), remove the #undef line, and uncomment and change the
|
|
|
|
|
// #define RAIN_PIN line
|
|
|
|
|
#undef RAIN_PIN
|
|
|
|
|
//#define RAIN_PIN D0
|
2021-01-15 09:11:49 +00:00
|
|
|
|
|
|
|
|
|
// Pins used for I²C communication. You will be instructed below if you need
|
|
|
|
|
// to uncomment these
|
|
|
|
|
//#define I2C_SDA_PIN D1
|
|
|
|
|
//#define I2C_SCL_PIN D2
|
|
|
|
|
|
|
|
|
|
// If you have a BH1750 light level sensor, remove this #undef line and
|
|
|
|
|
// uncomment the #define HAVE_BH1750 line. You will also have to set the SDA
|
|
|
|
|
// and SCL pins using the I2C_SDA_PIN and I2C_SCL_PIN defines above.
|
|
|
|
|
#undef HAVE_BH1750
|
|
|
|
|
//#define HAVE_BH1750
|
2021-01-15 09:39:34 +00:00
|
|
|
|
|
|
|
|
|
// If you have a BMP180 or BMP085 pressure + temperature sensor, remove this
|
|
|
|
|
// #undef line and uncomment the #define HAVE_BMP180 line. You will also have
|
|
|
|
|
// to set the SDA and SCL pins using the I2C_SDA_PIN and I2C_SCL_PIN defines
|
|
|
|
|
// above.
|
|
|
|
|
#undef HAVE_BMP180
|
|
|
|
|
// #define HAVE_BMP180
|