2020-08-15 17:45:02 +00:00
; PlatformIO Project Configuration File
;
; Build options: build flags, source filter
; Upload options: custom upload port, speed and extra flags
; Library options: dependencies, extra library storages
; Advanced options: extra scripting
;
; Please visit documentation for the other options and examples
; https://docs.platformio.org/page/projectconf.html
2021-11-02 17:51:55 +00:00
# Flash upload with: pio run -t upload --environment sensorespx
2020-10-10 13:50:59 +00:00
[platformio]
2021-11-02 17:51:55 +00:00
#For Config upload comment in data_dir line and flash with: pio run -t uploadfs --environment sensorespx
2020-11-03 19:41:46 +00:00
#data_dir=data_sensoresp0
2020-10-14 21:32:25 +00:00
#data_dir=data_sensoresp1
2020-10-23 20:20:41 +00:00
#data_dir=data_sensoresp2
2020-10-14 21:32:25 +00:00
#data_dir=data_sensoresp3
2021-08-17 20:31:32 +00:00
#data_dir=data_sensoresp4
2021-10-13 15:24:04 +00:00
#data_dir=data_sensoresp5
2023-01-29 19:39:04 +00:00
#data_dir=data_sensoresp6
data_dir = data_sensoresp7
2021-10-13 12:56:09 +00:00
#data_dir=data_sensoresp3dprinter
2021-11-21 16:51:04 +00:00
#data_dir=data_sensoresptest
2020-10-10 13:50:59 +00:00
2020-10-23 20:13:32 +00:00
2020-10-23 20:20:41 +00:00
#Outdoor
[env:sensoresp0]
2021-10-13 15:24:04 +00:00
platform = espressif8266 @ 2.5.0 #using old esp version, because of "obsolete API, use ::begin(WiFiClient, url)" error. Try again if fix available in platformio over vscode
2020-10-23 20:20:41 +00:00
board = d1_mini
framework = arduino
monitor_port = /dev/ttyUSB0
monitor_speed = 115200
build_flags =
-D SENSOR_BMP180
2020-10-23 21:09:01 +00:00
-D dataBMP180_temperature_minchange = 0.5
-D dataBMP180_pressure_minchange = 0.5
2020-10-23 20:20:41 +00:00
2020-10-23 21:09:01 +00:00
-D SENSOR_TCS34725
2021-11-07 20:56:42 +00:00
-D SENSOR_TCS34725_LUX_minchange = 500
-D SENSOR_TCS34725_LUX_senddelaymax = 1000*60*1
-D SENSOR_TCS34725_COLORTEMP_minchange = 100
-D SENSOR_TCS34725_LUXFACTOR = 0.3 #measured with luxmeter. with half tennis ball was 1.7ev less. 1/2^1.7=0,3078
2020-10-23 20:20:41 +00:00
2022-11-13 13:19:12 +00:00
#-D SENSOR_HS1101
#-D SENSOR_HS1101_PIN=D5
#-D SENSOR_HS1101_humidity_minchange=10
-D SENSOR_SHT31
-D SENSOR_SHT31_humidity_minchange = 5
-D SENSOR_SHT31_temperature_minchange = 0.5
2020-10-29 17:53:05 +00:00
2020-10-30 08:23:05 +00:00
-D SENSOR_ML8511
2021-11-04 17:47:43 +00:00
-D SENSOR_ML8511_PIN = A0
-D SENSOR_ML8511_minchange = 0.2
2020-10-30 08:23:05 +00:00
2020-10-30 16:51:03 +00:00
-D SENSOR_ANEMOMETER
2021-11-08 18:49:25 +00:00
-D SENSOR_Anemometer_PIN = D6 #Light Blue thicker cable (in distribution box)
-D SENSOR_Anemometer_minchange = 0.25
-D SENSOR_Anemometer_readdelay = 1000*30
-D SENSOR_Anemometer_senddelaymax = 1000*60*5
-D SENSOR_ANEMOMETER_PPMtoMPS = 0.0208640462
2020-11-01 12:44:42 +00:00
# Cable from Anemometer: Black=GND, Blue=3v3, Brown=Signal (needs pullup (internal))
-D SENSOR_RAINGAUGE
2021-11-08 19:09:59 +00:00
-D SENSOR_Raingauge_PIN = D7
2022-06-19 10:27:17 +00:00
-D RAINGAUGE_FLIPAMOUNT = 0.29914
2021-11-08 19:09:59 +00:00
-D SENSOR_Raingauge_readdelay = 1000
-D SENSOR_Raingauge_senddelaymax = 1000*60*60 #also used for rain waiting timeout
2020-10-30 16:51:03 +00:00
# Cable from Anemometer: Black=GND, Blue=3v3, Brown=Signal (needs pullup (internal))
2020-11-01 13:40:23 +00:00
#Cable colors from anemometers sensor (before longer able): blue=gnd, brown=vcc, white=signal
2020-10-30 16:51:03 +00:00
2020-10-23 20:20:41 +00:00
lib_deps =
Adafruit BMP085 Library@1.1.0
2021-11-02 17:51:55 +00:00
https://github.com/adafruit/Adafruit_TCS34725#1.3.5
ArduinoJson@6.16.1 #dependency of homie. using older version because of "ambiguous overload for operator|" error
Homie@3.0.0
2022-11-13 13:19:12 +00:00
adafruit/Adafruit SHT31 Library@^2.2.0
SPI
2021-11-02 17:51:55 +00:00
2023-01-29 19:39:04 +00:00
2021-11-02 17:51:55 +00:00
2020-10-23 20:13:32 +00:00
2020-10-10 13:50:59 +00:00
#Arbeitszimmer
[env:sensoresp1]
2021-10-13 15:24:04 +00:00
platform = espressif8266 @ 2.5.0
2020-10-10 13:50:59 +00:00
board = d1_mini
framework = arduino
monitor_port = /dev/ttyUSB0
monitor_speed = 115200
build_flags =
-D SENSOR_DHT22
2021-10-31 13:07:09 +00:00
-D SENSOR_DHT22_PIN = D7
-D SENSOR_DHT22_temperature_minchange = 0.2
-D SENSOR_DHT22_humidity_minchange = 2.0
2020-10-10 13:50:59 +00:00
-D SENSOR_BMP180
-D dataBMP180_temperature_minchange = 0.2
2020-10-23 21:09:01 +00:00
-D dataBMP180_pressure_minchange = 0.5
2020-10-10 13:50:59 +00:00
2021-11-04 18:16:30 +00:00
-D SENSOR_HCSR501
-D SENSOR_HCSR501_PIN = D6
2020-10-10 13:50:59 +00:00
-D SENSOR_LDR
2021-11-06 18:38:54 +00:00
-D SENSOR_LDR_CALIB_1
2021-11-06 17:24:40 +00:00
-D SENSOR_LDR_PIN = A0
-D SENSOR_LDR_minchange = 10.0
-D SENSOR_LDR_senddelaymax = 1000*60*1
2020-10-10 13:50:59 +00:00
lib_deps =
Adafruit BMP085 Library@1.1.0
DHT sensor library@1.3.10
2020-10-23 20:13:32 +00:00
ArduinoJson@6.16.1 #dependency of homie. using older version because of "ambiguous overload for operator|" error
2020-10-10 13:50:59 +00:00
Homie@3.0.0
2020-10-23 07:14:43 +00:00
#Wohnzimmer Air Quality
[env:sensoresp2]
2021-10-13 15:24:04 +00:00
platform = espressif8266 @ 2.5.0
2020-10-23 07:14:43 +00:00
board = d1_mini
framework = arduino
monitor_port = /dev/ttyUSB0
monitor_speed = 115200
build_flags =
2021-11-06 18:38:54 +00:00
-D SENSOR_MHZ19B
-D SENSOR_MHZ19B_SERIAL_RX = D5
-D SENSOR_MHZ19B_SERIAL_TX = D6
-D SENSOR_MHZ19B_minchange = 10
-D SENSOR_MHZ19B_readdelay = 10*1000
2020-10-23 07:14:43 +00:00
-D SENSOR_SDS018
2021-11-07 09:51:27 +00:00
-D SENSOR_SDS018_SERIAL_RX = D7
-D SENSOR_SDS018_SERIAL_TX = D8
-D SENSOR_SDS018_PM10_minchange = 4
-D SENSOR_SDS018_PM25_minchange = 4
2020-10-23 07:14:43 +00:00
lib_deps =
2020-10-23 20:13:32 +00:00
klevytskyi/MHZ19@0.0.1
2020-10-23 07:14:43 +00:00
EspSoftwareSerial@6.8.1
2020-10-23 20:13:32 +00:00
ArduinoJson@6.16.1 #dependency of homie. using older version because of "ambiguous overload for operator|" error
2020-10-23 07:14:43 +00:00
Homie@3.0.0
2020-10-09 15:14:43 +00:00
#Wohnzimmer
[env:sensoresp3]
2021-10-13 15:24:04 +00:00
platform = espressif8266 @ 2.5.0
2020-08-16 09:09:12 +00:00
board = d1_mini
2020-08-15 17:45:02 +00:00
framework = arduino
monitor_port = /dev/ttyUSB0
monitor_speed = 115200
2020-10-09 15:14:43 +00:00
build_flags =
-D SENSOR_DHT22
2021-11-07 10:15:24 +00:00
-D SENSOR_DHT22_PIN = D7
-D SENSOR_DHT22_temperature_minchange = 0.2
-D SENSOR_DHT22_humidity_minchange = 1.0
2020-10-09 15:14:43 +00:00
2021-11-04 18:16:30 +00:00
-D SENSOR_HCSR501
-D SENSOR_HCSR501_PIN = D6
2020-10-09 15:14:43 +00:00
-D SENSOR_BH1750
-D dataBH1750_minchange = 10.0
-D dataBH1750_senddelaymax = 1000*60*2
2020-08-15 17:45:02 +00:00
lib_deps =
2020-09-26 17:48:49 +00:00
adafruit/DHT sensor library@1.3.10
2020-10-23 20:13:32 +00:00
claws/BH1750@1.1.4
ArduinoJson@6.16.1 #dependency of homie. using older version because of "ambiguous overload for operator|" error
2020-10-10 13:50:59 +00:00
Homie@3.0.0
2020-10-14 21:32:25 +00:00
#Schlafzimmer
[env:sensoresp4]
2021-10-13 15:24:04 +00:00
platform = espressif8266 @ 2.5.0
2020-10-14 21:32:25 +00:00
board = d1_mini
framework = arduino
monitor_port = /dev/ttyUSB0
monitor_speed = 115200
build_flags =
-D SENSOR_DHT22
2021-11-06 18:38:54 +00:00
-D SENSOR_DHT22_PIN = D7
2021-11-07 10:15:24 +00:00
-D SENSOR_DHT22_temperature_minchange = 0.2
-D SENSOR_DHT22_humidity_minchange = 1.0
2020-10-14 21:32:25 +00:00
2021-11-04 18:16:30 +00:00
-D SENSOR_HCSR501
-D SENSOR_HCSR501_PIN = D0
2020-10-14 21:32:25 +00:00
-D SENSOR_BH1750
-D dataBH1750_minchange = 10.0
-D dataBH1750_senddelaymax = 1000*60*2
2021-11-06 18:38:54 +00:00
-D SENSOR_MHZ19B
-D SENSOR_MHZ19B_SERIAL_RX = D5
-D SENSOR_MHZ19B_SERIAL_TX = D6
-D SENSOR_MHZ19B_minchange = 10
-D SENSOR_MHZ19B_readdelay = 10*1000
2020-10-14 21:32:25 +00:00
lib_deps =
adafruit/DHT sensor library@1.3.10
2020-10-23 20:13:32 +00:00
claws/BH1750@1.1.4
klevytskyi/MHZ19@0.0.1
2020-10-14 21:32:25 +00:00
EspSoftwareSerial@6.8.1
2020-10-23 20:13:32 +00:00
ArduinoJson@6.16.1 #dependency of homie. using older version because of "ambiguous overload for operator|" error
Homie@3.0.0
2020-11-03 19:41:46 +00:00
#Kueche
[env:sensoresp5]
2021-10-13 15:24:04 +00:00
platform = espressif8266 @ 2.5.0
2020-11-03 19:41:46 +00:00
board = d1_mini
framework = arduino
2021-10-13 17:01:22 +00:00
#monitor_port = /dev/ttyUSB0
monitor_port = COM3
2020-11-03 19:41:46 +00:00
monitor_speed = 115200
build_flags =
-D SENSOR_DHT22
2021-11-07 10:15:24 +00:00
-D SENSOR_DHT22_PIN = D7
-D SENSOR_DHT22_temperature_minchange = 0.2
-D SENSOR_DHT22_humidity_minchange = 1.0
2020-11-03 19:41:46 +00:00
2021-11-04 18:16:30 +00:00
-D SENSOR_HCSR501
-D SENSOR_HCSR501_PIN = D6
2020-11-03 19:41:46 +00:00
2021-07-14 19:09:23 +00:00
-D SENSOR_RADAR
2021-11-04 18:25:31 +00:00
-D SENSOR_RADAR_PIN = D5
-D SENSOR_RADAR_readdelay = 100
-D SENSOR_RADAR_senddelaymax = 1000*60*10
2021-07-14 19:09:23 +00:00
2020-11-03 19:41:46 +00:00
-D SENSOR_BH1750
-D dataBH1750_minchange = 10.0
-D dataBH1750_senddelaymax = 1000*60*2
2021-10-13 12:56:09 +00:00
-D SENSOR_VL53L1X
2022-06-19 10:27:17 +00:00
-D SENSOR_VL53L1X_minchange = 500
2021-11-07 21:31:24 +00:00
-D SENSOR_VL53L1X_senddelaymax = 1000*30
2022-06-19 10:27:17 +00:00
-D SENSOR_VL53L1X_readdelay = 500
2021-10-13 12:56:09 +00:00
2020-11-03 19:41:46 +00:00
lib_deps =
adafruit/DHT sensor library@1.3.10
claws/BH1750@1.1.4
2021-10-13 15:24:04 +00:00
ArduinoJson@6.16.1
marvinroger/Homie @ ^3.0.1
2021-10-13 12:56:09 +00:00
pololu/VL53L1X @ ^1.3.0
2020-11-03 19:41:46 +00:00
2022-02-24 07:21:32 +00:00
#Flur Gas, motion, etc
2021-11-21 16:51:04 +00:00
[env:sensoresp6]
platform = espressif8266 @ 2.5.0
board = d1_mini
framework = arduino
monitor_port = /dev/ttyUSB0
monitor_speed = 115200
build_flags =
-D SENSOR_MULTICHANNELGASGMXXX
2022-02-24 07:21:32 +00:00
-D SENSOR_MULTICHANNELGASGMXXX_no2_minchange = 0.3
-D SENSOR_MULTICHANNELGASGMXXX_c2h5oh_minchange = 0.3
-D SENSOR_MULTICHANNELGASGMXXX_voc_minchange = 0.3
-D SENSOR_MULTICHANNELGASGMXXX_co_minchange = 0.3
-D SENSOR_MULTICHANNELGASGMXXX_no2_senddelaymax = 1000*60*60
-D SENSOR_MULTICHANNELGASGMXXX_c2h5oh_senddelaymax = 1000*60*60
-D SENSOR_MULTICHANNELGASGMXXX_voc_senddelaymax = 1000*60*60
-D SENSOR_MULTICHANNELGASGMXXX_co_senddelaymax = 1000*60*60
2021-11-21 17:08:10 +00:00
-D SENSOR_HTU21D
2022-02-24 07:21:32 +00:00
-D dataHTU21D_temperature_minchange = 0.3
2021-11-21 17:08:10 +00:00
-D dataHTU21D_temperature_senddelaymax = 1000*60*60
-D dataHTU21D_humidity_minchange = 1.0
-D dataHTU21D_humidity_senddelaymax = 1000*60*60
2021-11-21 16:51:04 +00:00
2022-02-24 07:21:32 +00:00
-D SENSOR_HCSR501
-D SENSOR_HCSR501_PIN = D6
-D SENSOR_BH1750
-D dataBH1750_minchange = 10.0
-D dataBH1750_senddelaymax = 1000*60*5
2021-11-21 16:51:04 +00:00
lib_deps =
https://github.com/Seeed-Studio/Seeed_Arduino_MultiGas
2021-11-21 17:08:10 +00:00
adafruit/Adafruit HTU21DF Library @ ^1.0.5
2021-11-21 16:51:04 +00:00
ArduinoJson@6.16.1 #dependency of homie. using older version because of "ambiguous overload for operator|" error
Homie@3.0.0
2022-02-24 07:21:32 +00:00
claws/BH1750@1.1.4
2023-02-01 20:48:54 +00:00
SPI
2021-08-17 20:31:32 +00:00
2023-02-01 17:51:14 +00:00
#Badezimmer
2023-01-29 19:39:04 +00:00
[env:sensoresp7]
platform = espressif8266 @ 2.5.0
board = d1_mini
framework = arduino
#monitor_port = /dev/ttyUSB0
monitor_port = COM3
monitor_speed = 115200
build_flags =
-D SENSOR_HCSR501
-D SENSOR_HCSR501_PIN = D6
-D SENSOR_VL53L1X
2023-01-29 22:15:49 +00:00
-D SENSOR_VL53L1X_minchange = 200
2023-01-29 19:39:04 +00:00
-D SENSOR_VL53L1X_senddelaymax = 1000*30
2023-02-01 20:48:54 +00:00
-D SENSOR_VL53L1X_readdelay = 250
2023-01-29 19:39:04 +00:00
lib_deps =
Bounce2
ArduinoJson@6.16.1
marvinroger/Homie @ ^3.0.1
pololu/VL53L1X @ ^1.3.0
2023-02-01 20:48:54 +00:00
2023-01-29 19:39:04 +00:00
2021-08-17 20:31:32 +00:00
#3D Printer
[env:sensoresp3dprinter]
2021-10-13 15:24:04 +00:00
platform = espressif8266 @ 2.5.0
2021-08-17 20:31:32 +00:00
board = d1_mini
framework = arduino
monitor_port = /dev/ttyUSB0
monitor_speed = 115200
build_flags =
-D SENSOR_HTU21D
2021-11-07 20:56:42 +00:00
-D dataHTU21D_temperature_minchange = 0.1
-D dataHTU21D_temperature_senddelaymax = 1000*60*60
2021-08-17 20:31:32 +00:00
-D dataHTU21D_humidity_minchange = 1.0
2021-11-07 20:56:42 +00:00
-D dataHTU21D_humidity_senddelaymax = 1000*60*60
2021-08-17 20:31:32 +00:00
lib_deps =
adafruit/Adafruit HTU21DF Library @ ^1.0.5
ArduinoJson@6.16.1 #dependency of homie. using older version because of "ambiguous overload for operator|" error
Homie@3.0.0
2023-02-01 20:48:54 +00:00
SPI
2021-08-17 20:31:32 +00:00