modular-weather-station/config.h.sample

84 lines
3.2 KiB
Plaintext
Raw Normal View History

/*
* 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.
*
*/
#include "consts.h"
// The SSID (name) and password of the WiFi network you want to connect to
#define WIFI_SSID "YourWiFiName"
#define WIFI_PASS "YourWiFiPass"
// 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.
#define SYSTEM_NAME "internal-hostname"
// The mode this system should run in. See consts.h for the available values.
#define SYSTEM_MODE MODE_PROM_PULL
// 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 sensors data (usually marked as DAT) is
// connected to.
//
// DHT11 sensors are usually blue, and dont 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
// 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
// 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
// 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