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.

180 lines
4.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. https://bitbucket.org/xoseperez/justwifi.git
  16. https://bitbucket.org/xoseperez/nofuss.git
  17. https://bitbucket.org/xoseperez/hlw8012.git
  18. https://bitbucket.org/xoseperez/emonliteesp.git
  19. https://bitbucket.org/xoseperez/fauxmoESP.git
  20. https://github.com/jccprj/RemoteSwitch-arduino-library
  21. lib_ignore = FauxmoESP, ESPAsyncUDP
  22. [env:node-debug]
  23. platform = espressif8266_stage
  24. framework = arduino
  25. lib_deps = ${common.lib_deps}
  26. extra_script = pio_hooks.py
  27. board = nodemcuv2
  28. build_flags = -g -DNODEMCUV2 -DDEBUG_PORT=Serial -DENABLE_FAUXMO=1
  29. [env:node-debug-ota]
  30. platform = espressif8266
  31. framework = arduino
  32. lib_deps = ${common.lib_deps}
  33. lib_ignore = ${common.lib_ignore}
  34. extra_script = pio_hooks.py
  35. board = nodemcuv2
  36. build_flags = -g -DNODEMCUV2 -DDEBUG_PORT=Serial
  37. upload_speed = 115200
  38. upload_port = "192.168.4.1"
  39. upload_flags = --auth=fibonacci --port 8266
  40. [env:sonoff-debug]
  41. platform = espressif8266
  42. framework = arduino
  43. lib_deps = ${common.lib_deps}
  44. lib_ignore = ${common.lib_ignore}
  45. extra_script = pio_hooks.py
  46. board = esp01_1m
  47. build_flags = -g -Wl,-Tesp8266.flash.1m256.ld -DDEBUG_PORT=Serial -DSONOFF
  48. [env:sonoff-debug-ota]
  49. platform = espressif8266
  50. framework = arduino
  51. lib_deps = ${common.lib_deps}
  52. extra_script = pio_hooks.py
  53. board = esp01_1m
  54. build_flags = -g -Wl,-Tesp8266.flash.1m256.ld -DDEBUG_PORT=Serial -DSONOFF
  55. upload_speed = 115200
  56. upload_port = "192.168.4.1"
  57. upload_flags = --auth=fibonacci --port 8266
  58. lib_ignore = ${common.lib_ignore}
  59. [env:sonoff-pow-debug]
  60. platform = espressif8266
  61. framework = arduino
  62. lib_deps = ${common.lib_deps}
  63. extra_script = pio_hooks.py
  64. board = esp01_1m
  65. build_flags = -g -Wl,-Tesp8266.flash.1m256.ld -DDEBUG_PORT=Serial -DSONOFF_POW
  66. lib_ignore = ${common.lib_ignore}
  67. [env:sonoff-pow-debug-ota]
  68. platform = espressif8266
  69. framework = arduino
  70. lib_deps = ${common.lib_deps}
  71. extra_script = pio_hooks.py
  72. board = esp01_1m
  73. build_flags = -g -Wl,-Tesp8266.flash.1m256.ld -DDEBUG_PORT=Serial -DSONOFF_POW
  74. upload_speed = 115200
  75. upload_port = "192.168.4.1"
  76. upload_flags = --auth=fibonacci --port 8266
  77. lib_ignore = ${common.lib_ignore}
  78. [env:slampher-debug]
  79. platform = espressif8266
  80. framework = arduino
  81. lib_deps = ${common.lib_deps}
  82. extra_script = pio_hooks.py
  83. board = esp01_1m
  84. build_flags = -g -Wl,-Tesp8266.flash.1m256.ld -DDEBUG_PORT=Serial -DSLAMPHER
  85. lib_ignore = ${common.lib_ignore}
  86. [env:slampher-debug-ota]
  87. platform = espressif8266
  88. framework = arduino
  89. lib_deps = ${common.lib_deps}
  90. extra_script = pio_hooks.py
  91. board = esp01_1m
  92. build_flags = -g -Wl,-Tesp8266.flash.1m256.ld -DDEBUG_PORT=Serial -DSLAMPHER
  93. upload_speed = 115200
  94. upload_port = "192.168.4.1"
  95. upload_flags = --auth=fibonacci --port 8266
  96. lib_ignore = ${common.lib_ignore}
  97. [env:s20-debug]
  98. platform = espressif8266
  99. framework = arduino
  100. lib_deps = ${common.lib_deps}
  101. extra_script = pio_hooks.py
  102. board = esp01_1m
  103. build_flags = -g -Wl,-Tesp8266.flash.1m256.ld -DDEBUG_PORT=Serial -DS20
  104. lib_ignore = ${common.lib_ignore}
  105. [env:s20-debug-ota]
  106. platform = espressif8266
  107. framework = arduino
  108. lib_deps = ${common.lib_deps}
  109. lib_ignore = ${common.lib_ignore}
  110. extra_script = pio_hooks.py
  111. board = esp01_1m
  112. build_flags = -g -Wl,-Tesp8266.flash.1m256.ld -DDEBUG_PORT=Serial -DS20
  113. upload_speed = 115200
  114. upload_port = "192.168.4.1"
  115. upload_flags = --auth=fibonacci --port 8266
  116. [env:ac-device]
  117. topic = /home/cellar/airconditioner/ip
  118. platform = espressif8266
  119. framework = arduino
  120. lib_deps = ${common.lib_deps}
  121. lib_ignore = ${common.lib_ignore}
  122. extra_script = pio_hooks.py
  123. board = esp01_1m
  124. build_flags = -g -Wl,-Tesp8266.flash.1m256.ld -DDEBUG_PORT=Serial -DS20
  125. upload_speed = 115200
  126. upload_port = "192.168.4.1"
  127. upload_flags = --auth=fibonacci --port 8266
  128. [env:washer-device]
  129. topic = /home/cellar/washer/ip
  130. platform = espressif8266
  131. framework = arduino
  132. lib_deps = ${common.lib_deps}
  133. lib_ignore = ${common.lib_ignore}
  134. extra_script = pio_hooks.py
  135. board = esp01_1m
  136. upload_speed = 115200
  137. upload_port = "192.168.4.1"
  138. upload_flags = --auth=fibonacci --port 8266
  139. build_flags = -g -Wl,-Tesp8266.flash.1m256.ld -DDEBUG_PORT=Serial -DSONOFF -DENABLE_EMON=1 -DENABLE_DHT=1
  140. [env:studio-lamp-device]
  141. topic = /home/studio/lamp/ip
  142. platform = espressif8266_stage
  143. framework = arduino
  144. lib_deps = ${common.lib_deps}
  145. lib_ignore =
  146. extra_script = pio_hooks.py
  147. board = esp01_1m
  148. build_flags = -g -Wl,-Tesp8266.flash.1m256.ld -DDEBUG_PORT=Serial -DSONOFF -DENABLE_FAUXMO=1
  149. upload_speed = 115200
  150. upload_port = "192.168.4.1"
  151. upload_flags = --auth=fibonacci --port 8266
  152. [env:living-lamp-device]
  153. topic = /home/living/lamp/ip
  154. platform = espressif8266
  155. framework = arduino
  156. lib_deps = ${common.lib_deps}
  157. lib_ignore = ${common.lib_ignore}
  158. extra_script = pio_hooks.py
  159. board = esp01_1m
  160. build_flags = -g -Wl,-Tesp8266.flash.1m256.ld -DDEBUG_PORT=Serial -DSONOFF
  161. upload_speed = 115200
  162. upload_port = "192.168.4.1"
  163. upload_flags = --auth=fibonacci --port 8266