318 lines
7.8 KiB
INI
318 lines
7.8 KiB
INI
; 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
|
|
|
|
# Flash upload with: pio run -t upload --environment sensorespx
|
|
|
|
[platformio]
|
|
#For Config upload comment in data_dir line and flash with: pio run -t uploadfs --environment sensorespx
|
|
#data_dir=data_sensoresp0
|
|
#data_dir=data_sensoresp1
|
|
#data_dir=data_sensoresp2
|
|
#data_dir=data_sensoresp3
|
|
#data_dir=data_sensoresp4
|
|
#data_dir=data_sensoresp5
|
|
#data_dir=data_sensoresp3dprinter
|
|
data_dir=data_sensoresptest
|
|
|
|
|
|
#Outdoor
|
|
[env:sensoresp0]
|
|
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
|
|
board = d1_mini
|
|
framework = arduino
|
|
|
|
monitor_port = /dev/ttyUSB0
|
|
monitor_speed = 115200
|
|
|
|
build_flags =
|
|
-D SENSOR_BMP180
|
|
-D dataBMP180_temperature_minchange=0.5
|
|
-D dataBMP180_pressure_minchange=0.5
|
|
|
|
-D SENSOR_TCS34725
|
|
-D dataTCS34725_lux_minchange=500
|
|
-D dataTCS34725_lux_senddelaymax=1000*60*1
|
|
-D dataTCS34725_colortemp_minchange=100
|
|
-D TCS34725_LUXFACTOR=0.3 #measured with luxmeter. with half tennis ball was 1.7ev less. 1/2^1.7=0,3078
|
|
|
|
-D SENSOR_HS1101
|
|
-D HS1101PIN=D5
|
|
-D dataHS1101_minchange=10
|
|
|
|
-D SENSOR_ML8511
|
|
-D ML8511PIN=A0
|
|
-D dataML8511_minchange=0.2
|
|
|
|
-D SENSOR_ANEMOMETER
|
|
-D ANEMOMETERPIN=D6 #Light Blue thicker cable (in distribution box)
|
|
-D dataAnemometer_minchange=0.25
|
|
-D dataAnemometer_readdelay=1000*30
|
|
-D dataAnemometer_senddelaymax=1000*60*5
|
|
-D ANEMOMETER_PPMtoMPS=0.0208640462
|
|
# Cable from Anemometer: Black=GND, Blue=3v3, Brown=Signal (needs pullup (internal))
|
|
|
|
-D SENSOR_RAINGAUGE
|
|
-D RAINGAUGEPIN=D7
|
|
-D dataRaingauge_readdelay=1000
|
|
-D dataRaingauge_senddelaymax=1000*60*60 #also used for rain waiting timeout
|
|
# Cable from Anemometer: Black=GND, Blue=3v3, Brown=Signal (needs pullup (internal))
|
|
#Cable colors from anemometers sensor (before longer able): blue=gnd, brown=vcc, white=signal
|
|
|
|
lib_deps =
|
|
Adafruit BMP085 Library@1.1.0
|
|
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
|
|
|
|
|
|
#Test
|
|
[env:sensoresptest]
|
|
platform = espressif8266 @ 2.5.0
|
|
board = d1_mini
|
|
framework = arduino
|
|
|
|
monitor_port = /dev/ttyUSB0
|
|
monitor_speed = 115200
|
|
|
|
build_flags =
|
|
-D SENSOR_DHT22
|
|
-D SENSOR_DHT22_PIN=D7
|
|
-D SENSOR_DHT22_temperature_minchange=0.2
|
|
-D SENSOR_DHT22_humidity_minchange=2.0
|
|
|
|
|
|
-D SENSOR_BMP180
|
|
-D SENSOR_BMP180_temperature_minchange=0.2
|
|
-D SENSOR_BMP180_pressure_minchange=0.5
|
|
|
|
-D SENSOR_HTU21D
|
|
-D dataHTU21D_temperature_minchange=0.2
|
|
-D dataHTU21D_temperature_senddelaymax=1000*60*20
|
|
-D dataHTU21D_humidity_minchange=1.0
|
|
-D dataHTU21D_humidity_senddelaymax=1000*60*30
|
|
|
|
|
|
|
|
lib_deps =
|
|
DHT sensor library@1.3.10
|
|
ArduinoJson@6.16.1 #dependency of homie. using older version because of "ambiguous overload for operator|" error
|
|
Homie@3.0.0
|
|
Adafruit BMP085 Library@1.1.0
|
|
adafruit/Adafruit HTU21DF Library @ ^1.0.5
|
|
|
|
#Arbeitszimmer
|
|
[env:sensoresp1]
|
|
platform = espressif8266 @ 2.5.0
|
|
board = d1_mini
|
|
framework = arduino
|
|
|
|
monitor_port = /dev/ttyUSB0
|
|
monitor_speed = 115200
|
|
|
|
build_flags =
|
|
-D SENSOR_DHT22
|
|
-D SENSOR_DHT22_PIN=D7
|
|
-D SENSOR_DHT22_temperature_minchange=0.2
|
|
-D SENSOR_DHT22_humidity_minchange=2.0
|
|
|
|
-D SENSOR_BMP180
|
|
-D dataBMP180_temperature_minchange=0.2
|
|
-D dataBMP180_pressure_minchange=0.5
|
|
|
|
-D SENSOR_PIR
|
|
-D PIRPIN=D6
|
|
-D dataPIR_readdelay=100
|
|
-D dataPIR_senddelaymax=1000*60*10
|
|
|
|
-D SENSOR_LDR
|
|
-D SENSOR_LDR_CALIB1
|
|
-D LDR_PIN=A0
|
|
-D dataLDR_minchange=10.0
|
|
-D dataLDR_readdelay=1000*2
|
|
-D dataBH1750_senddelaymax=1000*60*1
|
|
|
|
|
|
lib_deps =
|
|
Adafruit BMP085 Library@1.1.0
|
|
DHT sensor library@1.3.10
|
|
ArduinoJson@6.16.1 #dependency of homie. using older version because of "ambiguous overload for operator|" error
|
|
Homie@3.0.0
|
|
|
|
|
|
#Wohnzimmer Air Quality
|
|
[env:sensoresp2]
|
|
platform = espressif8266 @ 2.5.0
|
|
board = d1_mini
|
|
framework = arduino
|
|
|
|
monitor_port = /dev/ttyUSB0
|
|
monitor_speed = 115200
|
|
|
|
build_flags =
|
|
-D SENSOR_MHZ19
|
|
-D MHZ19_SERIAL_RX=D5
|
|
-D MHZ19_SERIAL_TX=D6
|
|
-D dataMHZ19_minchange=10
|
|
-D dataMHZ19_readdelay=10*1000
|
|
|
|
-D SENSOR_SDS018
|
|
-D SDS018_SERIAL_RX=D7
|
|
-D SDS018_SERIAL_TX=D8
|
|
-D dataSDS018_pm25_minchange=4
|
|
-D dataSDS018_pm10_minchange=4
|
|
|
|
lib_deps =
|
|
klevytskyi/MHZ19@0.0.1
|
|
EspSoftwareSerial@6.8.1
|
|
ArduinoJson@6.16.1 #dependency of homie. using older version because of "ambiguous overload for operator|" error
|
|
Homie@3.0.0
|
|
|
|
|
|
#Wohnzimmer
|
|
[env:sensoresp3]
|
|
platform = espressif8266 @ 2.5.0
|
|
board = d1_mini
|
|
framework = arduino
|
|
|
|
monitor_port = /dev/ttyUSB0
|
|
monitor_speed = 115200
|
|
|
|
build_flags =
|
|
-D SENSOR_DHT22
|
|
-D DHTPIN=D7
|
|
-D dataDHT22_temperature_minchange=0.2
|
|
-D dataDHT22_humidity_minchange=1.0
|
|
|
|
-D SENSOR_PIR
|
|
-D PIRPIN=D6
|
|
-D dataPIR_readdelay=100
|
|
-D dataPIR_senddelaymax=1000*60*10
|
|
|
|
-D SENSOR_BH1750
|
|
-D dataBH1750_minchange=10.0
|
|
-D dataBH1750_senddelaymax=1000*60*2
|
|
|
|
lib_deps =
|
|
adafruit/DHT sensor library@1.3.10
|
|
claws/BH1750@1.1.4
|
|
ArduinoJson@6.16.1 #dependency of homie. using older version because of "ambiguous overload for operator|" error
|
|
Homie@3.0.0
|
|
|
|
|
|
#Schlafzimmer
|
|
[env:sensoresp4]
|
|
platform = espressif8266 @ 2.5.0
|
|
board = d1_mini
|
|
framework = arduino
|
|
|
|
monitor_port = /dev/ttyUSB0
|
|
monitor_speed = 115200
|
|
|
|
build_flags =
|
|
-D SENSOR_DHT22
|
|
-D DHTPIN=D7
|
|
-D dataDHT22_temperature_minchange=0.2
|
|
-D dataDHT22_humidity_minchange=1.0
|
|
|
|
-D SENSOR_PIR
|
|
-D PIRPIN=D0
|
|
-D dataPIR_readdelay=100
|
|
-D dataPIR_senddelaymax=1000*60*10
|
|
|
|
-D SENSOR_BH1750
|
|
-D dataBH1750_minchange=10.0
|
|
-D dataBH1750_senddelaymax=1000*60*2
|
|
|
|
-D SENSOR_MHZ19
|
|
-D MHZ19_SERIAL_RX=D5
|
|
-D MHZ19_SERIAL_TX=D6
|
|
-D dataMHZ19_minchange=10
|
|
-D dataMHZ19_readdelay=10*1000
|
|
|
|
lib_deps =
|
|
adafruit/DHT sensor library@1.3.10
|
|
claws/BH1750@1.1.4
|
|
klevytskyi/MHZ19@0.0.1
|
|
EspSoftwareSerial@6.8.1
|
|
ArduinoJson@6.16.1 #dependency of homie. using older version because of "ambiguous overload for operator|" error
|
|
Homie@3.0.0
|
|
|
|
|
|
#Kueche
|
|
[env:sensoresp5]
|
|
platform = espressif8266 @ 2.5.0
|
|
board = d1_mini
|
|
framework = arduino
|
|
|
|
#monitor_port = /dev/ttyUSB0
|
|
monitor_port = COM3
|
|
monitor_speed = 115200
|
|
|
|
build_flags =
|
|
-D SENSOR_DHT22
|
|
-D DHTPIN=D7
|
|
-D dataDHT22_temperature_minchange=0.2
|
|
-D dataDHT22_humidity_minchange=1.0
|
|
|
|
-D SENSOR_PIR
|
|
-D PIRPIN=D6
|
|
-D dataPIR_readdelay=100
|
|
-D dataPIR_senddelaymax=1000*60*10
|
|
|
|
-D SENSOR_RADAR
|
|
-D RADARPIN=D5
|
|
-D dataRADAR_readdelay=100
|
|
-D dataRADAR_senddelaymax=1000*60*10
|
|
|
|
-D SENSOR_BH1750
|
|
-D dataBH1750_minchange=10.0
|
|
-D dataBH1750_senddelaymax=1000*60*2
|
|
|
|
-D SENSOR_VL53L1X
|
|
-D dataVL53L1X_minchange=100
|
|
-D dataVL53L1X_senddelaymax=1000*30
|
|
-D dataVL53L1X_readdelay=1000
|
|
|
|
|
|
|
|
lib_deps =
|
|
adafruit/DHT sensor library@1.3.10
|
|
claws/BH1750@1.1.4
|
|
ArduinoJson@6.16.1
|
|
marvinroger/Homie @ ^3.0.1
|
|
pololu/VL53L1X @ ^1.3.0
|
|
|
|
|
|
|
|
#3D Printer
|
|
[env:sensoresp3dprinter]
|
|
platform = espressif8266 @ 2.5.0
|
|
board = d1_mini
|
|
framework = arduino
|
|
|
|
monitor_port = /dev/ttyUSB0
|
|
monitor_speed = 115200
|
|
|
|
build_flags =
|
|
-D SENSOR_HTU21D
|
|
-D dataHTU21D_temperature_minchange=0.2
|
|
-D dataHTU21D_temperature_senddelaymax=1000*60*20
|
|
-D dataHTU21D_humidity_minchange=1.0
|
|
-D dataHTU21D_humidity_senddelaymax=1000*60*30
|
|
|
|
|
|
|
|
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
|
|
|
|
|