ESP32 / ESP8266 & BME280 / SHT2x sensor with InfluxDB support
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.

platformio.ini 7.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258
  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. monitor_port = /dev/ttyUSB2
  68. monitor_speed = 115200
  69. extra_scripts = pre:extra_script.py
  70. build_flags =
  71. -DSENSOR_HOSTNAME_PREFIX=\"lora-\"
  72. "-DNAME_OF_FEATURE=\"Lora Gatway\""
  73. -DENABLE_WEBSOCKETS
  74. -DENABLE_DEBUGLOG
  75. -DNEW_ESP32_LIB
  76. -DFEATURE_LORA
  77. -DENABLE_INFLUXDB_LOGGING
  78. -DUSE_INFLUXDB_LIB
  79. lib_deps =
  80. ESP8266 Influxdb
  81. https://github.com/knolleary/pubsubclient.git#2d228f2f862a95846c65a8518c79f48dfc8f188c
  82. https://github.com/rlogiacco/CircularBuffer.git#f29cf01b6e8603422f3668d51036ac124f803404
  83. https://github.com/Links2004/arduinoWebSockets.git#30d5e136665a52880f641ddd7245b3ba05ecd32b
  84. https://github.com/ropg/heltec_esp32_lora_v3.git#9f281354507849755a597ebcce3721582f3b59b8
  85. [env:esp8266env]
  86. platform = espressif8266
  87. board = esp01_1m
  88. framework = arduino
  89. build_flags =
  90. -DSENSOR_HOSTNAME_PREFIX=\"env-\"
  91. "-DNAME_OF_FEATURE=\"Environment Sensor\""
  92. -DENABLE_WEBSOCKETS
  93. -DENABLE_DEBUGLOG
  94. -DENABLE_BME280
  95. -DENABLE_CCS811
  96. -DENABLE_INFLUXDB_LOGGING
  97. -DUSE_INFLUXDB_LIB
  98. -DENABLE_MQTT
  99. lib_deps =
  100. Wire
  101. ESP8266 Influxdb
  102. Adafruit Unified Sensor
  103. Adafruit BME280 Library
  104. https://github.com/adafruit/Adafruit_CCS811
  105. https://github.com/knolleary/pubsubclient.git#2d228f2f862a95846c65a8518c79f48dfc8f188c
  106. https://github.com/rlogiacco/CircularBuffer
  107. https://github.com/Links2004/arduinoWebSockets
  108. [env:esp8266smallenv]
  109. platform = espressif8266
  110. board = esp01
  111. framework = arduino
  112. build_flags =
  113. -DSENSOR_HOSTNAME_PREFIX=\"env-\"
  114. "-DNAME_OF_FEATURE=\"Environment Sensor\""
  115. -DENABLE_WEBSOCKETS
  116. -DENABLE_DEBUGLOG
  117. -DENABLE_BME280
  118. -DENABLE_CCS811
  119. -DENABLE_INFLUXDB_LOGGING
  120. -DENABLE_SIMPLE_INFLUX
  121. -DENABLE_MQTT
  122. lib_deps =
  123. Wire
  124. Adafruit Unified Sensor
  125. Adafruit BME280 Library
  126. https://github.com/adafruit/Adafruit_CCS811
  127. https://github.com/knolleary/pubsubclient.git#2d228f2f862a95846c65a8518c79f48dfc8f188c
  128. https://github.com/rlogiacco/CircularBuffer
  129. https://github.com/Links2004/arduinoWebSockets
  130. [env:esp8266smallrelais]
  131. platform = espressif8266
  132. board = esp01
  133. framework = arduino
  134. build_flags =
  135. -DSENSOR_HOSTNAME_PREFIX=\"relais-\"
  136. "-DNAME_OF_FEATURE=\"Relais Switch\""
  137. -DENABLE_WEBSOCKETS
  138. -DENABLE_DEBUGLOG
  139. -DENABLE_BME280
  140. -DENABLE_CCS811
  141. -DRELAIS_SERIAL
  142. -DENABLE_MQTT
  143. lib_deps =
  144. Wire
  145. Adafruit Unified Sensor
  146. Adafruit BME280 Library
  147. https://github.com/adafruit/Adafruit_CCS811
  148. https://github.com/knolleary/pubsubclient.git#2d228f2f862a95846c65a8518c79f48dfc8f188c
  149. https://github.com/rlogiacco/CircularBuffer
  150. https://github.com/Links2004/arduinoWebSockets
  151. [env:esp8266relais]
  152. platform = espressif8266
  153. board = esp01_1m
  154. framework = arduino
  155. build_flags =
  156. -DSENSOR_HOSTNAME_PREFIX=\"relais-\"
  157. "-DNAME_OF_FEATURE=\"Relais Switch\""
  158. -DENABLE_WEBSOCKETS
  159. -DENABLE_DEBUGLOG
  160. -DENABLE_BME280
  161. -DRELAIS_SERIAL
  162. -DENABLE_INFLUXDB_LOGGING
  163. -DUSE_INFLUXDB_LIB
  164. -DENABLE_MQTT
  165. lib_deps =
  166. Wire
  167. ESP8266 Influxdb
  168. Adafruit Unified Sensor
  169. Adafruit BME280 Library
  170. https://github.com/knolleary/pubsubclient.git#2d228f2f862a95846c65a8518c79f48dfc8f188c
  171. https://github.com/rlogiacco/CircularBuffer
  172. https://github.com/Links2004/arduinoWebSockets
  173. [env:esp32env]
  174. platform = platformio/espressif32@3.5.0
  175. board = esp32dev
  176. framework = arduino
  177. upload_protocol = esptool
  178. upload_port = /dev/ttyUSB1
  179. monitor_port = /dev/ttyUSB1
  180. monitor_speed = 115200
  181. build_flags =
  182. -DSENSOR_HOSTNAME_PREFIX=\"env-\"
  183. "-DNAME_OF_FEATURE=\"Environment Sensor\""
  184. -DENABLE_WEBSOCKETS
  185. -DENABLE_DEBUGLOG
  186. -DENABLE_BME280
  187. -DENABLE_CCS811
  188. -DENABLE_INFLUXDB_LOGGING
  189. -DUSE_INFLUXDB_LIB
  190. -DENABLE_MQTT
  191. lib_deps =
  192. Wire
  193. Adafruit Unified Sensor
  194. Adafruit BME280 Library
  195. https://github.com/tobiasschuerg/InfluxDB-Client-for-Arduino.git#66ed5d031caab6953cc79b407a4b49d33b1126dc
  196. https://github.com/adafruit/Adafruit_CCS811
  197. https://github.com/knolleary/pubsubclient.git#2d228f2f862a95846c65a8518c79f48dfc8f188c
  198. https://github.com/rlogiacco/CircularBuffer
  199. https://github.com/Links2004/arduinoWebSockets
  200. [env:esp32moisture]
  201. platform = platformio/espressif32@3.5.0
  202. board = esp32dev
  203. framework = arduino
  204. upload_protocol = esptool
  205. upload_port = /dev/ttyUSB1
  206. monitor_port = /dev/ttyUSB1
  207. monitor_speed = 115200
  208. build_flags =
  209. -DSENSOR_HOSTNAME_PREFIX=\"mst-\"
  210. "-DNAME_OF_FEATURE=\"Moisture Sensor\""
  211. -DENABLE_WEBSOCKETS
  212. -DENABLE_DEBUGLOG
  213. -DMOISTURE_ADC_ESP32
  214. -DENABLE_BME280
  215. -DENABLE_CCS811
  216. -DENABLE_INFLUXDB_LOGGING
  217. -DUSE_INFLUXDB_LIB
  218. -DENABLE_MQTT
  219. lib_deps =
  220. Wire
  221. Adafruit Unified Sensor
  222. Adafruit BME280 Library
  223. https://github.com/tobiasschuerg/InfluxDB-Client-for-Arduino.git#66ed5d031caab6953cc79b407a4b49d33b1126dc
  224. https://github.com/adafruit/Adafruit_CCS811
  225. https://github.com/knolleary/pubsubclient.git#2d228f2f862a95846c65a8518c79f48dfc8f188c
  226. https://github.com/rlogiacco/CircularBuffer
  227. https://github.com/Links2004/arduinoWebSockets
  228. [env:arduinomoisture]
  229. platform = atmelavr
  230. board = uno
  231. framework = arduino
  232. upload_port = /dev/ttyACM0
  233. monitor_port = /dev/ttyACM0
  234. monitor_speed = 115200
  235. build_flags =
  236. -DSENSOR_HOSTNAME_PREFIX=\"mst-\"
  237. "-DNAME_OF_FEATURE=\"Moisture Sensor\""
  238. -DENABLE_BME280
  239. -DMOISTURE_ADC_ARDUINO
  240. -DENABLE_INFLUXDB_LOGGING
  241. -DENABLE_SIMPLE_INFLUX
  242. lib_deps =
  243. Wire
  244. Adafruit Unified Sensor
  245. Adafruit BME280 Library
  246. https://github.com/jandrassy/UnoWiFiDevEdSerial1
  247. https://github.com/jandrassy/arduino-library-wifilink