ESP32 / ESP8266 & BME280 / SHT2x sensor with InfluxDB support
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

platformio.ini 7.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261
  1. ;PlatformIO Project Configuration File
  2. ;
  3. ; Build options: build flags, source filter
  4. ; Upload options: custom upload port, speed and extra flags
  5. ; Library options: dependencies, extra library storages
  6. ; Advanced options: extra scripting
  7. ;
  8. ; Please visit documentation for the other options and examples
  9. ; https://docs.platformio.org/page/projectconf.html
  10. [env:cyd]
  11. platform = platformio/espressif32@6.4.0
  12. board = esp32dev
  13. framework = arduino
  14. upload_protocol = esptool
  15. upload_port = /dev/ttyUSB2
  16. monitor_port = /dev/ttyUSB2
  17. monitor_speed = 115200
  18. extra_scripts = pre:extra_script.py
  19. build_flags =
  20. -DSENSOR_HOSTNAME_PREFIX=\"cyd-\"
  21. "-DNAME_OF_FEATURE=\"Remote Control\""
  22. -DENABLE_WEBSOCKETS
  23. -DENABLE_DEBUGLOG
  24. -DENABLE_MQTT
  25. -DNEW_ESP32_LIB
  26. -DFEATURE_UI
  27. -DUSER_SETUP_LOADED=1
  28. -include include/User_Setup.h
  29. -DDISABLE_ALL_LIBRARY_WARNINGS
  30. lib_ldf_mode = deep
  31. lib_deps =
  32. https://github.com/knolleary/pubsubclient.git#2d228f2f862a95846c65a8518c79f48dfc8f188c
  33. https://github.com/rlogiacco/CircularBuffer.git#f29cf01b6e8603422f3668d51036ac124f803404
  34. https://github.com/Links2004/arduinoWebSockets.git#30d5e136665a52880f641ddd7245b3ba05ecd32b
  35. https://github.com/Bodmer/TFT_eSPI.git#01483a1043a4915c4e34c928fb48a87d3b38a248
  36. https://github.com/PaulStoffregen/XPT2046_Touchscreen.git#5d5120e93ab5d28b3f1db6d754819c354c2da019
  37. [env:loratx]
  38. platform = espressif32
  39. board = heltec_wifi_lora_32_V3
  40. framework = arduino
  41. upload_protocol = esptool
  42. upload_port = /dev/ttyUSB2
  43. monitor_port = /dev/ttyUSB2
  44. monitor_speed = 115200
  45. extra_scripts = pre:extra_script.py
  46. build_flags =
  47. -DSENSOR_HOSTNAME_PREFIX=\"lora-\"
  48. "-DNAME_OF_FEATURE=\"Lora Gatway\""
  49. -DENABLE_DEBUGLOG
  50. -DNEW_ESP32_LIB
  51. -DFEATURE_LORA
  52. -DFEATURE_SML
  53. -DFEATURE_DISABLE_WIFI
  54. lib_deps =
  55. https://github.com/knolleary/pubsubclient.git#2d228f2f862a95846c65a8518c79f48dfc8f188c
  56. https://github.com/rlogiacco/CircularBuffer.git#f29cf01b6e8603422f3668d51036ac124f803404
  57. https://github.com/Links2004/arduinoWebSockets.git#30d5e136665a52880f641ddd7245b3ba05ecd32b
  58. https://github.com/ropg/heltec_esp32_lora_v3.git#9f281354507849755a597ebcce3721582f3b59b8
  59. https://github.com/olliiiver/sml_parser.git#f256f6935a6c6cad1a7a7f40ea18ac7d2dd28f0a
  60. https://github.com/plerup/espsoftwareserial.git#40038df467853f47dde4641769183fa46996decb
  61. [env:lorarx]
  62. platform = espressif32
  63. board = heltec_wifi_lora_32_V3
  64. framework = arduino
  65. upload_protocol = esptool
  66. upload_port = /dev/ttyUSB2
  67. # TODO neither web ota nor arduino ota work on heltec esp32?!
  68. #upload_protocol = espota
  69. #upload_port = lora-testing
  70. monitor_port = /dev/ttyUSB2
  71. monitor_speed = 115200
  72. extra_scripts = pre:extra_script.py
  73. build_flags =
  74. -DSENSOR_HOSTNAME_PREFIX=\"lora-\"
  75. "-DNAME_OF_FEATURE=\"Lora Gatway\""
  76. -DENABLE_WEBSOCKETS
  77. -DENABLE_DEBUGLOG
  78. -DNEW_ESP32_LIB
  79. -DFEATURE_LORA
  80. -DENABLE_INFLUXDB_LOGGING
  81. -DUSE_INFLUXDB_LIB
  82. lib_deps =
  83. ESP8266 Influxdb
  84. https://github.com/knolleary/pubsubclient.git#2d228f2f862a95846c65a8518c79f48dfc8f188c
  85. https://github.com/rlogiacco/CircularBuffer.git#f29cf01b6e8603422f3668d51036ac124f803404
  86. https://github.com/Links2004/arduinoWebSockets.git#30d5e136665a52880f641ddd7245b3ba05ecd32b
  87. https://github.com/ropg/heltec_esp32_lora_v3.git#9f281354507849755a597ebcce3721582f3b59b8
  88. [env:esp8266env]
  89. platform = espressif8266
  90. board = esp01_1m
  91. framework = arduino
  92. build_flags =
  93. -DSENSOR_HOSTNAME_PREFIX=\"env-\"
  94. "-DNAME_OF_FEATURE=\"Environment Sensor\""
  95. -DENABLE_WEBSOCKETS
  96. -DENABLE_DEBUGLOG
  97. -DENABLE_BME280
  98. -DENABLE_CCS811
  99. -DENABLE_INFLUXDB_LOGGING
  100. -DUSE_INFLUXDB_LIB
  101. -DENABLE_MQTT
  102. lib_deps =
  103. Wire
  104. ESP8266 Influxdb
  105. Adafruit Unified Sensor
  106. Adafruit BME280 Library
  107. https://github.com/adafruit/Adafruit_CCS811
  108. https://github.com/knolleary/pubsubclient.git#2d228f2f862a95846c65a8518c79f48dfc8f188c
  109. https://github.com/rlogiacco/CircularBuffer
  110. https://github.com/Links2004/arduinoWebSockets
  111. [env:esp8266smallenv]
  112. platform = espressif8266
  113. board = esp01
  114. framework = arduino
  115. build_flags =
  116. -DSENSOR_HOSTNAME_PREFIX=\"env-\"
  117. "-DNAME_OF_FEATURE=\"Environment Sensor\""
  118. -DENABLE_WEBSOCKETS
  119. -DENABLE_DEBUGLOG
  120. -DENABLE_BME280
  121. -DENABLE_CCS811
  122. -DENABLE_INFLUXDB_LOGGING
  123. -DENABLE_SIMPLE_INFLUX
  124. -DENABLE_MQTT
  125. lib_deps =
  126. Wire
  127. Adafruit Unified Sensor
  128. Adafruit BME280 Library
  129. https://github.com/adafruit/Adafruit_CCS811
  130. https://github.com/knolleary/pubsubclient.git#2d228f2f862a95846c65a8518c79f48dfc8f188c
  131. https://github.com/rlogiacco/CircularBuffer
  132. https://github.com/Links2004/arduinoWebSockets
  133. [env:esp8266smallrelais]
  134. platform = espressif8266
  135. board = esp01
  136. framework = arduino
  137. build_flags =
  138. -DSENSOR_HOSTNAME_PREFIX=\"relais-\"
  139. "-DNAME_OF_FEATURE=\"Relais Switch\""
  140. -DENABLE_WEBSOCKETS
  141. -DENABLE_DEBUGLOG
  142. -DENABLE_BME280
  143. -DENABLE_CCS811
  144. -DRELAIS_SERIAL
  145. -DENABLE_MQTT
  146. lib_deps =
  147. Wire
  148. Adafruit Unified Sensor
  149. Adafruit BME280 Library
  150. https://github.com/adafruit/Adafruit_CCS811
  151. https://github.com/knolleary/pubsubclient.git#2d228f2f862a95846c65a8518c79f48dfc8f188c
  152. https://github.com/rlogiacco/CircularBuffer
  153. https://github.com/Links2004/arduinoWebSockets
  154. [env:esp8266relais]
  155. platform = espressif8266
  156. board = esp01_1m
  157. framework = arduino
  158. build_flags =
  159. -DSENSOR_HOSTNAME_PREFIX=\"relais-\"
  160. "-DNAME_OF_FEATURE=\"Relais Switch\""
  161. -DENABLE_WEBSOCKETS
  162. -DENABLE_DEBUGLOG
  163. -DENABLE_BME280
  164. -DRELAIS_SERIAL
  165. -DENABLE_INFLUXDB_LOGGING
  166. -DUSE_INFLUXDB_LIB
  167. -DENABLE_MQTT
  168. lib_deps =
  169. Wire
  170. ESP8266 Influxdb
  171. Adafruit Unified Sensor
  172. Adafruit BME280 Library
  173. https://github.com/knolleary/pubsubclient.git#2d228f2f862a95846c65a8518c79f48dfc8f188c
  174. https://github.com/rlogiacco/CircularBuffer
  175. https://github.com/Links2004/arduinoWebSockets
  176. [env:esp32env]
  177. platform = platformio/espressif32@3.5.0
  178. board = esp32dev
  179. framework = arduino
  180. upload_protocol = esptool
  181. upload_port = /dev/ttyUSB1
  182. monitor_port = /dev/ttyUSB1
  183. monitor_speed = 115200
  184. build_flags =
  185. -DSENSOR_HOSTNAME_PREFIX=\"env-\"
  186. "-DNAME_OF_FEATURE=\"Environment Sensor\""
  187. -DENABLE_WEBSOCKETS
  188. -DENABLE_DEBUGLOG
  189. -DENABLE_BME280
  190. -DENABLE_CCS811
  191. -DENABLE_INFLUXDB_LOGGING
  192. -DUSE_INFLUXDB_LIB
  193. -DENABLE_MQTT
  194. lib_deps =
  195. Wire
  196. Adafruit Unified Sensor
  197. Adafruit BME280 Library
  198. https://github.com/tobiasschuerg/InfluxDB-Client-for-Arduino.git#66ed5d031caab6953cc79b407a4b49d33b1126dc
  199. https://github.com/adafruit/Adafruit_CCS811
  200. https://github.com/knolleary/pubsubclient.git#2d228f2f862a95846c65a8518c79f48dfc8f188c
  201. https://github.com/rlogiacco/CircularBuffer
  202. https://github.com/Links2004/arduinoWebSockets
  203. [env:esp32moisture]
  204. platform = platformio/espressif32@3.5.0
  205. board = esp32dev
  206. framework = arduino
  207. upload_protocol = esptool
  208. upload_port = /dev/ttyUSB1
  209. monitor_port = /dev/ttyUSB1
  210. monitor_speed = 115200
  211. build_flags =
  212. -DSENSOR_HOSTNAME_PREFIX=\"mst-\"
  213. "-DNAME_OF_FEATURE=\"Moisture Sensor\""
  214. -DENABLE_WEBSOCKETS
  215. -DENABLE_DEBUGLOG
  216. -DMOISTURE_ADC_ESP32
  217. -DENABLE_BME280
  218. -DENABLE_CCS811
  219. -DENABLE_INFLUXDB_LOGGING
  220. -DUSE_INFLUXDB_LIB
  221. -DENABLE_MQTT
  222. lib_deps =
  223. Wire
  224. Adafruit Unified Sensor
  225. Adafruit BME280 Library
  226. https://github.com/tobiasschuerg/InfluxDB-Client-for-Arduino.git#66ed5d031caab6953cc79b407a4b49d33b1126dc
  227. https://github.com/adafruit/Adafruit_CCS811
  228. https://github.com/knolleary/pubsubclient.git#2d228f2f862a95846c65a8518c79f48dfc8f188c
  229. https://github.com/rlogiacco/CircularBuffer
  230. https://github.com/Links2004/arduinoWebSockets
  231. [env:arduinomoisture]
  232. platform = atmelavr
  233. board = uno
  234. framework = arduino
  235. upload_port = /dev/ttyACM0
  236. monitor_port = /dev/ttyACM0
  237. monitor_speed = 115200
  238. build_flags =
  239. -DSENSOR_HOSTNAME_PREFIX=\"mst-\"
  240. "-DNAME_OF_FEATURE=\"Moisture Sensor\""
  241. -DENABLE_BME280
  242. -DMOISTURE_ADC_ARDUINO
  243. -DENABLE_INFLUXDB_LOGGING
  244. -DENABLE_SIMPLE_INFLUX
  245. lib_deps =
  246. Wire
  247. Adafruit Unified Sensor
  248. Adafruit BME280 Library
  249. https://github.com/jandrassy/UnoWiFiDevEdSerial1
  250. https://github.com/jandrassy/arduino-library-wifilink