ESP32 / ESP8266 & BME280 / SHT2x sensor with InfluxDB support
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

platformio.ini 7.9KB

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