|
[platformio]
|
|
env_default = d1-debug
|
|
src_dir = espurna
|
|
data_dir = espurna/data
|
|
|
|
[common]
|
|
build_flags = -g -DDEBUG_PORT=Serial -DMQTT_MAX_PACKET_SIZE=400
|
|
build_flags_1m128 = ${common.build_flags} -Wl,-Tesp8266.flash.1m128.ld
|
|
lib_deps =
|
|
DHT sensor library
|
|
Adafruit Unified Sensor
|
|
https://github.com/xoseperez/Time
|
|
ArduinoJson
|
|
https://github.com/me-no-dev/ESPAsyncTCP#36b6b5a
|
|
https://github.com/me-no-dev/ESPAsyncWebServer#bab5457
|
|
https://github.com/marvinroger/async-mqtt-client#f1b4576
|
|
PubSubClient
|
|
Embedis
|
|
NtpClientLib
|
|
OneWire
|
|
DallasTemperature
|
|
Brzo I2C
|
|
https://bitbucket.org/xoseperez/justwifi.git#1.1.3
|
|
https://bitbucket.org/xoseperez/hlw8012.git#1.0.1
|
|
https://bitbucket.org/xoseperez/fauxmoesp.git#2.1.0
|
|
https://bitbucket.org/xoseperez/nofuss.git#0.2.2
|
|
https://bitbucket.org/xoseperez/emonliteesp.git#0.1.2
|
|
https://bitbucket.org/xoseperez/debounceevent.git#2.0.0
|
|
https://github.com/xoseperez/my9291#1.0.0
|
|
https://github.com/xoseperez/RemoteSwitch-arduino-library.git
|
|
lib_ignore =
|
|
|
|
# ------------------------------------------------------------------------------
|
|
[env:d1-analog]
|
|
platform = espressif8266
|
|
framework = arduino
|
|
board = d1_mini
|
|
lib_deps = ${common.lib_deps}
|
|
lib_ignore = ${common.lib_ignore}
|
|
extra_script = pio_hooks.py
|
|
build_flags = ${common.build_flags} -DD1_MINI -DENABLE_DS18B20=1 -DDS_PIN=14 -DENABLE_ADC_VCC=0 -DMQTT_USE_ASYNC=0 -DENABLE_ANALOG=1 -DNOWSAUTH
|
|
|
|
[env:d1-debug]
|
|
platform = espressif8266
|
|
framework = arduino
|
|
board = d1_mini
|
|
lib_deps = ${common.lib_deps}
|
|
lib_ignore = ${common.lib_ignore}
|
|
extra_script = pio_hooks.py
|
|
build_flags = ${common.build_flags} -DD1_RELAYSHIELD -DDEBUG_FAUXMO=Serial -DNOWSAUTH
|
|
|
|
[env:d1-debug-ota]
|
|
platform = espressif8266
|
|
framework = arduino
|
|
board = d1_mini
|
|
lib_deps = ${common.lib_deps}
|
|
lib_ignore = ${common.lib_ignore}
|
|
extra_script = pio_hooks.py
|
|
build_flags = ${common.build_flags} -DD1_RELAYSHIELD -DDEBUG_FAUXMO=Serial -DNOWSAUTH
|
|
upload_speed = 115200
|
|
upload_port = "192.168.4.1"
|
|
upload_flags = --auth=fibonacci --port 8266
|
|
|
|
[env:node-debug]
|
|
platform = espressif8266
|
|
framework = arduino
|
|
board = nodemcuv2
|
|
lib_deps = ${common.lib_deps}
|
|
lib_ignore = ${common.lib_ignore}
|
|
extra_script = pio_hooks.py
|
|
build_flags = ${common.build_flags} -DNODEMCUV2 -DDEBUG_FAUXMO=Serial -DNOWSAUTH
|
|
|
|
[env:node-debug-ota]
|
|
platform = espressif8266
|
|
framework = arduino
|
|
board = nodemcuv2
|
|
lib_deps = ${common.lib_deps}
|
|
lib_ignore = ${common.lib_ignore}
|
|
extra_script = pio_hooks.py
|
|
build_flags = ${common.build_flags} -DNODEMCUV2 -DDEBUG_FAUXMO=Serial -DNOWSAUTH
|
|
upload_speed = 115200
|
|
upload_port = "192.168.4.1"
|
|
upload_flags = --auth=fibonacci --port 8266
|
|
|
|
[env:espurna-debug]
|
|
platform = espressif8266
|
|
framework = arduino
|
|
board = esp12e
|
|
lib_deps = ${common.lib_deps}
|
|
lib_ignore = ${common.lib_ignore}
|
|
extra_script = pio_hooks.py
|
|
build_flags = ${common.build_flags} -DESPURNA_H
|
|
|
|
[env:espurna-debug-ota]
|
|
platform = espressif8266
|
|
framework = arduino
|
|
board = esp12e
|
|
lib_deps = ${common.lib_deps}
|
|
lib_ignore = ${common.lib_ignore}
|
|
extra_script = pio_hooks.py
|
|
build_flags = ${common.build_flags} -DESPURNA_H
|
|
upload_speed = 115200
|
|
upload_port = "192.168.4.1"
|
|
upload_flags = --auth=fibonacci --port 8266
|
|
|
|
[env:sonoff-debug]
|
|
platform = espressif8266
|
|
framework = arduino
|
|
board = esp01_1m
|
|
lib_deps = ${common.lib_deps}
|
|
lib_ignore = ${common.lib_ignore}
|
|
extra_script = pio_hooks.py
|
|
build_flags = ${common.build_flags_1m128} -DSONOFF
|
|
|
|
[env:sonoff-debug-ota]
|
|
platform = espressif8266
|
|
framework = arduino
|
|
board = esp01_1m
|
|
lib_deps = ${common.lib_deps}
|
|
lib_ignore = ${common.lib_ignore}
|
|
extra_script = pio_hooks.py
|
|
build_flags = ${common.build_flags_1m128} -DSONOFF
|
|
upload_speed = 115200
|
|
upload_port = "192.168.4.1"
|
|
upload_flags = --auth=fibonacci --port 8266
|
|
|
|
[env:sonoff-dht22-debug]
|
|
platform = espressif8266
|
|
framework = arduino
|
|
board = esp01_1m
|
|
lib_deps = ${common.lib_deps}
|
|
lib_ignore = ${common.lib_ignore}
|
|
extra_script = pio_hooks.py
|
|
build_flags = ${common.build_flags_1m128} -DSONOFF -DENABLE_DHT=1
|
|
|
|
[env:sonoff-ds18b20-debug]
|
|
platform = espressif8266
|
|
framework = arduino
|
|
board = esp01_1m
|
|
lib_deps = ${common.lib_deps}
|
|
lib_ignore = ${common.lib_ignore}
|
|
extra_script = pio_hooks.py
|
|
build_flags = ${common.build_flags_1m128} -DSONOFF -DENABLE_DS18B20=1
|
|
|
|
[env:sonoff-pow-debug]
|
|
platform = espressif8266
|
|
framework = arduino
|
|
board = esp01_1m
|
|
lib_deps = ${common.lib_deps}
|
|
lib_ignore = ${common.lib_ignore}
|
|
extra_script = pio_hooks.py
|
|
build_flags = ${common.build_flags_1m128} -DSONOFF_POW
|
|
|
|
[env:sonoff-pow-debug-ota]
|
|
platform = espressif8266
|
|
framework = arduino
|
|
board = esp01_1m
|
|
lib_deps = ${common.lib_deps}
|
|
lib_ignore = ${common.lib_ignore}
|
|
extra_script = pio_hooks.py
|
|
build_flags = ${common.build_flags_1m128} -DSONOFF_POW
|
|
upload_speed = 115200
|
|
upload_port = "192.168.4.1"
|
|
upload_flags = --auth=fibonacci --port 8266
|
|
|
|
[env:sonoff-dual-debug]
|
|
platform = espressif8266
|
|
framework = arduino
|
|
board = esp01_1m
|
|
lib_deps = ${common.lib_deps}
|
|
lib_ignore = ${common.lib_ignore}
|
|
extra_script = pio_hooks.py
|
|
build_flags = ${common.build_flags_1m128} -DSONOFF_DUAL
|
|
|
|
[env:sonoff-dual-debug-ota]
|
|
platform = espressif8266
|
|
framework = arduino
|
|
board = esp01_1m
|
|
lib_deps = ${common.lib_deps}
|
|
lib_ignore = ${common.lib_ignore}
|
|
extra_script = pio_hooks.py
|
|
build_flags = ${common.build_flags_1m128} -DSONOFF_DUAL
|
|
upload_speed = 115200
|
|
upload_port = "192.168.4.1"
|
|
upload_flags = --auth=fibonacci --port 8266
|
|
|
|
[env:sonoff-4ch-debug]
|
|
platform = espressif8266
|
|
framework = arduino
|
|
board = esp8285
|
|
lib_deps = ${common.lib_deps}
|
|
lib_ignore = ${common.lib_ignore}
|
|
extra_script = pio_hooks.py
|
|
build_flags = ${common.build_flags_1m128} -DSONOFF_4CH
|
|
|
|
[env:sonoff-4ch-debug-ota]
|
|
platform = espressif8266
|
|
framework = arduino
|
|
board = esp8285
|
|
lib_deps = ${common.lib_deps}
|
|
lib_ignore = ${common.lib_ignore}
|
|
extra_script = pio_hooks.py
|
|
build_flags = ${common.build_flags_1m128} -DSONOFF_4CH
|
|
upload_speed = 115200
|
|
upload_port = "192.168.4.1"
|
|
upload_flags = --auth=fibonacci --port 8266
|
|
|
|
[env:sonoff-touch-debug]
|
|
platform = espressif8266
|
|
framework = arduino
|
|
board = esp8285
|
|
lib_deps = ${common.lib_deps}
|
|
lib_ignore = ${common.lib_ignore}
|
|
extra_script = pio_hooks.py
|
|
build_flags = ${common.build_flags_1m128} -DSONOFF_TOUCH
|
|
|
|
[env:sonoff-touch-debug-ota]
|
|
platform = espressif8266
|
|
framework = arduino
|
|
board = esp8285
|
|
lib_deps = ${common.lib_deps}
|
|
lib_ignore = ${common.lib_ignore}
|
|
extra_script = pio_hooks.py
|
|
build_flags = ${common.build_flags_1m128} -DSONOFF_TOUCH
|
|
upload_speed = 115200
|
|
upload_port = "192.168.4.1"
|
|
upload_flags = --auth=fibonacci --port 8266
|
|
|
|
[env:slampher-debug]
|
|
platform = espressif8266
|
|
framework = arduino
|
|
board = esp01_1m
|
|
lib_deps = ${common.lib_deps}
|
|
lib_ignore = ${common.lib_ignore}
|
|
extra_script = pio_hooks.py
|
|
build_flags = ${common.build_flags_1m128} -DSLAMPHER
|
|
|
|
[env:slampher-debug-ota]
|
|
platform = espressif8266
|
|
framework = arduino
|
|
board = esp01_1m
|
|
lib_deps = ${common.lib_deps}
|
|
lib_ignore = ${common.lib_ignore}
|
|
extra_script = pio_hooks.py
|
|
build_flags = ${common.build_flags_1m128} -DSLAMPHER
|
|
upload_speed = 115200
|
|
upload_port = "192.168.4.1"
|
|
upload_flags = --auth=fibonacci --port 8266
|
|
|
|
[env:s20-debug]
|
|
platform = espressif8266
|
|
framework = arduino
|
|
board = esp01_1m
|
|
lib_deps = ${common.lib_deps}
|
|
lib_ignore = ${common.lib_ignore}
|
|
extra_script = pio_hooks.py
|
|
build_flags = ${common.build_flags_1m128} -DS20
|
|
|
|
[env:s20-debug-ota]
|
|
platform = espressif8266
|
|
framework = arduino
|
|
board = esp01_1m
|
|
lib_deps = ${common.lib_deps}
|
|
lib_ignore = ${common.lib_ignore}
|
|
extra_script = pio_hooks.py
|
|
build_flags = ${common.build_flags_1m128} -DS20
|
|
upload_speed = 115200
|
|
upload_port = "192.168.4.1"
|
|
upload_flags = --auth=fibonacci --port 8266
|
|
|
|
[env:1ch-inching-debug]
|
|
platform = espressif8266
|
|
framework = arduino
|
|
board = esp01_1m
|
|
lib_deps = ${common.lib_deps}
|
|
lib_ignore = ${common.lib_ignore}
|
|
extra_script = pio_hooks.py
|
|
build_flags = ${common.build_flags_1m128} -DITEAD_1CH_INCHING
|
|
|
|
[env:1ch-inching-debug-ota]
|
|
platform = espressif8266
|
|
framework = arduino
|
|
board = esp01_1m
|
|
lib_deps = ${common.lib_deps}
|
|
lib_ignore = ${common.lib_ignore}
|
|
extra_script = pio_hooks.py
|
|
build_flags = ${common.build_flags_1m128} -DITEAD_1CH_INCHING
|
|
upload_speed = 115200
|
|
upload_port = "192.168.4.1"
|
|
upload_flags = --auth=fibonacci --port 8266
|
|
|
|
[env:motor-debug]
|
|
platform = espressif8266
|
|
framework = arduino
|
|
board = esp01_1m
|
|
lib_deps = ${common.lib_deps}
|
|
lib_ignore = ${common.lib_ignore}
|
|
extra_script = pio_hooks.py
|
|
build_flags = ${common.build_flags_1m128} -DITEAD_MOTOR
|
|
|
|
[env:motor-debug-ota]
|
|
platform = espressif8266
|
|
framework = arduino
|
|
board = esp01_1m
|
|
lib_deps = ${common.lib_deps}
|
|
lib_ignore = ${common.lib_ignore}
|
|
extra_script = pio_hooks.py
|
|
build_flags = ${common.build_flags_1m128} -DITEAD_MOTOR
|
|
upload_speed = 115200
|
|
upload_port = "192.168.4.1"
|
|
upload_flags = --auth=fibonacci --port 8266
|
|
|
|
[env:electrodragon-debug]
|
|
platform = espressif8266
|
|
framework = arduino
|
|
board = esp12e
|
|
lib_deps = ${common.lib_deps}
|
|
lib_ignore = ${common.lib_ignore}
|
|
extra_script = pio_hooks.py
|
|
build_flags = ${common.build_flags} -DESP_RELAY_BOARD -DENABLE_DHT=1
|
|
|
|
[env:electrodragon-debug-ota]
|
|
platform = espressif8266
|
|
framework = arduino
|
|
board = esp12e
|
|
lib_deps = ${common.lib_deps}
|
|
lib_ignore = ${common.lib_ignore}
|
|
extra_script = pio_hooks.py
|
|
build_flags = ${common.build_flags} -DESP_RELAY_BOARD -DENABLE_DHT=1
|
|
upload_speed = 115200
|
|
upload_port = "192.168.4.1"
|
|
upload_flags = --auth=fibonacci --port 8266
|
|
|
|
[env:ecoplug-debug]
|
|
platform = espressif8266
|
|
framework = arduino
|
|
board = esp01_1m
|
|
lib_deps = ${common.lib_deps}
|
|
lib_ignore = ${common.lib_ignore}
|
|
extra_script = pio_hooks.py
|
|
build_flags = ${common.build_flags_1m128} -DECOPLUG
|
|
|
|
[env:ecoplug-debug-ota]
|
|
platform = espressif8266
|
|
framework = arduino
|
|
board = esp01_1m
|
|
lib_deps = ${common.lib_deps}
|
|
lib_ignore = ${common.lib_ignore}
|
|
extra_script = pio_hooks.py
|
|
build_flags = ${common.build_flags_1m128} -DECOPLUG
|
|
upload_speed = 115200
|
|
upload_port = "192.168.4.1"
|
|
upload_flags = --auth=fibonacci --port 8266
|
|
|
|
[env:jangoe-debug]
|
|
platform = espressif8266
|
|
framework = arduino
|
|
board = esp12e
|
|
lib_deps = ${common.lib_deps}
|
|
lib_ignore = ${common.lib_ignore}
|
|
extra_script = pio_hooks.py
|
|
build_flags = ${common.build_flags} -DWIFI_RELAY_NC
|
|
|
|
[env:jangoe-debug-ota]
|
|
platform = espressif8266
|
|
framework = arduino
|
|
board = esp12e
|
|
lib_deps = ${common.lib_deps}
|
|
lib_ignore = ${common.lib_ignore}
|
|
extra_script = pio_hooks.py
|
|
build_flags = ${common.build_flags} -DWIFI_RELAY_NC
|
|
upload_speed = 115200
|
|
upload_port = "192.168.4.1"
|
|
upload_flags = --auth=fibonacci --port 8266
|
|
|
|
[env:mqtt-relay-debug]
|
|
platform = espressif8266
|
|
framework = arduino
|
|
board = esp_wroom_02
|
|
lib_deps = ${common.lib_deps}
|
|
lib_ignore = ${common.lib_ignore}
|
|
extra_script = pio_hooks.py
|
|
build_flags = ${common.build_flags} -DMQTT_RELAY -DENABLE_DS18B20=1
|
|
|
|
[env:mqtt-relay-debug-ota]
|
|
platform = espressif8266
|
|
framework = arduino
|
|
board = esp_wroom_02
|
|
lib_deps = ${common.lib_deps}
|
|
lib_ignore = ${common.lib_ignore}
|
|
extra_script = pio_hooks.py
|
|
build_flags = ${common.build_flags} -DMQTT_RELAY -DENABLE_DS18B20=1
|
|
upload_speed = 115200
|
|
upload_port = "192.168.4.1"
|
|
upload_flags = --auth=fibonacci --port 8266
|
|
|
|
[env:wifi-relays-debug]
|
|
platform = espressif8266
|
|
framework = arduino
|
|
board = esp01_1m
|
|
lib_deps = ${common.lib_deps}
|
|
lib_ignore = ${common.lib_ignore}
|
|
extra_script = pio_hooks.py
|
|
build_flags = ${common.build_flags_1m128} -DWIFI_RELAYS_BOARD_KIT
|
|
|
|
[env:wifi-relays-debug-ota]
|
|
platform = espressif8266
|
|
framework = arduino
|
|
board = esp01_1m
|
|
lib_deps = ${common.lib_deps}
|
|
lib_ignore = ${common.lib_ignore}
|
|
extra_script = pio_hooks.py
|
|
build_flags = ${common.build_flags_1m128} -DWIFI_RELAYS_BOARD_KIT
|
|
upload_speed = 115200
|
|
upload_port = "192.168.4.1"
|
|
upload_flags = --auth=fibonacci --port 8266
|
|
|
|
[env:ai-light-debug]
|
|
platform = espressif8266
|
|
framework = arduino
|
|
board = esp8285
|
|
lib_deps = ${common.lib_deps}
|
|
lib_ignore = ${common.lib_ignore}
|
|
extra_script = pio_hooks.py
|
|
build_flags = ${common.build_flags_1m128} -DAI_LIGHT
|
|
|
|
[env:ai-light-debug-ota]
|
|
platform = espressif8266
|
|
framework = arduino
|
|
board = esp8285
|
|
lib_deps = ${common.lib_deps}
|
|
lib_ignore = ${common.lib_ignore}
|
|
extra_script = pio_hooks.py
|
|
build_flags = ${common.build_flags_1m128} -DAI_LIGHT
|
|
upload_speed = 115200
|
|
upload_port = "192.168.4.1"
|
|
upload_flags = --auth=fibonacci --port 8266
|
|
|
|
[env:led-controller-debug]
|
|
platform = espressif8266
|
|
framework = arduino
|
|
board = esp01_1m
|
|
lib_deps = ${common.lib_deps}
|
|
lib_ignore = ${common.lib_ignore}
|
|
extra_script = pio_hooks.py
|
|
build_flags = ${common.build_flags_1m128} -DLED_CONTROLLER
|
|
|
|
[env:led-controller-debug-ota]
|
|
platform = espressif8266
|
|
framework = arduino
|
|
board = esp01_1m
|
|
lib_deps = ${common.lib_deps}
|
|
lib_ignore = ${common.lib_ignore}
|
|
extra_script = pio_hooks.py
|
|
build_flags = ${common.build_flags_1m128} -DLED_CONTROLLER
|
|
upload_speed = 115200
|
|
upload_port = "192.168.4.1"
|
|
upload_flags = --auth=fibonacci --port 8266
|
|
|
|
[env:h801-debug]
|
|
platform = espressif8266
|
|
framework = arduino
|
|
board = esp01_1m
|
|
lib_deps = ${common.lib_deps}
|
|
lib_ignore = ${common.lib_ignore}
|
|
extra_script = pio_hooks.py
|
|
build_flags = -g -Wl,-Tesp8266.flash.1m128.ld -DH801_LED_CONTROLLER -DDEBUG_PORT=Serial1
|
|
|
|
[env:h801-debug-ota]
|
|
platform = espressif8266
|
|
framework = arduino
|
|
board = esp01_1m
|
|
lib_deps = ${common.lib_deps}
|
|
lib_ignore = ${common.lib_ignore}
|
|
extra_script = pio_hooks.py
|
|
build_flags = -g -Wl,-Tesp8266.flash.1m128.ld -DH801_LED_CONTROLLER -DDEBUG_PORT=Serial1
|
|
upload_speed = 115200
|
|
upload_port = "192.168.4.1"
|
|
upload_flags = --auth=fibonacci --port 8266
|