; PlatformIO Project Configuration File ; ; Build options: build flags, source filter, extra scripting ; Upload options: custom port, speed and extra flags ; Library options: dependencies, extra library storages ; ; Please visit documentation for the other options and examples ; http://docs.platformio.org/en/stable/projectconf.html [platformio] src_dir = sonoff ; *** Uncomment one of the lines below to build/upload only one environment ;env_default = sonoff ;env_default = sonoff-DE ;env_default = sonoff-ES ;env_default = sonoff-FR ;env_default = sonoff-IT ;env_default = sonoff-NL ;env_default = sonoff-PL ;env_default = sonoff-CN ;env_default = sonoff-minimal ;env_default = sonoff-ds18x20 [env:sonoff] platform = espressif8266 framework = arduino board = esp01_1m board_flash_mode = dout build_flags = -Wl,-Tesp8266.flash.1m0.ld lib_deps = PubSubClient, NeoPixelBus, IRremoteESP8266, ArduinoJSON extra_scripts = pio/strip-floats.py ; *** Serial Monitor options monitor_baud = 115200 ; *** Upload Serial reset method for Wemos and NodeMCU ;upload_port = COM5 ;upload_speed = 115200 ;upload_resetmethod = nodemcu ; *** Upload file to OTA server using SCP ;upload_port = user@host:/path ;extra_scripts = pio/sftp-uploader.py ; *** Upload file to OTA server using HTTP ;upload_port = domus1:80/api/upload-arduino.php ;extra_scripts = pio/strip-floats.py, pio/http-uploader.py [env:sonoff-DE] platform = espressif8266 framework = arduino board = esp01_1m board_flash_mode = dout build_flags = -Wl,-Tesp8266.flash.1m0.ld -DMY_LANGUAGE=de-DE lib_deps = PubSubClient, NeoPixelBus, IRremoteESP8266, ArduinoJSON extra_scripts = pio/strip-floats.py ; *** Serial Monitor options monitor_baud = 115200 [env:sonoff-ES] platform = espressif8266 framework = arduino board = esp01_1m board_flash_mode = dout build_flags = -Wl,-Tesp8266.flash.1m0.ld -DMY_LANGUAGE=es-AR lib_deps = PubSubClient, NeoPixelBus, IRremoteESP8266, ArduinoJSON extra_scripts = pio/strip-floats.py ; *** Serial Monitor options monitor_baud = 115200 [env:sonoff-FR] platform = espressif8266 framework = arduino board = esp01_1m board_flash_mode = dout build_flags = -Wl,-Tesp8266.flash.1m0.ld -DMY_LANGUAGE=fr-FR lib_deps = PubSubClient, NeoPixelBus, IRremoteESP8266, ArduinoJSON extra_scripts = pio/strip-floats.py ; *** Serial Monitor options monitor_baud = 115200 [env:sonoff-IT] platform = espressif8266 framework = arduino board = esp01_1m board_flash_mode = dout build_flags = -Wl,-Tesp8266.flash.1m0.ld -DMY_LANGUAGE=it-IT lib_deps = PubSubClient, NeoPixelBus, IRremoteESP8266, ArduinoJSON extra_scripts = pio/strip-floats.py ; *** Serial Monitor options monitor_baud = 115200 [env:sonoff-NL] platform = espressif8266 framework = arduino board = esp01_1m board_flash_mode = dout build_flags = -Wl,-Tesp8266.flash.1m0.ld -DMY_LANGUAGE=nl-NL lib_deps = PubSubClient, NeoPixelBus, IRremoteESP8266, ArduinoJSON extra_scripts = pio/strip-floats.py ; *** Serial Monitor options monitor_baud = 115200 [env:sonoff-PL] platform = espressif8266 framework = arduino board = esp01_1m board_flash_mode = dout build_flags = -Wl,-Tesp8266.flash.1m0.ld -DMY_LANGUAGE=pl-PL lib_deps = PubSubClient, NeoPixelBus, IRremoteESP8266, ArduinoJSON extra_scripts = pio/strip-floats.py ; *** Serial Monitor options monitor_baud = 115200 [env:sonoff-CN] platform = espressif8266 framework = arduino board = esp01_1m board_flash_mode = dout build_flags = -Wl,-Tesp8266.flash.1m0.ld -DMY_LANGUAGE=zh-CN lib_deps = PubSubClient, NeoPixelBus, IRremoteESP8266, ArduinoJSON extra_scripts = pio/strip-floats.py ; *** Serial Monitor options monitor_baud = 115200 [env:sonoff-minimal] platform = espressif8266 framework = arduino board = esp01_1m board_flash_mode = dout build_flags = -Wl,-Tesp8266.flash.1m0.ld -DBE_MINIMAL lib_deps = PubSubClient, NeoPixelBus, IRremoteESP8266, ArduinoJSON extra_scripts = pio/strip-floats.py ; Serial Monitor options monitor_baud = 115200 [env:sonoff-ds18x20] platform = espressif8266 framework = arduino board = esp01_1m board_flash_mode = dout build_flags = -Wl,-Tesp8266.flash.1m0.ld -DUSE_DS18x20 lib_deps = PubSubClient, NeoPixelBus, IRremoteESP8266, ArduinoJSON extra_scripts = pio/strip-floats.py ; Serial Monitor options monitor_baud = 115200