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.

395 lines
11 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. https://github.com/me-no-dev/ESPAsyncTCP#36b6b5a
  12. https://github.com/me-no-dev/ESPAsyncWebServer#bab5457
  13. https://github.com/marvinroger/async-mqtt-client#f1b4576
  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=fibonacci --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-ds18b20-debug-ota]
  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 -DENABLE_DS18B20=1
  109. upload_speed = 115200
  110. upload_port = "192.168.4.1"
  111. upload_flags = --auth=fibonacci --port 8266
  112. [env:sonoff-pow-debug]
  113. platform = espressif8266
  114. framework = arduino
  115. board = esp01_1m
  116. lib_deps = ${common.lib_deps}
  117. lib_ignore = ${common.lib_ignore}
  118. extra_script = pio_hooks.py
  119. build_flags = -g -Wl,-Tesp8266.flash.1m128.ld -DDEBUG_PORT=Serial -DSONOFF_POW
  120. [env:sonoff-pow-debug-ota]
  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 -DDEBUG_PORT=Serial -DSONOFF_POW
  128. upload_speed = 115200
  129. upload_port = "192.168.4.1"
  130. upload_flags = --auth=fibonacci --port 8266
  131. [env:sonoff-dual-debug]
  132. platform = espressif8266
  133. framework = arduino
  134. board = esp01_1m
  135. lib_deps = ${common.lib_deps}
  136. lib_ignore = ${common.lib_ignore}
  137. extra_script = pio_hooks.py
  138. build_flags = -g -Wl,-Tesp8266.flash.1m128.ld -DSONOFF_DUAL
  139. [env:sonoff-dual-debug-ota]
  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 -DSONOFF_DUAL
  147. upload_speed = 115200
  148. upload_port = "192.168.4.1"
  149. upload_flags = --auth=fibonacci --port 8266
  150. [env:sonoff-4ch-debug]
  151. platform = espressif8266
  152. framework = arduino
  153. board = esp8285
  154. lib_deps = ${common.lib_deps}
  155. lib_ignore = ${common.lib_ignore}
  156. extra_script = pio_hooks.py
  157. build_flags = -g -Wl,-Tesp8266.flash.1m128.ld -DDEBUG_PORT=Serial -DSONOFF_4CH
  158. [env:sonoff-4ch-debug-ota]
  159. platform = espressif8266
  160. framework = arduino
  161. board = esp8285
  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 -DSONOFF_4CH
  166. upload_speed = 115200
  167. upload_port = "192.168.4.1"
  168. upload_flags = --auth=fibonacci --port 8266
  169. [env:sonoff-touch-debug]
  170. platform = espressif8266
  171. framework = arduino
  172. board = esp8285
  173. lib_deps = ${common.lib_deps}
  174. lib_ignore = ${common.lib_ignore}
  175. extra_script = pio_hooks.py
  176. build_flags = -g -Wl,-Tesp8266.flash.1m128.ld -DDEBUG_PORT=Serial -DSONOFF_TOUCH
  177. [env:sonoff-touch-debug-ota]
  178. platform = espressif8266
  179. framework = arduino
  180. board = esp8285
  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 -DSONOFF_TOUCH
  185. upload_speed = 115200
  186. upload_port = "192.168.4.1"
  187. upload_flags = --auth=fibonacci --port 8266
  188. [env:slampher-debug]
  189. platform = espressif8266
  190. framework = arduino
  191. board = esp01_1m
  192. lib_deps = ${common.lib_deps}
  193. lib_ignore = ${common.lib_ignore}
  194. extra_script = pio_hooks.py
  195. build_flags = -g -Wl,-Tesp8266.flash.1m128.ld -DDEBUG_PORT=Serial -DSLAMPHER
  196. [env:slampher-debug-ota]
  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 -DSLAMPHER
  204. upload_speed = 115200
  205. upload_port = "192.168.4.1"
  206. upload_flags = --auth=fibonacci --port 8266
  207. [env:s20-debug]
  208. platform = espressif8266
  209. framework = arduino
  210. board = esp01_1m
  211. lib_deps = ${common.lib_deps}
  212. lib_ignore = ${common.lib_ignore}
  213. extra_script = pio_hooks.py
  214. build_flags = -g -Wl,-Tesp8266.flash.1m128.ld -DDEBUG_PORT=Serial -DS20
  215. [env:s20-debug-ota]
  216. platform = espressif8266
  217. framework = arduino
  218. board = esp01_1m
  219. lib_deps = ${common.lib_deps}
  220. lib_ignore = ${common.lib_ignore}
  221. extra_script = pio_hooks.py
  222. build_flags = -g -Wl,-Tesp8266.flash.1m128.ld -DDEBUG_PORT=Serial -DS20
  223. upload_speed = 115200
  224. upload_port = "192.168.4.1"
  225. upload_flags = --auth=fibonacci --port 8266
  226. [env:1ch-inching-debug]
  227. platform = espressif8266
  228. framework = arduino
  229. board = esp01_1m
  230. lib_deps = ${common.lib_deps}
  231. lib_ignore = ${common.lib_ignore}
  232. extra_script = pio_hooks.py
  233. build_flags = -g -Wl,-Tesp8266.flash.1m128.ld -DDEBUG_PORT=Serial -DITEAD_1CH_INCHING
  234. [env:1ch-inching-debug-ota]
  235. platform = espressif8266
  236. framework = arduino
  237. board = esp01_1m
  238. lib_deps = ${common.lib_deps}
  239. lib_ignore = ${common.lib_ignore}
  240. extra_script = pio_hooks.py
  241. build_flags = -g -Wl,-Tesp8266.flash.1m128.ld -DDEBUG_PORT=Serial -DITEAD_1CH_INCHING
  242. upload_speed = 115200
  243. upload_port = "192.168.4.1"
  244. upload_flags = --auth=fibonacci --port 8266
  245. [env:motor-debug]
  246. platform = espressif8266
  247. framework = arduino
  248. board = esp01_1m
  249. lib_deps = ${common.lib_deps}
  250. lib_ignore = ${common.lib_ignore}
  251. extra_script = pio_hooks.py
  252. build_flags = -g -Wl,-Tesp8266.flash.1m128.ld -DDEBUG_PORT=Serial -DITEAD_MOTOR
  253. [env:motor-debug-ota]
  254. platform = espressif8266
  255. framework = arduino
  256. board = esp01_1m
  257. lib_deps = ${common.lib_deps}
  258. lib_ignore = ${common.lib_ignore}
  259. extra_script = pio_hooks.py
  260. build_flags = -g -Wl,-Tesp8266.flash.1m128.ld -DDEBUG_PORT=Serial -DITEAD_MOTOR
  261. upload_speed = 115200
  262. upload_port = "192.168.4.1"
  263. upload_flags = --auth=fibonacci --port 8266
  264. [env:electrodragon-debug]
  265. platform = espressif8266
  266. framework = arduino
  267. board = esp12e
  268. lib_deps = ${common.lib_deps}
  269. lib_ignore = ${common.lib_ignore}
  270. extra_script = pio_hooks.py
  271. build_flags = -g -DDEBUG_PORT=Serial -DDEBUG_PORT=Serial -DESP_RELAY_BOARD -DENABLE_DHT=1
  272. [env:electrodragon-debug-ota]
  273. platform = espressif8266
  274. framework = arduino
  275. board = esp12e
  276. lib_deps = ${common.lib_deps}
  277. lib_ignore = ${common.lib_ignore}
  278. extra_script = pio_hooks.py
  279. build_flags = -g -DDEBUG_PORT=Serial -DDEBUG_PORT=Serial -DESP_RELAY_BOARD -DENABLE_DHT=1
  280. upload_speed = 115200
  281. upload_port = "192.168.4.1"
  282. upload_flags = --auth=fibonacci --port 8266
  283. [env:ecoplug-debug]
  284. platform = espressif8266
  285. framework = arduino
  286. board = esp01_1m
  287. lib_deps = ${common.lib_deps}
  288. lib_ignore = ${common.lib_ignore}
  289. extra_script = pio_hooks.py
  290. build_flags = -g -Wl,-Tesp8266.flash.1m128.ld -DDEBUG_PORT=Serial -DECOPLUG
  291. [env:ecoplug-debug-ota]
  292. platform = espressif8266
  293. framework = arduino
  294. board = esp01_1m
  295. lib_deps = ${common.lib_deps}
  296. lib_ignore = ${common.lib_ignore}
  297. extra_script = pio_hooks.py
  298. build_flags = -g -Wl,-Tesp8266.flash.1m128.ld -DDEBUG_PORT=Serial -DECOPLUG
  299. upload_speed = 115200
  300. upload_port = "192.168.4.1"
  301. upload_flags = --auth=fibonacci --port 8266
  302. [env:jangoe-debug]
  303. platform = espressif8266
  304. framework = arduino
  305. board = esp01_1m
  306. lib_deps = ${common.lib_deps}
  307. lib_ignore = ${common.lib_ignore}
  308. extra_script = pio_hooks.py
  309. build_flags = -g -DDEBUG_PORT=Serial -DWIFI_RELAY_NC
  310. [env:jangoe-debug-ota]
  311. platform = espressif8266
  312. framework = arduino
  313. board = esp01_1m
  314. lib_deps = ${common.lib_deps}
  315. lib_ignore = ${common.lib_ignore}
  316. extra_script = pio_hooks.py
  317. build_flags = -g -DDEBUG_PORT=Serial -DWIFI_RELAY_NC
  318. upload_speed = 115200
  319. upload_port = "192.168.4.1"
  320. upload_flags = --auth=fibonacci --port 8266
  321. [env:mqtt-relay-debug]
  322. platform = espressif8266
  323. framework = arduino
  324. board = esp_wroom_02
  325. lib_deps = ${common.lib_deps}
  326. lib_ignore = ${common.lib_ignore}
  327. extra_script = pio_hooks.py
  328. build_flags = -g -DDEBUG_PORT=Serial -DMQTT_RELAY -DENABLE_DS18B20=1
  329. [env:mqtt-relay-debug-ota]
  330. platform = espressif8266
  331. framework = arduino
  332. board = esp_wroom_02
  333. lib_deps = ${common.lib_deps}
  334. lib_ignore = ${common.lib_ignore}
  335. extra_script = pio_hooks.py
  336. build_flags = -g -DDEBUG_PORT=Serial -DMQTT_RELAY -DENABLE_DS18B20=1
  337. upload_speed = 115200
  338. upload_port = "192.168.4.1"
  339. upload_flags = --auth=fibonacci --port 8266
  340. [env:wifi-relays-debug]
  341. platform = espressif8266
  342. framework = arduino
  343. board = esp01_1m
  344. lib_deps = ${common.lib_deps}
  345. lib_ignore = ${common.lib_ignore}
  346. extra_script = pio_hooks.py
  347. build_flags = -g -DDEBUG_PORT=Serial -DWIFI_RELAYS_BOARD_KIT
  348. [env:wifi-relays-debug-ota]
  349. platform = espressif8266
  350. framework = arduino
  351. board = esp01_1m
  352. lib_deps = ${common.lib_deps}
  353. lib_ignore = ${common.lib_ignore}
  354. extra_script = pio_hooks.py
  355. build_flags = -g -DDEBUG_PORT=Serial -DWIFI_RELAYS_BOARD_KIT
  356. upload_speed = 115200
  357. upload_port = "192.168.4.1"
  358. upload_flags = --auth=fibonacci --port 8266