diff --git a/code/core_version.py b/code/core_version.py deleted file mode 100644 index bffcb03a..00000000 --- a/code/core_version.py +++ /dev/null @@ -1,51 +0,0 @@ -#!/bin/python - -import json -import commands -import subprocess -import os -import sys - -def core_version(env): - - # Get the core folder - fwdir = env["FRAMEWORK_ARDUINOESP8266_DIR"] - - # Get the core version - with open(fwdir + '/package.json') as data_file: - data = json.load(data_file) - core_version = data["version"].upper().replace(".", "_").replace("-", "_") - print "CORE VERSION: %s" % core_version - - # Get git version - pr = subprocess.Popen( - "git --git-dir .git rev-parse --short=8 HEAD 2>/dev/null || echo ffffffff", - cwd = fwdir, - shell = True, stdout = subprocess.PIPE, stderr = subprocess.PIPE ) - (out, error) = pr.communicate() - git_version = str(out).replace('\n', "") - print "GIT VERSION: %s" % git_version - - #env["BUILD_FLAGS"][0] += str(" -DARDUINO_ESP8266_RELEASE=" + core_version) - #env["BUILD_FLAGS"][0] += str(" -DARDUINO_ESP8266_RELEASE_" + core_version) - #env["BUILD_FLAGS"][0] += str(" -DARDUINO_ESP8266_GIT_VER=" + git_version) - - with open('espurna/config/core_version.h', 'w') as the_file: - the_file.write('#define ARDUINO_ESP8266_RELEASE "%s"\n' % core_version) - the_file.write('#define ARDUINO_ESP8266_RELEASE_%s\n' % core_version) - the_file.write('#define ARDUINO_ESP8266_GIT_VER "%s"\n' % git_version) - - #env.Append( - # CFLAGS = [ - # str("-DARDUINO_ESP8266_RELEASE=" + core_version), - # str("-DARDUINO_ESP8266_RELEASE_" + core_version), - # str("-DARDUINO_ESP8266_GIT_VER=" + git_version) - # ] - #) - - #print " -DARDUINO_ESP8266_RELEASE=" + core_version + - # " -DARDUINO_ESP8266_RELEASE_" + core_version + - # " -DARDUINO_ESP8266_GIT_VER=" + git_version - -Import('env') -core_version(env) diff --git a/code/extra_scripts.py b/code/extra_scripts.py new file mode 100644 index 00000000..e35ca578 --- /dev/null +++ b/code/extra_scripts.py @@ -0,0 +1,45 @@ +#!/usr/bin/env python +Import("env") + +# ------------------------------------------------------------------------------ +# Utils +# ------------------------------------------------------------------------------ + +class Color: + BLACK = '\x1b[1;30m' + RED = '\x1b[1;31m' + GREEN = '\x1b[1;32m' + YELLOW = '\x1b[1;33m' + BLUE = '\x1b[1;34m' + MAGENTA = '\x1b[1;35m' + CYAN = '\x1b[1;36m' + WHITE = '\x1b[1;37m' + LIGHT_GREY = '\x1b[0;30m' + LIGHT_RED = '\x1b[0;31m' + LIGHT_GREEN = '\x1b[0;32m' + LIGHT_YELLOW = '\x1b[0;33m' + LIGHT_BLUE = '\x1b[0;34m' + LIGHT_MAGENTA = '\x1b[0;35m' + LIGHT_CYAN = '\x1b[0;36m' + LIGHT_WHITE = '\x1b[0;37m' + +def clr(color, text): + return color + str(text) + '\x1b[0m' + +# ------------------------------------------------------------------------------ +# Callbacks +# ------------------------------------------------------------------------------ + +def check_size(source, target, env): + size = target[0].get_size() + print clr(Color.LIGHT_BLUE, "Binary size: %s bytes" % size) + if size > 512000: + print clr(Color.LIGHT_RED, "File too large for OTA!") + Exit(1) + +# ------------------------------------------------------------------------------ +# Hooks +# ------------------------------------------------------------------------------ + +print env.Dump() +env.AddPostAction("$BUILD_DIR/${PROGNAME}.bin", check_size) diff --git a/code/platformio.ini b/code/platformio.ini index 78e4a529..01e0bf20 100644 --- a/code/platformio.ini +++ b/code/platformio.ini @@ -33,8 +33,7 @@ lib_deps = https://github.com/xoseperez/RemoteSwitch-arduino-library.git https://github.com/markszabo/IRremoteESP8266#v2.2.0 lib_ignore = -#extra_scripts = post:core_version.py -extra_scripts = +extra_scripts = extra_script.py # ------------------------------------------------------------------------------ @@ -58,6 +57,7 @@ lib_ignore = ${common.lib_ignore} build_flags = ${common.build_flags} -DWEMOS_D1_MINI_RELAYSHIELD -DDEBUG_FAUXMO=Serial -DNOWSAUTH -DASYNC_TCP_SSL_ENABLED=1 upload_speed = 460800 monitor_baud = 115200 +extra_scripts = ${common.extra_scripts} [env:wemos-d1mini-relayshield-ota] platform = ${common.platform} @@ -69,6 +69,7 @@ build_flags = ${common.build_flags} -DWEMOS_D1_MINI_RELAYSHIELD -DDEBUG_FAUXMO=S upload_speed = 115200 upload_port = "192.168.4.1" upload_flags = --auth=fibonacci --port 8266 +extra_scripts = ${common.extra_scripts} [env:nodemcu-lolin] platform = ${common.platform} @@ -79,6 +80,7 @@ lib_ignore = ${common.lib_ignore} build_flags = ${common.build_flags} -DNODEMCU_LOLIN -DDEBUG_FAUXMO=Serial -DNOWSAUTH upload_speed = 460800 monitor_baud = 115200 +extra_scripts = ${common.extra_scripts} [env:nodemcu-lolin-ssl] platform = espressif8266_stage @@ -89,6 +91,7 @@ lib_ignore = ${common.lib_ignore} build_flags = ${common.build_flags} -DNODEMCU_LOLIN -DDEBUG_FAUXMO=Serial -DNOWSAUTH -DASYNC_TCP_SSL_ENABLED=1 upload_speed = 460800 monitor_baud = 115200 +extra_scripts = ${common.extra_scripts} [env:nodemcu-lolin-ota] platform = ${common.platform} @@ -101,6 +104,7 @@ upload_speed = 115200 upload_port = "192.168.4.1" upload_flags = --auth=fibonacci --port 8266 monitor_baud = 115200 +extra_scripts = ${common.extra_scripts} # ------------------------------------------------------------------------------ @@ -112,6 +116,7 @@ lib_deps = ${common.lib_deps} lib_ignore = ${common.lib_ignore} build_flags = ${common.build_flags} -DTINKERMAN_ESPURNA_H06 monitor_baud = 115200 +extra_scripts = ${common.extra_scripts} [env:tinkerman-espurna-h06-ota] platform = ${common.platform} @@ -124,6 +129,7 @@ upload_speed = 115200 upload_port = "192.168.4.1" upload_flags = --auth=fibonacci --port 8266 monitor_baud = 115200 +extra_scripts = ${common.extra_scripts} [env:tinkerman-espurna-h08] platform = ${common.platform} @@ -133,6 +139,7 @@ lib_deps = ${common.lib_deps} lib_ignore = ${common.lib_ignore} build_flags = ${common.build_flags} -DTINKERMAN_ESPURNA_H08 monitor_baud = 115200 +extra_scripts = ${common.extra_scripts} [env:tinkerman-espurna-h08-ota] platform = ${common.platform} @@ -145,6 +152,7 @@ upload_speed = 115200 upload_port = "192.168.4.1" upload_flags = --auth=fibonacci --port 8266 monitor_baud = 115200 +extra_scripts = ${common.extra_scripts} # ------------------------------------------------------------------------------ @@ -157,6 +165,7 @@ lib_deps = ${common.lib_deps} lib_ignore = ${common.lib_ignore} build_flags = ${common.build_flags_1m} -DITEAD_SONOFF_BASIC monitor_baud = 115200 +extra_scripts = ${common.extra_scripts} [env:itead-sonoff-basic-ota] platform = ${common.platform} @@ -170,6 +179,7 @@ upload_speed = 115200 upload_port = "192.168.4.1" upload_flags = --auth=fibonacci --port 8266 monitor_baud = 115200 +extra_scripts = ${common.extra_scripts} [env:itead-sonoff-basic-dht] platform = ${common.platform} @@ -180,6 +190,7 @@ lib_deps = ${common.lib_deps} lib_ignore = ${common.lib_ignore} build_flags = ${common.build_flags_1m} -DITEAD_SONOFF_BASIC -DDHT_SUPPORT=1 monitor_baud = 115200 +extra_scripts = ${common.extra_scripts} [env:itead-sonoff-basic-dht-ota] platform = ${common.platform} @@ -193,6 +204,7 @@ upload_speed = 115200 upload_port = "192.168.4.1" upload_flags = --auth=fibonacci --port 8266 monitor_baud = 115200 +extra_scripts = ${common.extra_scripts} [env:itead-sonoff-basic-dallas] platform = ${common.platform} @@ -203,6 +215,7 @@ lib_deps = ${common.lib_deps} lib_ignore = ${common.lib_ignore} build_flags = ${common.build_flags_1m} -DITEAD_SONOFF_BASIC -DDALLAS_SUPPORT=1 monitor_baud = 115200 +extra_scripts = ${common.extra_scripts} [env:itead-sonoff-rf] platform = ${common.platform} @@ -213,6 +226,7 @@ lib_deps = ${common.lib_deps} lib_ignore = ${common.lib_ignore} build_flags = ${common.build_flags_1m} -DITEAD_SONOFF_RF monitor_baud = 115200 +extra_scripts = ${common.extra_scripts} [env:itead-sonoff-rf-ota] platform = ${common.platform} @@ -226,6 +240,7 @@ upload_speed = 115200 upload_port = "192.168.4.1" upload_flags = --auth=fibonacci --port 8266 monitor_baud = 115200 +extra_scripts = ${common.extra_scripts} [env:itead-sonoff-th] platform = ${common.platform} @@ -236,6 +251,7 @@ lib_deps = ${common.lib_deps} lib_ignore = ${common.lib_ignore} build_flags = ${common.build_flags_1m} -DITEAD_SONOFF_TH monitor_baud = 115200 +extra_scripts = ${common.extra_scripts} [env:itead-sonoff-th-ota] platform = ${common.platform} @@ -249,6 +265,7 @@ upload_speed = 115200 upload_port = "192.168.4.1" upload_flags = --auth=fibonacci --port 8266 monitor_baud = 115200 +extra_scripts = ${common.extra_scripts} [env:itead-sonoff-pow] platform = ${common.platform} @@ -259,6 +276,7 @@ lib_deps = ${common.lib_deps} lib_ignore = ${common.lib_ignore} build_flags = ${common.build_flags_1m} -DITEAD_SONOFF_POW monitor_baud = 115200 +extra_scripts = ${common.extra_scripts} [env:itead-sonoff-pow-ota] platform = ${common.platform} @@ -272,6 +290,7 @@ upload_speed = 115200 upload_port = "192.168.4.1" upload_flags = --auth=fibonacci --port 8266 monitor_baud = 115200 +extra_scripts = ${common.extra_scripts} [env:itead-sonoff-dual] platform = ${common.platform} @@ -281,6 +300,7 @@ board_flash_mode = dout lib_deps = ${common.lib_deps} lib_ignore = ${common.lib_ignore} build_flags = ${common.build_flags_1m} -DITEAD_SONOFF_DUAL +extra_scripts = ${common.extra_scripts} [env:itead-sonoff-dual-ota] platform = ${common.platform} @@ -293,6 +313,7 @@ build_flags = ${common.build_flags_1m} -DITEAD_SONOFF_DUAL upload_speed = 115200 upload_port = "192.168.4.1" upload_flags = --auth=fibonacci --port 8266 +extra_scripts = ${common.extra_scripts} [env:itead-sonoff-dual-r2] platform = ${common.platform} @@ -302,6 +323,7 @@ board_flash_mode = dout lib_deps = ${common.lib_deps} lib_ignore = ${common.lib_ignore} build_flags = ${common.build_flags_1m} -DITEAD_SONOFF_DUAL_R2 +extra_scripts = ${common.extra_scripts} [env:itead-sonoff-dual-ota-r2] platform = ${common.platform} @@ -314,6 +336,7 @@ build_flags = ${common.build_flags_1m} -DITEAD_SONOFF_DUAL_R2 upload_speed = 115200 upload_port = "192.168.4.1" upload_flags = --auth=fibonacci --port 8266 +extra_scripts = ${common.extra_scripts} [env:itead-sonoff-4ch] platform = ${common.platform} @@ -324,6 +347,7 @@ lib_deps = ${common.lib_deps} lib_ignore = ${common.lib_ignore} build_flags = ${common.build_flags_1m} -DITEAD_SONOFF_4CH monitor_baud = 115200 +extra_scripts = ${common.extra_scripts} [env:itead-sonoff-4ch-ota] platform = ${common.platform} @@ -337,6 +361,7 @@ upload_speed = 115200 upload_port = "192.168.4.1" upload_flags = --auth=fibonacci --port 8266 monitor_baud = 115200 +extra_scripts = ${common.extra_scripts} [env:itead-sonoff-4ch-pro] platform = ${common.platform} @@ -347,6 +372,7 @@ lib_deps = ${common.lib_deps} lib_ignore = ${common.lib_ignore} build_flags = ${common.build_flags_1m} -DITEAD_SONOFF_4CH_PRO monitor_baud = 115200 +extra_scripts = ${common.extra_scripts} [env:itead-sonoff-4ch-pro-ota] platform = ${common.platform} @@ -360,6 +386,7 @@ upload_speed = 115200 upload_port = "192.168.4.1" upload_flags = --auth=fibonacci --port 8266 monitor_baud = 115200 +extra_scripts = ${common.extra_scripts} [env:itead-sonoff-touch] platform = ${common.platform} @@ -370,6 +397,7 @@ lib_deps = ${common.lib_deps} lib_ignore = ${common.lib_ignore} build_flags = ${common.build_flags_1m} -DITEAD_SONOFF_TOUCH monitor_baud = 115200 +extra_scripts = ${common.extra_scripts} [env:itead-sonoff-touch-ota] platform = ${common.platform} @@ -383,6 +411,7 @@ upload_speed = 115200 upload_port = "192.168.4.1" upload_flags = --auth=fibonacci --port 8266 monitor_baud = 115200 +extra_scripts = ${common.extra_scripts} [env:itead-sonoff-b1] platform = ${common.platform} @@ -393,6 +422,7 @@ lib_deps = ${common.lib_deps} lib_ignore = ${common.lib_ignore} build_flags = ${common.build_flags_1m} -DITEAD_SONOFF_B1 monitor_baud = 115200 +extra_scripts = ${common.extra_scripts} [env:itead-sonoff-b1-ota] platform = ${common.platform} @@ -406,6 +436,7 @@ upload_speed = 115200 upload_port = "192.168.4.1" upload_flags = --auth=fibonacci --port 8266 monitor_baud = 115200 +extra_scripts = ${common.extra_scripts} [env:itead-sonoff-t1-1ch] platform = ${common.platform} @@ -416,6 +447,7 @@ lib_deps = ${common.lib_deps} lib_ignore = ${common.lib_ignore} build_flags = ${common.build_flags_1m} -DITEAD_SONOFF_T1_1CH monitor_baud = 115200 +extra_scripts = ${common.extra_scripts} [env:itead-sonoff-t1-1ch-ota] platform = ${common.platform} @@ -429,6 +461,7 @@ upload_speed = 115200 upload_port = "192.168.4.1" upload_flags = --auth=fibonacci --port 8266 monitor_baud = 115200 +extra_scripts = ${common.extra_scripts} [env:itead-sonoff-t1-2ch] platform = ${common.platform} @@ -439,6 +472,7 @@ lib_deps = ${common.lib_deps} lib_ignore = ${common.lib_ignore} build_flags = ${common.build_flags_1m} -DITEAD_SONOFF_T1_2CH monitor_baud = 115200 +extra_scripts = ${common.extra_scripts} [env:itead-sonoff-t1-2ch-ota] platform = ${common.platform} @@ -452,6 +486,7 @@ upload_speed = 115200 upload_port = "192.168.4.1" upload_flags = --auth=fibonacci --port 8266 monitor_baud = 115200 +extra_scripts = ${common.extra_scripts} [env:itead-sonoff-t1-3ch] platform = ${common.platform} @@ -462,6 +497,7 @@ lib_deps = ${common.lib_deps} lib_ignore = ${common.lib_ignore} build_flags = ${common.build_flags_1m} -DITEAD_SONOFF_T1_3CH monitor_baud = 115200 +extra_scripts = ${common.extra_scripts} [env:itead-sonoff-t1-3ch-ota] platform = ${common.platform} @@ -475,6 +511,7 @@ upload_speed = 115200 upload_port = "192.168.4.1" upload_flags = --auth=fibonacci --port 8266 monitor_baud = 115200 +extra_scripts = ${common.extra_scripts} [env:itead-sonoff-led] platform = ${common.platform} @@ -485,6 +522,7 @@ lib_deps = ${common.lib_deps} lib_ignore = ${common.lib_ignore} build_flags = ${common.build_flags_1m} -DITEAD_SONOFF_LED monitor_baud = 115200 +extra_scripts = ${common.extra_scripts} [env:itead-sonoff-led-ota] platform = ${common.platform} @@ -498,6 +536,7 @@ upload_speed = 115200 upload_port = "192.168.4.1" upload_flags = --auth=fibonacci --port 8266 monitor_baud = 115200 +extra_scripts = ${common.extra_scripts} [env:itead-sonoff-rfbridge] platform = ${common.platform} @@ -508,6 +547,7 @@ lib_deps = ${common.lib_deps} lib_ignore = ${common.lib_ignore} build_flags = ${common.build_flags_1m} -DITEAD_SONOFF_RFBRIDGE monitor_baud = 19200 +extra_scripts = ${common.extra_scripts} [env:itead-sonoff-rfbridge-ota] platform = ${common.platform} @@ -521,6 +561,7 @@ upload_speed = 115200 upload_port = "192.168.4.1" upload_flags = --auth=Algernon1 --port 8266 monitor_baud = 19200 +extra_scripts = ${common.extra_scripts} # ------------------------------------------------------------------------------ @@ -533,6 +574,7 @@ lib_deps = ${common.lib_deps} lib_ignore = ${common.lib_ignore} build_flags = ${common.build_flags_1m} -DITEAD_SLAMPHER monitor_baud = 115200 +extra_scripts = ${common.extra_scripts} [env:itead-slampher-ota] platform = ${common.platform} @@ -546,6 +588,7 @@ upload_speed = 115200 upload_port = "192.168.4.1" upload_flags = --auth=fibonacci --port 8266 monitor_baud = 115200 +extra_scripts = ${common.extra_scripts} [env:itead-s20] platform = ${common.platform} @@ -556,6 +599,7 @@ lib_deps = ${common.lib_deps} lib_ignore = ${common.lib_ignore} build_flags = ${common.build_flags_1m} -DITEAD_S20 monitor_baud = 115200 +extra_scripts = ${common.extra_scripts} [env:itead-s20-ota] platform = ${common.platform} @@ -569,6 +613,7 @@ upload_speed = 115200 upload_port = "192.168.4.1" upload_flags = --auth=fibonacci --port 8266 monitor_baud = 115200 +extra_scripts = ${common.extra_scripts} [env:itead-1ch-inching] platform = ${common.platform} @@ -579,6 +624,7 @@ lib_deps = ${common.lib_deps} lib_ignore = ${common.lib_ignore} build_flags = ${common.build_flags_1m} -DITEAD_1CH_INCHING monitor_baud = 115200 +extra_scripts = ${common.extra_scripts} [env:itead-1ch-inching-ota] platform = ${common.platform} @@ -592,6 +638,7 @@ upload_speed = 115200 upload_port = "192.168.4.1" upload_flags = --auth=fibonacci --port 8266 monitor_baud = 115200 +extra_scripts = ${common.extra_scripts} [env:itead-motor] platform = ${common.platform} @@ -602,6 +649,7 @@ lib_deps = ${common.lib_deps} lib_ignore = ${common.lib_ignore} build_flags = ${common.build_flags_1m} -DITEAD_MOTOR monitor_baud = 115200 +extra_scripts = ${common.extra_scripts} [env:itead-motor-ota] platform = ${common.platform} @@ -615,6 +663,7 @@ upload_speed = 115200 upload_port = "192.168.4.1" upload_flags = --auth=fibonacci --port 8266 monitor_baud = 115200 +extra_scripts = ${common.extra_scripts} # ------------------------------------------------------------------------------ @@ -626,6 +675,7 @@ lib_deps = ${common.lib_deps} lib_ignore = ${common.lib_ignore} build_flags = ${common.build_flags} -DELECTRODRAGON_WIFI_IOT -DDHT_SUPPORT=1 monitor_baud = 115200 +extra_scripts = ${common.extra_scripts} [env:electrodragon-wifi-iot-ota] platform = ${common.platform} @@ -638,6 +688,7 @@ upload_speed = 115200 upload_port = "192.168.4.1" upload_flags = --auth=fibonacci --port 8266 monitor_baud = 115200 +extra_scripts = ${common.extra_scripts} [env:workchoice-ecoplug] platform = ${common.platform} @@ -648,6 +699,7 @@ lib_deps = ${common.lib_deps} lib_ignore = ${common.lib_ignore} build_flags = ${common.build_flags_1m} -DWORKCHOICE_ECOPLUG monitor_baud = 115200 +extra_scripts = ${common.extra_scripts} [env:workchoice-ecoplug-ota] platform = ${common.platform} @@ -661,6 +713,7 @@ upload_speed = 115200 upload_port = "192.168.4.1" upload_flags = --auth=fibonacci --port 8266 monitor_baud = 115200 +extra_scripts = ${common.extra_scripts} [env:jangoe-wifi-relay] platform = ${common.platform} @@ -670,6 +723,7 @@ lib_deps = ${common.lib_deps} lib_ignore = ${common.lib_ignore} build_flags = ${common.build_flags} -DJANGOE_WIFI_RELAY_NC monitor_baud = 115200 +extra_scripts = ${common.extra_scripts} [env:jangoe-wifi-relay-ota] platform = ${common.platform} @@ -682,6 +736,7 @@ upload_speed = 115200 upload_port = "192.168.4.1" upload_flags = --auth=fibonacci --port 8266 monitor_baud = 115200 +extra_scripts = ${common.extra_scripts} [env:openenergymonitor-mqtt-relay] platform = ${common.platform} @@ -691,6 +746,7 @@ lib_deps = ${common.lib_deps} lib_ignore = ${common.lib_ignore} build_flags = ${common.build_flags} -DOPENENERGYMONITOR_MQTT_RELAY -DDALLAS_SUPPORT=1 monitor_baud = 115200 +extra_scripts = ${common.extra_scripts} [env:openenergymonitor-mqtt-relay-ota] platform = ${common.platform} @@ -703,6 +759,7 @@ upload_speed = 115200 upload_port = "192.168.4.1" upload_flags = --auth=fibonacci --port 8266 monitor_baud = 115200 +extra_scripts = ${common.extra_scripts} [env:jorgegarcia-wifi-relays] platform = ${common.platform} @@ -712,6 +769,7 @@ lib_deps = ${common.lib_deps} lib_ignore = ${common.lib_ignore} build_flags = ${common.build_flags_1m} -DJORGEGARCIA_WIFI_RELAYS monitor_baud = 115200 +extra_scripts = ${common.extra_scripts} [env:jorgegarcia-wifi-relays-ota] platform = ${common.platform} @@ -724,6 +782,7 @@ upload_speed = 115200 upload_port = "192.168.4.1" upload_flags = --auth=fibonacci --port 8266 monitor_baud = 115200 +extra_scripts = ${common.extra_scripts} [env:aithinker-ai-light] platform = ${common.platform} @@ -734,6 +793,7 @@ lib_deps = ${common.lib_deps} lib_ignore = ${common.lib_ignore} build_flags = ${common.build_flags_1m} -DAITHINKER_AI_LIGHT monitor_baud = 115200 +extra_scripts = ${common.extra_scripts} [env:aithinker-ai-light-ota] platform = ${common.platform} @@ -747,6 +807,7 @@ upload_speed = 115200 upload_port = "192.168.4.1" upload_flags = --auth=fibonacci --port 8266 monitor_baud = 115200 +extra_scripts = ${common.extra_scripts} [env:magichome-led-controller] platform = ${common.platform} @@ -757,6 +818,7 @@ lib_deps = ${common.lib_deps} lib_ignore = ${common.lib_ignore} build_flags = ${common.build_flags_1m} -DMAGICHOME_LED_CONTROLLER monitor_baud = 115200 +extra_scripts = ${common.extra_scripts} [env:magichome-led-controller-ota] platform = ${common.platform} @@ -770,6 +832,7 @@ upload_speed = 115200 upload_port = "192.168.4.1" upload_flags = --auth=fibonacci --port 8266 monitor_baud = 115200 +extra_scripts = ${common.extra_scripts} [env:magichome-led-controller-20] platform = ${common.platform} @@ -780,6 +843,7 @@ lib_deps = ${common.lib_deps} lib_ignore = ${common.lib_ignore} build_flags = ${common.build_flags_1m} -DMAGICHOME_LED_CONTROLLER_20 monitor_baud = 115200 +extra_scripts = ${common.extra_scripts} [env:magichome-led-controller-20-ota] platform = ${common.platform} @@ -792,6 +856,7 @@ build_flags = ${common.build_flags_1m} -DMAGICHOME_LED_CONTROLLER_20 upload_port = "192.168.4.1" upload_flags = --auth=fibonacci --port 8266 monitor_baud = 115200 +extra_scripts = ${common.extra_scripts} [env:huacanxing-h801] platform = ${common.platform} @@ -802,6 +867,7 @@ lib_deps = ${common.lib_deps} lib_ignore = ${common.lib_ignore} build_flags = -g -Wl,-Tesp8266.flash.1m0.ld -DHUACANXING_H801 monitor_baud = 115200 +extra_scripts = ${common.extra_scripts} [env:huacanxing-h801-ota] platform = ${common.platform} @@ -815,6 +881,7 @@ upload_speed = 115200 upload_port = "192.168.4.1" upload_flags = --auth=fibonacci --port 8266 monitor_baud = 115200 +extra_scripts = ${common.extra_scripts} [env:huacanxing-h802] platform = ${common.platform} @@ -825,6 +892,7 @@ lib_deps = ${common.lib_deps} lib_ignore = ${common.lib_ignore} build_flags = -g -Wl,-Tesp8266.flash.1m0.ld -DHUACANXING_H802 monitor_baud = 115200 +extra_scripts = ${common.extra_scripts} [env:huacanxing-h802-ota] platform = ${common.platform} @@ -838,6 +906,7 @@ upload_speed = 115200 upload_port = "192.168.4.1" upload_flags = --auth=fibonacci --port 8266 monitor_baud = 115200 +extra_scripts = ${common.extra_scripts} [env:arilux-al-lc01] platform = ${common.platform} @@ -848,6 +917,7 @@ lib_deps = ${common.lib_deps} lib_ignore = ${common.lib_ignore} build_flags = -g -Wl,-Tesp8266.flash.1m0.ld -DARILUX_AL_LC01 monitor_baud = 115200 +extra_scripts = ${common.extra_scripts} [env:arilux-al-lc01-ota] platform = ${common.platform} @@ -861,6 +931,7 @@ upload_speed = 115200 upload_port = "192.168.4.1" upload_flags = --auth=fibonacci --port 8266 monitor_baud = 115200 +extra_scripts = ${common.extra_scripts} [env:arilux-al-lc06] platform = ${common.platform} @@ -871,6 +942,7 @@ lib_deps = ${common.lib_deps} lib_ignore = ${common.lib_ignore} build_flags = -g -Wl,-Tesp8266.flash.1m0.ld -DARILUX_AL_LC06 monitor_baud = 115200 +extra_scripts = ${common.extra_scripts} [env:arilux-al-lc06-ota] platform = ${common.platform} @@ -884,6 +956,7 @@ upload_speed = 115200 upload_port = "192.168.4.1" upload_flags = --auth=fibonacci --port 8266 monitor_baud = 115200 +extra_scripts = ${common.extra_scripts} [env:arilux-al-lc11] platform = ${common.platform} @@ -894,6 +967,7 @@ lib_deps = ${common.lib_deps} lib_ignore = ${common.lib_ignore} build_flags = -g -Wl,-Tesp8266.flash.1m0.ld -DARILUX_AL_LC11 monitor_baud = 115200 +extra_scripts = ${common.extra_scripts} [env:arilux-al-lc11-ota] platform = ${common.platform} @@ -907,6 +981,7 @@ upload_speed = 115200 upload_port = "192.168.4.1" upload_flags = --auth=fibonacci --port 8266 monitor_baud = 115200 +extra_scripts = ${common.extra_scripts} [env:arilux-e27] platform = ${common.platform} @@ -917,6 +992,7 @@ lib_deps = ${common.lib_deps} lib_ignore = ${common.lib_ignore} build_flags = -g -Wl,-Tesp8266.flash.1m0.ld -DARILUX_E27 monitor_baud = 115200 +extra_scripts = ${common.extra_scripts} [env:arilux-e27-ota] platform = ${common.platform} @@ -930,6 +1006,7 @@ upload_speed = 115200 upload_port = "192.168.4.1" upload_flags = --auth=fibonacci --port 8266 monitor_baud = 115200 +extra_scripts = ${common.extra_scripts} [env:itead-bnsz01] platform = ${common.platform} @@ -940,6 +1017,7 @@ lib_deps = ${common.lib_deps} lib_ignore = ${common.lib_ignore} build_flags = ${common.build_flags_1m} -DITEAD_BNSZ01 monitor_baud = 115200 +extra_scripts = ${common.extra_scripts} [env:itead-bnsz01-ota] platform = ${common.platform} @@ -953,6 +1031,7 @@ upload_speed = 115200 upload_port = "192.168.4.1" upload_flags = --auth=fibonacci --port 8266 monitor_baud = 115200 +extra_scripts = ${common.extra_scripts} [env:wion-50055] platform = ${common.platform} @@ -963,6 +1042,7 @@ lib_deps = ${common.lib_deps} lib_ignore = ${common.lib_ignore} build_flags = ${common.build_flags_1m} -DWION_50055 monitor_baud = 115200 +extra_scripts = ${common.extra_scripts} [env:wion-50055-ota] platform = ${common.platform} @@ -976,6 +1056,7 @@ upload_speed = 115200 upload_port = "192.168.4.1" upload_flags = --auth=fibonacci --port 8266 monitor_baud = 115200 +extra_scripts = ${common.extra_scripts} [env:exs-wifi-relay-v31] platform = ${common.platform} @@ -986,6 +1067,7 @@ lib_deps = ${common.lib_deps} lib_ignore = ${common.lib_ignore} build_flags = ${common.build_flags_1m} -DEXS_WIFI_RELAY_V31 monitor_baud = 115200 +extra_scripts = ${common.extra_scripts} [env:exs-wifi-relay-v31-ota] platform = ${common.platform} @@ -999,6 +1081,7 @@ upload_speed = 115200 upload_port = "192.168.4.1" upload_flags = --auth=fibonacci --port 8266 monitor_baud = 115200 +extra_scripts = ${common.extra_scripts} [env:wemos-v9261f] platform = ${common.platform} @@ -1009,6 +1092,7 @@ lib_ignore = ${common.lib_ignore} build_flags = ${common.build_flags} -DGENERIC_V9261F upload_speed = 460800 monitor_baud = 115200 +extra_scripts = ${common.extra_scripts} [env:wemos-v9261f-ota] platform = ${common.platform} @@ -1021,6 +1105,7 @@ upload_speed = 115200 upload_port = "192.168.4.1" upload_flags = --auth=fibonacci --port 8266 monitor_baud = 115200 +extra_scripts = ${common.extra_scripts} [env:esp01-v9261f] platform = ${common.platform} @@ -1031,6 +1116,7 @@ lib_deps = ${common.lib_deps} lib_ignore = ${common.lib_ignore} build_flags = ${common.build_flags_1m} -DGENERIC_V9261F monitor_baud = 115200 +extra_scripts = ${common.extra_scripts} [env:esp01-v9261f-ota] platform = ${common.platform} @@ -1044,6 +1130,7 @@ upload_speed = 115200 upload_port = "192.168.4.1" upload_flags = --auth=fibonacci --port 8266 monitor_baud = 115200 +extra_scripts = ${common.extra_scripts} [env:wemos-ech1560] platform = ${common.platform} @@ -1054,6 +1141,7 @@ lib_ignore = ${common.lib_ignore} build_flags = ${common.build_flags} -DGENERIC_ECH1560 upload_speed = 460800 monitor_baud = 115200 +extra_scripts = ${common.extra_scripts} [env:wemos-ech1560-ota] platform = ${common.platform} @@ -1066,6 +1154,7 @@ upload_speed = 115200 upload_port = "192.168.4.1" upload_flags = --auth=fibonacci --port 8266 monitor_baud = 115200 +extra_scripts = ${common.extra_scripts} [env:esp01-ech1560] platform = ${common.platform} @@ -1076,6 +1165,7 @@ lib_deps = ${common.lib_deps} lib_ignore = ${common.lib_ignore} build_flags = ${common.build_flags_1m} -DGENERIC_ECH1560 monitor_baud = 115200 +extra_scripts = ${common.extra_scripts} [env:esp01-ech1560-ota] platform = ${common.platform} @@ -1089,6 +1179,7 @@ upload_speed = 115200 upload_port = "192.168.4.1" upload_flags = --auth=fibonacci --port 8266 monitor_baud = 115200 +extra_scripts = ${common.extra_scripts} [env:mancavemade-esplive] platform = ${common.platform} @@ -1099,6 +1190,7 @@ lib_ignore = ${common.lib_ignore} build_flags = ${common.build_flags} -DMANCAVEMADE_ESPLIVE upload_speed = 460800 monitor_baud = 115200 +extra_scripts = ${common.extra_scripts} [env:mancavemade-esplive-ota] platform = ${common.platform} @@ -1111,6 +1203,7 @@ upload_speed = 460800 upload_port = "192.168.4.1" upload_flags = --auth=fibonacci --port 8266 monitor_baud = 115200 +extra_scripts = ${common.extra_scripts} [env:intermittech-quinled] platform = ${common.platform} @@ -1121,6 +1214,7 @@ lib_deps = ${common.lib_deps} lib_ignore = ${common.lib_ignore} build_flags = ${common.build_flags_1m} -DINTERMITTECH_QUINLED monitor_baud = 115200 +extra_scripts = ${common.extra_scripts} [env:intermittech-quinled-ota] platform = ${common.platform} @@ -1134,6 +1228,7 @@ upload_speed = 115200 upload_port = "192.168.4.1" upload_flags = --auth=fibonacci --port 8266 monitor_baud = 115200 +extra_scripts = ${common.extra_scripts} [env:xenon-sm-pw702u] platform = ${common.platform} @@ -1144,6 +1239,7 @@ lib_deps = ${common.lib_deps} lib_ignore = ${common.lib_ignore} build_flags = ${common.build_flags_1m} -DXENON_SM_PW702U monitor_baud = 115200 +extra_scripts = ${common.extra_scripts} [env:xenon-sm-pw702u-ota] platform = ${common.platform} @@ -1157,6 +1253,7 @@ upload_speed = 115200 upload_port = "192.168.4.1" upload_flags = --auth=fibonacci --port 8266 monitor_baud = 115200 +extra_scripts = ${common.extra_scripts} [env:authometion-lyt8266] platform = ${common.platform} @@ -1167,6 +1264,7 @@ lib_deps = ${common.lib_deps} lib_ignore = ${common.lib_ignore} build_flags = ${common.build_flags_1m} -DAUTHOMETION_LYT8266 monitor_baud = 115200 +extra_scripts = ${common.extra_scripts} [env:authometion-lyt8266-ota] platform = ${common.platform} @@ -1180,6 +1278,7 @@ upload_speed = 115200 upload_port = "192.168.4.1" upload_flags = --auth=fibonacci --port 8266 monitor_baud = 115200 +extra_scripts = ${common.extra_scripts} [env:yjzk-switch-2ch] platform = ${common.platform} @@ -1190,6 +1289,7 @@ lib_deps = ${common.lib_deps} lib_ignore = ${common.lib_ignore} build_flags = ${common.build_flags_1m} -DYJZK_SWITCH_2CH monitor_baud = 115200 +extra_scripts = ${common.extra_scripts} [env:yjzk-switch-2ch-ota] platform = ${common.platform} @@ -1203,6 +1303,7 @@ upload_speed = 115200 upload_port = "192.168.4.1" upload_flags = --auth=fibonacci --port 8266 monitor_baud = 115200 +extra_scripts = ${common.extra_scripts} [env:generic-8ch] platform = ${common.platform} @@ -1213,6 +1314,7 @@ lib_ignore = ${common.lib_ignore} build_flags = ${common.build_flags} -DGENERIC_8CH upload_speed = 460800 monitor_baud = 115200 +extra_scripts = ${common.extra_scripts} # ------------------------------------------------------------------------------ # GENERIC OTA ENVIRONMENTS @@ -1229,6 +1331,7 @@ build_flags = ${common.build_flags_1m} -D${env.ESPURNA_BOARD} upload_speed = 115200 upload_port = "${env.ESPURNA_IP}" upload_flags = --auth=${env.ESPURNA_AUTH} --port 8266 +extra_scripts = ${common.extra_scripts} [env:esp8266-4m-ota] platform = ${common.platform} @@ -1241,3 +1344,4 @@ build_flags = ${common.build_flags} -D${env.ESPURNA_BOARD} upload_speed = 115200 upload_port = "${env.ESPURNA_IP}" upload_flags = --auth=${env.ESPURNA_AUTH} --port 8266 +extra_scripts = ${common.extra_scripts}