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.

203 lines
5.7 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:slampher-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 -DDEBUG_PORT=Serial -DSLAMPHER
  106. [env:slampher-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 -DDEBUG_PORT=Serial -DSLAMPHER
  114. upload_speed = 115200
  115. upload_port = "192.168.4.1"
  116. upload_flags = --auth=fibonacci --port 8266
  117. [env:s20-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 -DS20
  125. [env:s20-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 -DS20
  133. upload_speed = 115200
  134. upload_port = "192.168.4.1"
  135. upload_flags = --auth=fibonacci --port 8266
  136. # ------------------------------------------------------------------------------
  137. [env:ac-device]
  138. topic = /home/cellar/airconditioner/ip
  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 -DS20
  146. upload_speed = 115200
  147. upload_port = "192.168.4.1"
  148. upload_flags = --auth=fibonacci --port 8266
  149. [env:washer-device]
  150. topic = /home/cellar/washer/ip
  151. platform = espressif8266
  152. framework = arduino
  153. board = esp01_1m
  154. lib_deps = ${common.lib_deps}
  155. lib_ignore = ${common.lib_ignore}
  156. extra_script = pio_hooks.py
  157. upload_speed = 115200
  158. upload_port = "192.168.4.1"
  159. upload_flags = --auth=fibonacci --port 8266
  160. build_flags = -g -Wl,-Tesp8266.flash.1m128.ld -DDEBUG_PORT=Serial -DSONOFF -DENABLE_EMON=1 -DENABLE_DHT=1
  161. [env:studio-lamp-device]
  162. topic = /home/studio/lamp/ip
  163. platform = espressif8266_stage
  164. framework = arduino
  165. board = esp01_1m
  166. lib_deps = ${common.lib_deps}
  167. lib_ignore =
  168. extra_script = pio_hooks.py
  169. build_flags = -g -Wl,-Tesp8266.flash.1m128.ld -DDEBUG_PORT=Serial -DSONOFF -DENABLE_FAUXMO=1
  170. upload_speed = 115200
  171. upload_port = "192.168.4.1"
  172. upload_flags = --auth=fibonacci --port 8266
  173. [env:living-lamp-device]
  174. topic = /home/living/lamp/ip
  175. platform = espressif8266_stage
  176. framework = arduino
  177. board = esp01_1m
  178. lib_deps = ${common.lib_deps}
  179. lib_ignore = ${common.lib_ignore}
  180. extra_script = pio_hooks.py
  181. build_flags = -g -Wl,-Tesp8266.flash.1m128.ld -DDEBUG_PORT=Serial -DSONOFF -DENABLE_FAUXMO=1
  182. upload_speed = 115200
  183. upload_port = "192.168.4.1"
  184. upload_flags = --auth=fibonacci --port 8266