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.

219 lines
6.1 KiB

  1. [platformio]
  2. env_default = node-debug
  3. [common]
  4. lib_deps =
  5. DHT sensor library
  6. Adafruit Unified Sensor
  7. Time
  8. ArduinoJson
  9. ESPAsyncTCP
  10. ESPAsyncWebServer
  11. https://github.com/marvinroger/async-mqtt-client
  12. ESPAsyncUDP
  13. Embedis
  14. NtpClientLib
  15. OneWire
  16. DallasTemperature
  17. https://bitbucket.org/xoseperez/justwifi.git
  18. https://bitbucket.org/xoseperez/nofuss.git
  19. https://bitbucket.org/xoseperez/hlw8012.git
  20. https://bitbucket.org/xoseperez/emonliteesp.git
  21. https://bitbucket.org/xoseperez/fauxmoESP.git
  22. https://github.com/jccprj/RemoteSwitch-arduino-library
  23. lib_ignore = FauxmoESP, ESPAsyncUDP
  24. # ------------------------------------------------------------------------------
  25. [env:node-debug]
  26. platform = espressif8266
  27. framework = arduino
  28. board = nodemcuv2
  29. lib_deps = ${common.lib_deps}
  30. lib_ignore = ${common.lib_ignore}
  31. extra_script = pio_hooks.py
  32. build_flags = -g -DNODEMCUV2 -DDEBUG_PORT=Serial -DNOWSAUTH
  33. [env:node-debug-ota]
  34. platform = espressif8266
  35. framework = arduino
  36. board = nodemcuv2
  37. lib_deps = ${common.lib_deps}
  38. lib_ignore = ${common.lib_ignore}
  39. extra_script = pio_hooks.py
  40. build_flags = -g -DNODEMCUV2 -DDEBUG_PORT=Serial -DNOWSAUTH
  41. upload_speed = 115200
  42. upload_port = "192.168.4.1"
  43. upload_flags = --auth=fibonacci --port 8266
  44. [env:sonoff-debug]
  45. platform = espressif8266
  46. framework = arduino
  47. board = esp01_1m
  48. lib_deps = ${common.lib_deps}
  49. lib_ignore = ${common.lib_ignore}
  50. extra_script = pio_hooks.py
  51. build_flags = -g -Wl,-Tesp8266.flash.1m128.ld -DDEBUG_PORT=Serial -DSONOFF
  52. [env:sonoff-debug-ota]
  53. platform = espressif8266
  54. framework = arduino
  55. board = esp01_1m
  56. lib_deps = ${common.lib_deps}
  57. lib_ignore = ${common.lib_ignore}
  58. extra_script = pio_hooks.py
  59. build_flags = -g -Wl,-Tesp8266.flash.1m128.ld -DDEBUG_PORT=Serial -DSONOFF
  60. upload_speed = 115200
  61. upload_port = "192.168.4.1"
  62. upload_flags = --auth=fibonacci --port 8266
  63. [env:sonoff-dht22-debug]
  64. platform = espressif8266
  65. framework = arduino
  66. board = esp01_1m
  67. lib_deps = ${common.lib_deps}
  68. lib_ignore = ${common.lib_ignore}
  69. extra_script = pio_hooks.py
  70. build_flags = -g -Wl,-Tesp8266.flash.1m128.ld -DDEBUG_PORT=Serial -DSONOFF -DENABLE_DHT=1
  71. [env:sonoff-ds18b20-debug]
  72. platform = espressif8266
  73. framework = arduino
  74. board = esp01_1m
  75. lib_deps = ${common.lib_deps}
  76. lib_ignore = ${common.lib_ignore}
  77. extra_script = pio_hooks.py
  78. build_flags = -g -Wl,-Tesp8266.flash.1m128.ld -DDEBUG_PORT=Serial -DSONOFF -DENABLE_DS18B20=1
  79. [env:sonoff-pow-debug]
  80. platform = espressif8266
  81. framework = arduino
  82. board = esp01_1m
  83. lib_deps = ${common.lib_deps}
  84. lib_ignore = ${common.lib_ignore}
  85. extra_script = pio_hooks.py
  86. build_flags = -g -Wl,-Tesp8266.flash.1m128.ld -DDEBUG_PORT=Serial -DSONOFF_POW
  87. [env:sonoff-pow-debug-ota]
  88. platform = espressif8266
  89. framework = arduino
  90. board = esp01_1m
  91. lib_deps = ${common.lib_deps}
  92. lib_ignore = ${common.lib_ignore}
  93. extra_script = pio_hooks.py
  94. build_flags = -g -Wl,-Tesp8266.flash.1m128.ld -DDEBUG_PORT=Serial -DSONOFF_POW
  95. upload_speed = 115200
  96. upload_port = "192.168.4.1"
  97. upload_flags = --auth=fibonacci --port 8266
  98. [env:sonoff-dual-debug]
  99. platform = espressif8266
  100. framework = arduino
  101. board = esp01_1m
  102. lib_deps = ${common.lib_deps}
  103. lib_ignore = ${common.lib_ignore}
  104. extra_script = pio_hooks.py
  105. build_flags = -g -Wl,-Tesp8266.flash.1m128.ld -DSONOFF_DUAL
  106. [env:sonoff-dual-debug-ota]
  107. platform = espressif8266
  108. framework = arduino
  109. board = esp01_1m
  110. lib_deps = ${common.lib_deps}
  111. lib_ignore = ${common.lib_ignore}
  112. extra_script = pio_hooks.py
  113. build_flags = -g -Wl,-Tesp8266.flash.1m128.ld -DSONOFF_DUAL
  114. upload_speed = 115200
  115. upload_port = "192.168.4.1"
  116. upload_flags = --auth=fibonacci --port 8266
  117. [env:slampher-debug]
  118. platform = espressif8266
  119. framework = arduino
  120. board = esp01_1m
  121. lib_deps = ${common.lib_deps}
  122. lib_ignore = ${common.lib_ignore}
  123. extra_script = pio_hooks.py
  124. build_flags = -g -Wl,-Tesp8266.flash.1m128.ld -DDEBUG_PORT=Serial -DSLAMPHER
  125. [env:slampher-debug-ota]
  126. platform = espressif8266
  127. framework = arduino
  128. board = esp01_1m
  129. lib_deps = ${common.lib_deps}
  130. lib_ignore = ${common.lib_ignore}
  131. extra_script = pio_hooks.py
  132. build_flags = -g -Wl,-Tesp8266.flash.1m128.ld -DDEBUG_PORT=Serial -DSLAMPHER
  133. upload_speed = 115200
  134. upload_port = "192.168.4.1"
  135. upload_flags = --auth=fibonacci --port 8266
  136. [env:s20-debug]
  137. platform = espressif8266
  138. framework = arduino
  139. board = esp01_1m
  140. lib_deps = ${common.lib_deps}
  141. lib_ignore = ${common.lib_ignore}
  142. extra_script = pio_hooks.py
  143. build_flags = -g -Wl,-Tesp8266.flash.1m128.ld -DDEBUG_PORT=Serial -DS20
  144. [env:s20-debug-ota]
  145. platform = espressif8266
  146. framework = arduino
  147. board = esp01_1m
  148. lib_deps = ${common.lib_deps}
  149. lib_ignore = ${common.lib_ignore}
  150. extra_script = pio_hooks.py
  151. build_flags = -g -Wl,-Tesp8266.flash.1m128.ld -DDEBUG_PORT=Serial -DS20
  152. upload_speed = 115200
  153. upload_port = "192.168.4.1"
  154. upload_flags = --auth=fibonacci --port 8266
  155. [env:electrodragon-debug]
  156. platform = espressif8266
  157. framework = arduino
  158. board = esp12e
  159. lib_deps = ${common.lib_deps}
  160. lib_ignore = ${common.lib_ignore}
  161. extra_script = pio_hooks.py
  162. build_flags = -g -DDEBUG_PORT=Serial -DDEBUG_PORT=Serial -DESP_RELAY_BOARD -DENABLE_DHT=1
  163. [env:electrodragon-debug-ota]
  164. platform = espressif8266
  165. framework = arduino
  166. board = esp12e
  167. lib_deps = ${common.lib_deps}
  168. lib_ignore = ${common.lib_ignore}
  169. extra_script = pio_hooks.py
  170. build_flags = -g -DDEBUG_PORT=Serial -DDEBUG_PORT=Serial -DESP_RELAY_BOARD -DENABLE_DHT=1
  171. upload_speed = 115200
  172. upload_port = "192.168.4.1"
  173. upload_flags = --auth=fibonacci --port 8266
  174. # ------------------------------------------------------------------------------
  175. [env:studio-lamp-device]
  176. topic = /home/studio/lamp/ip
  177. platform = espressif8266_stage
  178. framework = arduino
  179. board = esp01_1m
  180. lib_deps = ${common.lib_deps}
  181. lib_ignore =
  182. extra_script = pio_hooks.py
  183. build_flags = -g -Wl,-Tesp8266.flash.1m128.ld -DDEBUG_PORT=Serial -DSONOFF -DENABLE_FAUXMO=1
  184. upload_speed = 115200
  185. upload_port = "192.168.4.1"
  186. upload_flags = --auth=fibonacci --port 8266
  187. [env:living-lamp-device]
  188. topic = /home/living/lamp/ip
  189. platform = espressif8266_stage
  190. framework = arduino
  191. board = esp01_1m
  192. lib_deps = ${common.lib_deps}
  193. lib_ignore =
  194. extra_script = pio_hooks.py
  195. build_flags = -g -Wl,-Tesp8266.flash.1m128.ld -DDEBUG_PORT=Serial -DSONOFF -DENABLE_FAUXMO=1
  196. upload_speed = 115200
  197. upload_port = "192.168.4.1"
  198. upload_flags = --auth=fibonacci --port 8266