|
[platformio]
|
|
env_default = d1-debug
|
|
src_dir = espurna
|
|
data_dir = espurna/data
|
|
|
|
[common]
|
|
lib_deps =
|
|
DHT sensor library
|
|
Adafruit Unified Sensor
|
|
https://github.com/xoseperez/Time
|
|
ArduinoJson
|
|
ESPAsyncTCP
|
|
ESPAsyncWebServer
|
|
https://github.com/marvinroger/async-mqtt-client
|
|
Embedis
|
|
NtpClientLib
|
|
OneWire
|
|
DallasTemperature
|
|
JustWifi
|
|
HLW8012
|
|
https://bitbucket.org/xoseperez/fauxmoesp.git
|
|
https://bitbucket.org/xoseperez/nofuss.git
|
|
https://bitbucket.org/xoseperez/emonliteesp.git
|
|
https://bitbucket.org/xoseperez/debounceevent.git
|
|
https://github.com/xoseperez/RemoteSwitch-arduino-library.git
|
|
lib_ignore =
|
|
|
|
# ------------------------------------------------------------------------------
|
|
|
|
[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 = -g -DD1_RELAYSHIELD -DDEBUG_PORT=Serial -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 = -g -DD1_RELAYSHIELD -DDEBUG_PORT=Serial -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 = -g -DNODEMCUV2 -DDEBUG_PORT=Serial -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 = -g -DNODEMCUV2 -DDEBUG_PORT=Serial -DDEBUG_FAUXMO=Serial -DNOWSAUTH
|
|
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 = -g -Wl,-Tesp8266.flash.1m128.ld -DDEBUG_PORT=Serial -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 = -g -Wl,-Tesp8266.flash.1m128.ld -DDEBUG_PORT=Serial -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 = -g -Wl,-Tesp8266.flash.1m128.ld -DDEBUG_PORT=Serial -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 = -g -Wl,-Tesp8266.flash.1m128.ld -DDEBUG_PORT=Serial -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 = -g -Wl,-Tesp8266.flash.1m128.ld -DDEBUG_PORT=Serial -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 = -g -Wl,-Tesp8266.flash.1m128.ld -DDEBUG_PORT=Serial -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 = -g -Wl,-Tesp8266.flash.1m128.ld -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 = -g -Wl,-Tesp8266.flash.1m128.ld -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 = 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 -DDEBUG_PORT=Serial -DSONOFF_4CH
|
|
|
|
[env:sonoff-4ch-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 -DDEBUG_PORT=Serial -DSONOFF_4CH
|
|
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 = -g -Wl,-Tesp8266.flash.1m128.ld -DDEBUG_PORT=Serial -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 = -g -Wl,-Tesp8266.flash.1m128.ld -DDEBUG_PORT=Serial -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 = -g -Wl,-Tesp8266.flash.1m128.ld -DDEBUG_PORT=Serial -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 = -g -Wl,-Tesp8266.flash.1m128.ld -DDEBUG_PORT=Serial -DS20
|
|
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 = -g -DDEBUG_PORT=Serial -DDEBUG_PORT=Serial -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 = -g -DDEBUG_PORT=Serial -DDEBUG_PORT=Serial -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 = -g -Wl,-Tesp8266.flash.1m128.ld -DDEBUG_PORT=Serial -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 = -g -Wl,-Tesp8266.flash.1m128.ld -DDEBUG_PORT=Serial -DECOPLUG
|
|
upload_speed = 115200
|
|
upload_port = "192.168.4.1"
|
|
upload_flags = --auth=fibonacci --port 8266
|