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.

256 lines
7.1 KiB

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