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.

308 lines
8.6 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. https://github.com/xoseperez/Time
  10. ArduinoJson
  11. ESPAsyncTCP
  12. ESPAsyncWebServer
  13. https://github.com/marvinroger/async-mqtt-client
  14. Embedis
  15. NtpClientLib
  16. OneWire
  17. DallasTemperature
  18. Brzo I2C
  19. https://bitbucket.org/xoseperez/justwifi.git
  20. https://bitbucket.org/xoseperez/hlw8012.git
  21. https://bitbucket.org/xoseperez/fauxmoesp.git
  22. https://bitbucket.org/xoseperez/nofuss.git
  23. https://bitbucket.org/xoseperez/emonliteesp.git
  24. https://bitbucket.org/xoseperez/debounceevent.git
  25. https://github.com/xoseperez/RemoteSwitch-arduino-library.git
  26. lib_ignore =
  27. # ------------------------------------------------------------------------------
  28. [env:d1-debug]
  29. platform = espressif8266
  30. framework = arduino
  31. board = d1_mini
  32. lib_deps = ${common.lib_deps}
  33. lib_ignore = ${common.lib_ignore}
  34. extra_script = pio_hooks.py
  35. build_flags = -g -DD1_RELAYSHIELD -DDEBUG_PORT=Serial -DDEBUG_FAUXMO=Serial -DNOWSAUTH
  36. [env:d1-debug-ota]
  37. platform = espressif8266
  38. framework = arduino
  39. board = d1_mini
  40. lib_deps = ${common.lib_deps}
  41. lib_ignore = ${common.lib_ignore}
  42. extra_script = pio_hooks.py
  43. build_flags = -g -DD1_RELAYSHIELD -DDEBUG_PORT=Serial -DDEBUG_FAUXMO=Serial -DNOWSAUTH
  44. upload_speed = 115200
  45. upload_port = "192.168.4.1"
  46. upload_flags = --auth=fibonacci --port 8266
  47. [env:node-debug]
  48. platform = espressif8266
  49. framework = arduino
  50. board = nodemcuv2
  51. lib_deps = ${common.lib_deps}
  52. lib_ignore = ${common.lib_ignore}
  53. extra_script = pio_hooks.py
  54. build_flags = -g -DNODEMCUV2 -DDEBUG_PORT=Serial -DDEBUG_FAUXMO=Serial -DNOWSAUTH
  55. [env:node-debug-ota]
  56. platform = espressif8266
  57. framework = arduino
  58. board = nodemcuv2
  59. lib_deps = ${common.lib_deps}
  60. lib_ignore = ${common.lib_ignore}
  61. extra_script = pio_hooks.py
  62. build_flags = -g -DNODEMCUV2 -DDEBUG_PORT=Serial -DDEBUG_FAUXMO=Serial -DNOWSAUTH
  63. upload_speed = 115200
  64. upload_port = "192.168.4.1"
  65. upload_flags = --auth=fibonacci --port 8266
  66. [env:sonoff-debug]
  67. platform = espressif8266
  68. framework = arduino
  69. board = esp01_1m
  70. lib_deps = ${common.lib_deps}
  71. lib_ignore = ${common.lib_ignore}
  72. extra_script = pio_hooks.py
  73. build_flags = -g -Wl,-Tesp8266.flash.1m128.ld -DDEBUG_PORT=Serial -DSONOFF
  74. [env:sonoff-debug-ota]
  75. platform = espressif8266
  76. framework = arduino
  77. board = esp01_1m
  78. lib_deps = ${common.lib_deps}
  79. lib_ignore = ${common.lib_ignore}
  80. extra_script = pio_hooks.py
  81. build_flags = -g -Wl,-Tesp8266.flash.1m128.ld -DDEBUG_PORT=Serial -DSONOFF
  82. upload_speed = 115200
  83. upload_port = "192.168.4.1"
  84. upload_flags = --auth=Algernon1 --port 8266
  85. [env:sonoff-dht22-debug]
  86. platform = espressif8266
  87. framework = arduino
  88. board = esp01_1m
  89. lib_deps = ${common.lib_deps}
  90. lib_ignore = ${common.lib_ignore}
  91. extra_script = pio_hooks.py
  92. build_flags = -g -Wl,-Tesp8266.flash.1m128.ld -DDEBUG_PORT=Serial -DSONOFF -DENABLE_DHT=1
  93. [env:sonoff-ds18b20-debug]
  94. platform = espressif8266
  95. framework = arduino
  96. board = esp01_1m
  97. lib_deps = ${common.lib_deps}
  98. lib_ignore = ${common.lib_ignore}
  99. extra_script = pio_hooks.py
  100. build_flags = -g -Wl,-Tesp8266.flash.1m128.ld -DDEBUG_PORT=Serial -DSONOFF -DENABLE_DS18B20=1
  101. [env:sonoff-pow-debug]
  102. platform = espressif8266
  103. framework = arduino
  104. board = esp01_1m
  105. lib_deps = ${common.lib_deps}
  106. lib_ignore = ${common.lib_ignore}
  107. extra_script = pio_hooks.py
  108. build_flags = -g -Wl,-Tesp8266.flash.1m128.ld -DDEBUG_PORT=Serial -DSONOFF_POW
  109. [env:sonoff-pow-debug-ota]
  110. platform = espressif8266
  111. framework = arduino
  112. board = esp01_1m
  113. lib_deps = ${common.lib_deps}
  114. lib_ignore = ${common.lib_ignore}
  115. extra_script = pio_hooks.py
  116. build_flags = -g -Wl,-Tesp8266.flash.1m128.ld -DDEBUG_PORT=Serial -DSONOFF_POW
  117. upload_speed = 115200
  118. upload_port = "192.168.4.1"
  119. upload_flags = --auth=Algernon1 --port 8266
  120. [env:sonoff-dual-debug]
  121. platform = espressif8266
  122. framework = arduino
  123. board = esp01_1m
  124. lib_deps = ${common.lib_deps}
  125. lib_ignore = ${common.lib_ignore}
  126. extra_script = pio_hooks.py
  127. build_flags = -g -Wl,-Tesp8266.flash.1m128.ld -DSONOFF_DUAL
  128. [env:sonoff-dual-debug-ota]
  129. platform = espressif8266
  130. framework = arduino
  131. board = esp01_1m
  132. lib_deps = ${common.lib_deps}
  133. lib_ignore = ${common.lib_ignore}
  134. extra_script = pio_hooks.py
  135. build_flags = -g -Wl,-Tesp8266.flash.1m128.ld -DSONOFF_DUAL
  136. upload_speed = 115200
  137. upload_port = "192.168.4.1"
  138. upload_flags = --auth=fibonacci --port 8266
  139. [env:sonoff-4ch-debug]
  140. platform = espressif8266
  141. framework = arduino
  142. board = esp01_1m
  143. lib_deps = ${common.lib_deps}
  144. lib_ignore = ${common.lib_ignore}
  145. extra_script = pio_hooks.py
  146. build_flags = -g -Wl,-Tesp8266.flash.1m128.ld -DDEBUG_PORT=Serial -DSONOFF_4CH
  147. [env:sonoff-4ch-debug-ota]
  148. platform = espressif8266
  149. framework = arduino
  150. board = esp01_1m
  151. lib_deps = ${common.lib_deps}
  152. lib_ignore = ${common.lib_ignore}
  153. extra_script = pio_hooks.py
  154. build_flags = -g -Wl,-Tesp8266.flash.1m128.ld -DDEBUG_PORT=Serial -DSONOFF_4CH
  155. upload_speed = 115200
  156. upload_port = "192.168.4.1"
  157. upload_flags = --auth=fibonacci --port 8266
  158. [env:slampher-debug]
  159. platform = espressif8266
  160. framework = arduino
  161. board = esp01_1m
  162. lib_deps = ${common.lib_deps}
  163. lib_ignore = ${common.lib_ignore}
  164. extra_script = pio_hooks.py
  165. build_flags = -g -Wl,-Tesp8266.flash.1m128.ld -DDEBUG_PORT=Serial -DSLAMPHER
  166. [env:slampher-debug-ota]
  167. platform = espressif8266
  168. framework = arduino
  169. board = esp01_1m
  170. lib_deps = ${common.lib_deps}
  171. lib_ignore = ${common.lib_ignore}
  172. extra_script = pio_hooks.py
  173. build_flags = -g -Wl,-Tesp8266.flash.1m128.ld -DDEBUG_PORT=Serial -DSLAMPHER
  174. upload_speed = 115200
  175. upload_port = "192.168.4.1"
  176. upload_flags = --auth=fibonacci --port 8266
  177. [env:s20-debug]
  178. platform = espressif8266
  179. framework = arduino
  180. board = esp01_1m
  181. lib_deps = ${common.lib_deps}
  182. lib_ignore = ${common.lib_ignore}
  183. extra_script = pio_hooks.py
  184. build_flags = -g -Wl,-Tesp8266.flash.1m128.ld -DDEBUG_PORT=Serial -DS20
  185. [env:s20-debug-ota]
  186. platform = espressif8266
  187. framework = arduino
  188. board = esp01_1m
  189. lib_deps = ${common.lib_deps}
  190. lib_ignore = ${common.lib_ignore}
  191. extra_script = pio_hooks.py
  192. build_flags = -g -Wl,-Tesp8266.flash.1m128.ld -DDEBUG_PORT=Serial -DS20
  193. upload_speed = 115200
  194. upload_port = "192.168.4.1"
  195. upload_flags = --auth=fibonacci --port 8266
  196. [env:1ch-inching-debug]
  197. platform = espressif8266
  198. framework = arduino
  199. board = esp01_1m
  200. lib_deps = ${common.lib_deps}
  201. lib_ignore = ${common.lib_ignore}
  202. extra_script = pio_hooks.py
  203. build_flags = -g -Wl,-Tesp8266.flash.1m128.ld -DDEBUG_PORT=Serial -DITEAD_1CH_INCHING
  204. [env:electrodragon-debug]
  205. platform = espressif8266
  206. framework = arduino
  207. board = esp12e
  208. lib_deps = ${common.lib_deps}
  209. lib_ignore = ${common.lib_ignore}
  210. extra_script = pio_hooks.py
  211. build_flags = -g -DDEBUG_PORT=Serial -DDEBUG_PORT=Serial -DESP_RELAY_BOARD -DENABLE_DHT=1
  212. [env:electrodragon-debug-ota]
  213. platform = espressif8266
  214. framework = arduino
  215. board = esp12e
  216. lib_deps = ${common.lib_deps}
  217. lib_ignore = ${common.lib_ignore}
  218. extra_script = pio_hooks.py
  219. build_flags = -g -DDEBUG_PORT=Serial -DDEBUG_PORT=Serial -DESP_RELAY_BOARD -DENABLE_DHT=1
  220. upload_speed = 115200
  221. upload_port = "192.168.4.1"
  222. upload_flags = --auth=fibonacci --port 8266
  223. [env:ecoplug-debug]
  224. platform = espressif8266
  225. framework = arduino
  226. board = esp01_1m
  227. lib_deps = ${common.lib_deps}
  228. lib_ignore = ${common.lib_ignore}
  229. extra_script = pio_hooks.py
  230. build_flags = -g -Wl,-Tesp8266.flash.1m128.ld -DDEBUG_PORT=Serial -DECOPLUG
  231. [env:ecoplug-debug-ota]
  232. platform = espressif8266
  233. framework = arduino
  234. board = esp01_1m
  235. lib_deps = ${common.lib_deps}
  236. lib_ignore = ${common.lib_ignore}
  237. extra_script = pio_hooks.py
  238. build_flags = -g -Wl,-Tesp8266.flash.1m128.ld -DDEBUG_PORT=Serial -DECOPLUG
  239. upload_speed = 115200
  240. upload_port = "192.168.4.1"
  241. upload_flags = --auth=fibonacci --port 8266
  242. [env:jangoe-debug]
  243. platform = espressif8266
  244. framework = arduino
  245. board = esp01_1m
  246. lib_deps = ${common.lib_deps}
  247. lib_ignore = ${common.lib_ignore}
  248. extra_script = pio_hooks.py
  249. build_flags = -g -DDEBUG_PORT=Serial -DWIFI_RELAY_NC
  250. [env:jangoe-debug-ota]
  251. platform = espressif8266
  252. framework = arduino
  253. board = esp01_1m
  254. lib_deps = ${common.lib_deps}
  255. lib_ignore = ${common.lib_ignore}
  256. extra_script = pio_hooks.py
  257. build_flags = -g -DDEBUG_PORT=Serial -DWIFI_RELAY_NC
  258. upload_speed = 115200
  259. upload_port = "192.168.4.1"
  260. upload_flags = --auth=fibonacci --port 8266
  261. [env:mqtt-relay-debug]
  262. platform = espressif8266
  263. framework = arduino
  264. board = esp_wroom_02
  265. lib_deps = ${common.lib_deps}
  266. lib_ignore = ${common.lib_ignore}
  267. extra_script = pio_hooks.py
  268. build_flags = -g -DDEBUG_PORT=Serial -DMQTT_RELAY -DENABLE_DS18B20=1
  269. [env:mqtt-relay-debug-ota]
  270. platform = espressif8266
  271. framework = arduino
  272. board = esp_wroom_02
  273. lib_deps = ${common.lib_deps}
  274. lib_ignore = ${common.lib_ignore}
  275. extra_script = pio_hooks.py
  276. build_flags = -g -DDEBUG_PORT=Serial -DMQTT_RELAY -DENABLE_DS18B20=1
  277. upload_speed = 115200
  278. upload_port = "192.168.4.1"
  279. upload_flags = --auth=fibonacci --port 8266