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.

185 lines
5.2 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
  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
  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.1m256.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.1m256.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-pow-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.1m256.ld -DDEBUG_PORT=Serial -DSONOFF_POW
  71. [env:sonoff-pow-debug-ota]
  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.1m256.ld -DDEBUG_PORT=Serial -DSONOFF_POW
  79. upload_speed = 115200
  80. upload_port = "192.168.4.1"
  81. upload_flags = --auth=fibonacci --port 8266
  82. [env:slampher-debug]
  83. platform = espressif8266
  84. framework = arduino
  85. board = esp01_1m
  86. lib_deps = ${common.lib_deps}
  87. lib_ignore = ${common.lib_ignore}
  88. extra_script = pio_hooks.py
  89. build_flags = -g -Wl,-Tesp8266.flash.1m256.ld -DDEBUG_PORT=Serial -DSLAMPHER
  90. [env:slampher-debug-ota]
  91. platform = espressif8266
  92. framework = arduino
  93. board = esp01_1m
  94. lib_deps = ${common.lib_deps}
  95. lib_ignore = ${common.lib_ignore}
  96. extra_script = pio_hooks.py
  97. build_flags = -g -Wl,-Tesp8266.flash.1m256.ld -DDEBUG_PORT=Serial -DSLAMPHER
  98. upload_speed = 115200
  99. upload_port = "192.168.4.1"
  100. upload_flags = --auth=fibonacci --port 8266
  101. [env:s20-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.1m256.ld -DDEBUG_PORT=Serial -DS20
  109. [env:s20-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.1m256.ld -DDEBUG_PORT=Serial -DS20
  117. upload_speed = 115200
  118. upload_port = "192.168.4.1"
  119. upload_flags = --auth=fibonacci --port 8266
  120. # ------------------------------------------------------------------------------
  121. [env:ac-device]
  122. topic = /home/cellar/airconditioner/ip
  123. platform = espressif8266
  124. framework = arduino
  125. board = esp01_1m
  126. lib_deps = ${common.lib_deps}
  127. lib_ignore = ${common.lib_ignore}
  128. extra_script = pio_hooks.py
  129. build_flags = -g -Wl,-Tesp8266.flash.1m256.ld -DDEBUG_PORT=Serial -DS20
  130. upload_speed = 115200
  131. upload_port = "192.168.4.1"
  132. upload_flags = --auth=fibonacci --port 8266
  133. [env:washer-device]
  134. topic = /home/cellar/washer/ip
  135. platform = espressif8266
  136. framework = arduino
  137. board = esp01_1m
  138. lib_deps = ${common.lib_deps}
  139. lib_ignore = ${common.lib_ignore}
  140. extra_script = pio_hooks.py
  141. upload_speed = 115200
  142. upload_port = "192.168.4.1"
  143. upload_flags = --auth=fibonacci --port 8266
  144. build_flags = -g -Wl,-Tesp8266.flash.1m256.ld -DDEBUG_PORT=Serial -DSONOFF -DENABLE_EMON=1 -DENABLE_DHT=1
  145. [env:studio-lamp-device]
  146. topic = /home/studio/lamp/ip
  147. platform = espressif8266_stage
  148. framework = arduino
  149. board = esp01_1m
  150. lib_deps = ${common.lib_deps}
  151. lib_ignore =
  152. extra_script = pio_hooks.py
  153. build_flags = -g -Wl,-Tesp8266.flash.1m256.ld -DDEBUG_PORT=Serial -DSONOFF -DENABLE_FAUXMO=1
  154. upload_speed = 115200
  155. upload_port = "192.168.4.1"
  156. upload_flags = --auth=fibonacci --port 8266
  157. [env:living-lamp-device]
  158. topic = /home/living/lamp/ip
  159. platform = espressif8266_stage
  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.1m256.ld -DDEBUG_PORT=Serial -DSONOFF -DENABLE_FAUXMO=1
  166. upload_speed = 115200
  167. upload_port = "192.168.4.1"
  168. upload_flags = --auth=fibonacci --port 8266