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.

245 lines
6.9 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. AsyncMqttClient
  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:ac-device]
  176. topic = /home/cellar/airconditioner/ip
  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. upload_speed = 115200
  185. upload_port = "192.168.4.1"
  186. upload_flags = --auth=fibonacci --port 8266
  187. [env:washer-device]
  188. topic = /home/cellar/washer/ip
  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. upload_speed = 115200
  196. upload_port = "192.168.4.1"
  197. upload_flags = --auth=fibonacci --port 8266
  198. build_flags = -g -Wl,-Tesp8266.flash.1m128.ld -DDEBUG_PORT=Serial -DSONOFF -DENABLE_EMON=1 -DENABLE_DHT=1
  199. [env:studio-lamp-device]
  200. topic = /home/studio/lamp/ip
  201. platform = espressif8266_stage
  202. framework = arduino
  203. board = esp01_1m
  204. lib_deps = ${common.lib_deps}
  205. lib_ignore =
  206. extra_script = pio_hooks.py
  207. build_flags = -g -Wl,-Tesp8266.flash.1m128.ld -DDEBUG_PORT=Serial -DSONOFF -DENABLE_FAUXMO=1
  208. upload_speed = 115200
  209. upload_port = "192.168.4.1"
  210. upload_flags = --auth=fibonacci --port 8266
  211. [env:living-lamp-device]
  212. topic = /home/living/lamp/ip
  213. platform = espressif8266_stage
  214. framework = arduino
  215. board = esp01_1m
  216. lib_deps = ${common.lib_deps}
  217. lib_ignore = ${common.lib_ignore}
  218. extra_script = pio_hooks.py
  219. build_flags = -g -Wl,-Tesp8266.flash.1m128.ld -DDEBUG_PORT=Serial -DSONOFF -DENABLE_FAUXMO=1
  220. upload_speed = 115200
  221. upload_port = "192.168.4.1"
  222. upload_flags = --auth=fibonacci --port 8266