2017-01-28 15:44:00 +00:00
|
|
|
; 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
|
|
|
|
|
2017-09-30 14:53:50 +01:00
|
|
|
; *** Uncomment one of the lines below to build/upload only one environment
|
2017-06-03 21:13:35 +01:00
|
|
|
;env_default = sonoff
|
2017-10-18 17:22:34 +01:00
|
|
|
;env_default = sonoff-DE
|
2018-01-18 15:19:28 +00:00
|
|
|
;env_default = sonoff-ES
|
|
|
|
;env_default = sonoff-FR
|
2017-12-28 12:43:51 +00:00
|
|
|
;env_default = sonoff-IT
|
2018-01-18 15:19:28 +00:00
|
|
|
;env_default = sonoff-NL
|
|
|
|
;env_default = sonoff-PL
|
|
|
|
;env_default = sonoff-CN
|
2017-06-03 21:13:35 +01:00
|
|
|
;env_default = sonoff-minimal
|
|
|
|
;env_default = sonoff-ds18x20
|
|
|
|
|
2017-01-28 15:44:00 +00:00
|
|
|
[env:sonoff]
|
|
|
|
platform = espressif8266
|
|
|
|
framework = arduino
|
|
|
|
board = esp01_1m
|
2017-05-07 14:57:59 +01:00
|
|
|
board_flash_mode = dout
|
2018-01-18 15:19:28 +00:00
|
|
|
build_flags = -Wl,-Tesp8266.flash.1m0.ld
|
2017-05-07 14:57:59 +01:00
|
|
|
lib_deps = PubSubClient, NeoPixelBus, IRremoteESP8266, ArduinoJSON
|
2018-02-03 15:36:25 +00:00
|
|
|
extra_scripts = pio/strip-floats.py
|
2017-06-01 16:37:30 +01:00
|
|
|
|
2017-09-30 14:53:50 +01:00
|
|
|
; *** Serial Monitor options
|
2017-09-02 16:24:05 +01:00
|
|
|
monitor_baud = 115200
|
|
|
|
|
2017-09-30 14:53:50 +01:00
|
|
|
; *** Upload Serial reset method for Wemos and NodeMCU
|
2018-01-18 15:19:28 +00:00
|
|
|
;upload_port = COM5
|
|
|
|
;upload_speed = 115200
|
2017-09-30 14:53:50 +01:00
|
|
|
;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
|
2018-02-03 15:36:25 +00:00
|
|
|
;extra_scripts = pio/strip-floats.py, pio/http-uploader.py
|
2017-09-30 14:53:50 +01:00
|
|
|
|
2018-01-18 15:19:28 +00:00
|
|
|
[env:sonoff-DE]
|
2017-09-02 16:24:05 +01:00
|
|
|
platform = espressif8266
|
|
|
|
framework = arduino
|
|
|
|
board = esp01_1m
|
|
|
|
board_flash_mode = dout
|
2018-01-18 15:19:28 +00:00
|
|
|
build_flags = -Wl,-Tesp8266.flash.1m0.ld -DMY_LANGUAGE=de-DE
|
2017-09-02 16:24:05 +01:00
|
|
|
lib_deps = PubSubClient, NeoPixelBus, IRremoteESP8266, ArduinoJSON
|
2018-02-03 15:36:25 +00:00
|
|
|
extra_scripts = pio/strip-floats.py
|
2017-09-02 16:24:05 +01:00
|
|
|
|
2017-09-30 14:53:50 +01:00
|
|
|
; *** Serial Monitor options
|
2017-09-02 16:24:05 +01:00
|
|
|
monitor_baud = 115200
|
|
|
|
|
2018-01-18 15:19:28 +00:00
|
|
|
[env:sonoff-ES]
|
2017-10-18 17:22:34 +01:00
|
|
|
platform = espressif8266
|
|
|
|
framework = arduino
|
|
|
|
board = esp01_1m
|
|
|
|
board_flash_mode = dout
|
2018-01-18 15:19:28 +00:00
|
|
|
build_flags = -Wl,-Tesp8266.flash.1m0.ld -DMY_LANGUAGE=es-AR
|
2017-10-18 17:22:34 +01:00
|
|
|
lib_deps = PubSubClient, NeoPixelBus, IRremoteESP8266, ArduinoJSON
|
2018-02-03 15:36:25 +00:00
|
|
|
extra_scripts = pio/strip-floats.py
|
2017-10-18 17:22:34 +01:00
|
|
|
|
|
|
|
; *** Serial Monitor options
|
|
|
|
monitor_baud = 115200
|
|
|
|
|
2018-01-18 15:19:28 +00:00
|
|
|
[env:sonoff-FR]
|
2017-10-23 11:18:15 +01:00
|
|
|
platform = espressif8266
|
|
|
|
framework = arduino
|
|
|
|
board = esp01_1m
|
|
|
|
board_flash_mode = dout
|
2018-01-18 15:19:28 +00:00
|
|
|
build_flags = -Wl,-Tesp8266.flash.1m0.ld -DMY_LANGUAGE=fr-FR
|
2017-10-23 11:18:15 +01:00
|
|
|
lib_deps = PubSubClient, NeoPixelBus, IRremoteESP8266, ArduinoJSON
|
2018-02-03 15:36:25 +00:00
|
|
|
extra_scripts = pio/strip-floats.py
|
2017-10-23 11:18:15 +01:00
|
|
|
|
|
|
|
; *** Serial Monitor options
|
|
|
|
monitor_baud = 115200
|
|
|
|
|
2017-12-28 12:43:51 +00:00
|
|
|
[env:sonoff-IT]
|
|
|
|
platform = espressif8266
|
|
|
|
framework = arduino
|
|
|
|
board = esp01_1m
|
|
|
|
board_flash_mode = dout
|
2018-01-18 15:19:28 +00:00
|
|
|
build_flags = -Wl,-Tesp8266.flash.1m0.ld -DMY_LANGUAGE=it-IT
|
2017-12-28 12:43:51 +00:00
|
|
|
lib_deps = PubSubClient, NeoPixelBus, IRremoteESP8266, ArduinoJSON
|
2018-02-03 15:36:25 +00:00
|
|
|
extra_scripts = pio/strip-floats.py
|
2017-12-28 12:43:51 +00:00
|
|
|
|
|
|
|
; *** Serial Monitor options
|
|
|
|
monitor_baud = 115200
|
|
|
|
|
2018-01-18 15:19:28 +00:00
|
|
|
[env:sonoff-NL]
|
2017-12-28 12:43:51 +00:00
|
|
|
platform = espressif8266
|
|
|
|
framework = arduino
|
|
|
|
board = esp01_1m
|
|
|
|
board_flash_mode = dout
|
2018-01-18 15:19:28 +00:00
|
|
|
build_flags = -Wl,-Tesp8266.flash.1m0.ld -DMY_LANGUAGE=nl-NL
|
2017-12-28 12:43:51 +00:00
|
|
|
lib_deps = PubSubClient, NeoPixelBus, IRremoteESP8266, ArduinoJSON
|
2018-02-03 15:36:25 +00:00
|
|
|
extra_scripts = pio/strip-floats.py
|
2017-12-28 12:43:51 +00:00
|
|
|
|
2018-01-18 15:19:28 +00:00
|
|
|
; *** 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
|
2018-02-03 15:36:25 +00:00
|
|
|
extra_scripts = pio/strip-floats.py
|
2018-01-18 15:19:28 +00:00
|
|
|
|
|
|
|
; *** 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
|
2018-02-03 15:36:25 +00:00
|
|
|
extra_scripts = pio/strip-floats.py
|
2018-01-18 15:19:28 +00:00
|
|
|
|
|
|
|
; *** Serial Monitor options
|
2017-12-28 12:43:51 +00:00
|
|
|
monitor_baud = 115200
|
|
|
|
|
|
|
|
[env:sonoff-minimal]
|
2017-06-01 16:37:30 +01:00
|
|
|
platform = espressif8266
|
|
|
|
framework = arduino
|
|
|
|
board = esp01_1m
|
2017-07-14 12:00:08 +01:00
|
|
|
board_flash_mode = dout
|
2018-01-18 15:19:28 +00:00
|
|
|
build_flags = -Wl,-Tesp8266.flash.1m0.ld -DBE_MINIMAL
|
2017-06-01 16:37:30 +01:00
|
|
|
lib_deps = PubSubClient, NeoPixelBus, IRremoteESP8266, ArduinoJSON
|
2018-02-03 15:36:25 +00:00
|
|
|
extra_scripts = pio/strip-floats.py
|
2017-06-01 16:37:30 +01:00
|
|
|
|
2017-09-02 16:24:05 +01:00
|
|
|
; Serial Monitor options
|
|
|
|
monitor_baud = 115200
|
|
|
|
|
2017-06-01 16:37:30 +01:00
|
|
|
[env:sonoff-ds18x20]
|
|
|
|
platform = espressif8266
|
|
|
|
framework = arduino
|
|
|
|
board = esp01_1m
|
2017-07-14 12:00:08 +01:00
|
|
|
board_flash_mode = dout
|
2018-01-18 15:19:28 +00:00
|
|
|
build_flags = -Wl,-Tesp8266.flash.1m0.ld -DUSE_DS18x20
|
v5.9.1j - Add Dual R2, Rewrite DS18x20 and fixes
5.9.1j
* Revert changes to xsns_05_ds18x20.ino and rename to
xsns_05_ds18x20_legacy.ino still needing library OneWire and providing
legacy JSON message:
*
"DS18x20":{"DS1":{"Type":"DS18B20","Address":"284CC48E04000079","Temperature":19.5},"DS2":{"Type":"DS18B20","Address":"283AC28304000052","Temperature":19.6}}
* Add new xdrv_05_ds18x20.ino free from library OneWire and add the
following features:
* Add support for DS1822
* Add forced setting of
12-bit resolution for selected device types (#1222)
* Add read
temperature retry counter (#1215)
* Fix lost sensors by performing
sensor probe at restart only thereby removing dynamic sensor probe
(#1215)
* Fix sensor address sorting using ascending sort on sensor
type followed by sensor address
* Rewrite JSON resulting in shorter
message allowing more sensors in default firmware image:
*
"DS18B20-1":{"Id":"00000483C23A","Temperature":19.5},"DS18B20-2":{"Id":"0000048EC44C","Temperature":19.6}
* Add additional define in user_config.h to select either single sensor
(defines disabled), new multi sensor (USE_DS18X20) or legacy multi
sensor (USE_DS18X20_LEGACY)
* Add support for Sonoff Dual R2 (#1249)
*
Fix ADS1115 detection (#1258)
2017-11-27 16:46:51 +00:00
|
|
|
lib_deps = PubSubClient, NeoPixelBus, IRremoteESP8266, ArduinoJSON
|
2018-02-03 15:36:25 +00:00
|
|
|
extra_scripts = pio/strip-floats.py
|
2017-09-02 16:24:05 +01:00
|
|
|
|
|
|
|
; Serial Monitor options
|
|
|
|
monitor_baud = 115200
|