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.

362 lines
10 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=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:electrodragon-debug]
  235. platform = espressif8266
  236. framework = arduino
  237. board = esp12e
  238. lib_deps = ${common.lib_deps}
  239. lib_ignore = ${common.lib_ignore}
  240. extra_script = pio_hooks.py
  241. build_flags = -g -DDEBUG_PORT=Serial -DDEBUG_PORT=Serial -DESP_RELAY_BOARD -DENABLE_DHT=1
  242. [env:electrodragon-debug-ota]
  243. platform = espressif8266
  244. framework = arduino
  245. board = esp12e
  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 -DDEBUG_PORT=Serial -DESP_RELAY_BOARD -DENABLE_DHT=1
  250. upload_speed = 115200
  251. upload_port = "192.168.4.1"
  252. upload_flags = --auth=fibonacci --port 8266
  253. [env:ecoplug-debug]
  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 -DECOPLUG
  261. [env:ecoplug-debug-ota]
  262. platform = espressif8266
  263. framework = arduino
  264. board = esp01_1m
  265. lib_deps = ${common.lib_deps}
  266. lib_ignore = ${common.lib_ignore}
  267. extra_script = pio_hooks.py
  268. build_flags = -g -Wl,-Tesp8266.flash.1m128.ld -DDEBUG_PORT=Serial -DECOPLUG
  269. upload_speed = 115200
  270. upload_port = "192.168.4.1"
  271. upload_flags = --auth=fibonacci --port 8266
  272. [env:jangoe-debug]
  273. platform = espressif8266
  274. framework = arduino
  275. board = esp01_1m
  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 -DWIFI_RELAY_NC
  280. [env:jangoe-debug-ota]
  281. platform = espressif8266
  282. framework = arduino
  283. board = esp01_1m
  284. lib_deps = ${common.lib_deps}
  285. lib_ignore = ${common.lib_ignore}
  286. extra_script = pio_hooks.py
  287. build_flags = -g -DDEBUG_PORT=Serial -DWIFI_RELAY_NC
  288. upload_speed = 115200
  289. upload_port = "192.168.4.1"
  290. upload_flags = --auth=fibonacci --port 8266
  291. [env:mqtt-relay-debug]
  292. platform = espressif8266
  293. framework = arduino
  294. board = esp_wroom_02
  295. lib_deps = ${common.lib_deps}
  296. lib_ignore = ${common.lib_ignore}
  297. extra_script = pio_hooks.py
  298. build_flags = -g -DDEBUG_PORT=Serial -DMQTT_RELAY -DENABLE_DS18B20=1
  299. [env:mqtt-relay-debug-ota]
  300. platform = espressif8266
  301. framework = arduino
  302. board = esp_wroom_02
  303. lib_deps = ${common.lib_deps}
  304. lib_ignore = ${common.lib_ignore}
  305. extra_script = pio_hooks.py
  306. build_flags = -g -DDEBUG_PORT=Serial -DMQTT_RELAY -DENABLE_DS18B20=1
  307. upload_speed = 115200
  308. upload_port = "192.168.4.1"
  309. upload_flags = --auth=fibonacci --port 8266
  310. [env:wifi-relays-debug]
  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_RELAYS_BOARD_KIT
  318. [env:wifi-relays-debug-ota]
  319. platform = espressif8266
  320. framework = arduino
  321. board = esp01_1m
  322. lib_deps = ${common.lib_deps}
  323. lib_ignore = ${common.lib_ignore}
  324. extra_script = pio_hooks.py
  325. build_flags = -g -DDEBUG_PORT=Serial -DWIFI_RELAYS_BOARD_KIT
  326. upload_speed = 115200
  327. upload_port = "192.168.4.1"
  328. upload_flags = --auth=fibonacci --port 8266