Fork of the espurna firmware for `mhsw` switches
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

149 lines
3.8 KiB

  1. #
  2. # PLEASE NOTE:
  3. # This platformio.ini file is not standard and uses a custom feature.
  4. # The "include" option is not supported by the official version.
  5. # Check my PR for this feature here:
  6. # https://github.com/platformio/platformio/pull/790
  7. #
  8. [platformio]
  9. env_default = node-debug
  10. [common]
  11. platform = espressif8266_stage
  12. framework = arduino
  13. extra_script = pio_hooks.py
  14. #lib_ignore = FauxmoESP, ESPAsyncUDP
  15. lib_deps =
  16. DHT sensor library
  17. Adafruit Unified Sensor
  18. Time
  19. ArduinoJson
  20. ESPAsyncTCP
  21. ESPAsyncWebServer
  22. AsyncMqttClient
  23. ESPAsyncUDP
  24. Embedis
  25. NtpClientLib
  26. https://bitbucket.org/xoseperez/justwifi.git
  27. https://bitbucket.org/xoseperez/nofuss.git
  28. https://bitbucket.org/xoseperez/hlw8012.git
  29. https://bitbucket.org/xoseperez/emonliteesp.git
  30. https://bitbucket.org/xoseperez/fauxmoESP.git
  31. https://github.com/jccprj/RemoteSwitch-arduino-library
  32. [ota]
  33. upload_speed = 115200
  34. upload_port = "192.168.4.1"
  35. upload_flags = --auth=fibonacci --port 8266
  36. [def]
  37. build_flags_debug = -g -Wl,-Tesp8266.flash.1m128.ld -DDEBUG_PORT=Serial -DENABLE_FAUXMO=1
  38. build_flags_ota = -Wl,-Tesp8266.flash.1m128.ld -DENABLE_FAUXMO=1
  39. # ------------------------------------------------------------------------------
  40. [env:node-debug]
  41. include = common
  42. board = nodemcuv2
  43. platform = espressif8266
  44. build_flags = -g -DNODEMCUV2 -DDEBUG_PORT=Serial
  45. lib_ignore =
  46. [env:node-debug-ota]
  47. include = env:node-debug,ota
  48. [env:sonoff-debug]
  49. include = common
  50. board = esp01_1m
  51. build_flags = ${def.build_flags_debug} -DSONOFF
  52. [env:sonoff-ota]
  53. include = env:sonoff-debug,ota
  54. build_flags = ${def.build_flags_ota} -DSONOFF
  55. [env:sonoff-dht22-debug]
  56. include = env:sonoff-debug
  57. build_flags = ${def.build_flags_debug} -DSONOFF -DENABLE_DHT=1
  58. [env:sonoff-ds18b20-debug]
  59. include = env:sonoff-debug
  60. build_flags = ${def.build_flags_debug} -DSONOFF -DENABLE_DS18B20=1
  61. [env:sonoff-pow-debug]
  62. include = common
  63. board = esp01_1m
  64. build_flags = ${def.build_flags_debug} -DSONOFF_POW
  65. [env:sonoff-pow-ota]
  66. include = env:sonoff-pow-debug,ota
  67. build_flags = ${def.build_flags_ota} -DSONOFF_POW
  68. [env:sonoff-dual-debug]
  69. include = common
  70. board = esp12e
  71. build_flags = ${def.build_flags_debug} -DSONOFF_DUAL
  72. [env:sonoff-dual-ota]
  73. include = env:sonoff-dual-debug,ota
  74. build_flags = ${def.build_flags_ota} -DSONOFF_DUAL
  75. [env:sonoff-dual-debug]
  76. include = common
  77. board = esp12e
  78. build_flags = -g -Wl,-Tesp8266.flash.1m256.ld -DDEBUG_PORT=Serial -DSONOFF_DUAL
  79. [env:sonoff-dual-debug-ota]
  80. include = env:sonoff-dual-debug,ota
  81. [env:slampher-debug]
  82. include = common
  83. board = esp01_1m
  84. build_flags = ${def.build_flags_debug} -DSLAMPHER
  85. [env:slampher-ota]
  86. include = env:slampher-debug,ota
  87. build_flags = ${def.build_flags_ota} -DSLAMPHER
  88. [env:s20-debug]
  89. include = common
  90. board = esp01_1m
  91. build_flags = ${def.build_flags_debug} -DS20
  92. [env:s20-ota]
  93. include = env:s20-debug,ota
  94. build_flags = ${def.build_flags_ota} -DS20
  95. [env:electrodragon-debug]
  96. include = common
  97. board = esp12e
  98. build_flags = -g -Wl,-Tesp8266.flash.1m256.ld -DDEBUG_PORT=Serial -DESP_RELAY_BOARD
  99. [env:electrodragon-debug-ota]
  100. include = env:electrodragon-debug,ota
  101. # ------------------------------------------------------------------------------
  102. [env:ac-device]
  103. topic = /home/cellar/airconditioner/ip
  104. include = env:s20-debug-ota
  105. [env:washer-device]
  106. topic = /home/cellar/washer/ip
  107. include = env:sonoff-debug-ota
  108. build_flags = -g -Wl,-Tesp8266.flash.1m128.ld -DDEBUG_PORT=Serial -DSONOFF -DENABLE_EMON=1 -DENABLE_DHT=1
  109. [env:studio-lamp-device]
  110. topic = /home/studio/lamp/ip
  111. include = env:sonoff-debug-ota
  112. platform = espressif8266_stage
  113. build_flags = -g -Wl,-Tesp8266.flash.1m128.ld -DDEBUG_PORT=Serial -DSONOFF -DENABLE_FAUXMO=1
  114. lib_ignore =
  115. [env:living-lamp-device]
  116. topic = /home/living/lamp/ip
  117. include = env:s20-debug-ota
  118. platform = espressif8266_stage
  119. build_flags = -g -Wl,-Tesp8266.flash.1m128.ld -DDEBUG_PORT=Serial -DS20 -DENABLE_FAUXMO=1
  120. lib_ignore =