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 6.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232
  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:lora]
  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_WEBSOCKETS
  50. -DENABLE_DEBUGLOG
  51. -DENABLE_MQTT
  52. -DNEW_ESP32_LIB
  53. -DFEATURE_LORA
  54. -DFEATURE_DISABLE_WIFI
  55. lib_deps =
  56. https://github.com/knolleary/pubsubclient.git#2d228f2f862a95846c65a8518c79f48dfc8f188c
  57. https://github.com/rlogiacco/CircularBuffer.git#f29cf01b6e8603422f3668d51036ac124f803404
  58. https://github.com/Links2004/arduinoWebSockets.git#30d5e136665a52880f641ddd7245b3ba05ecd32b
  59. https://github.com/ropg/heltec_esp32_lora_v3.git#9f281354507849755a597ebcce3721582f3b59b8
  60. [env:esp8266env]
  61. platform = espressif8266
  62. board = esp01_1m
  63. framework = arduino
  64. build_flags =
  65. -DSENSOR_HOSTNAME_PREFIX=\"env-\"
  66. "-DNAME_OF_FEATURE=\"Environment Sensor\""
  67. -DENABLE_WEBSOCKETS
  68. -DENABLE_DEBUGLOG
  69. -DENABLE_BME280
  70. -DENABLE_CCS811
  71. -DENABLE_INFLUXDB_LOGGING
  72. -DUSE_INFLUXDB_LIB
  73. -DENABLE_MQTT
  74. lib_deps =
  75. Wire
  76. ESP8266 Influxdb
  77. Adafruit Unified Sensor
  78. Adafruit BME280 Library
  79. https://github.com/adafruit/Adafruit_CCS811
  80. https://github.com/knolleary/pubsubclient.git#2d228f2f862a95846c65a8518c79f48dfc8f188c
  81. https://github.com/rlogiacco/CircularBuffer
  82. https://github.com/Links2004/arduinoWebSockets
  83. [env:esp8266smallenv]
  84. platform = espressif8266
  85. board = esp01
  86. framework = arduino
  87. build_flags =
  88. -DSENSOR_HOSTNAME_PREFIX=\"env-\"
  89. "-DNAME_OF_FEATURE=\"Environment Sensor\""
  90. -DENABLE_WEBSOCKETS
  91. -DENABLE_DEBUGLOG
  92. -DENABLE_BME280
  93. -DENABLE_CCS811
  94. -DENABLE_INFLUXDB_LOGGING
  95. -DENABLE_SIMPLE_INFLUX
  96. -DENABLE_MQTT
  97. lib_deps =
  98. Wire
  99. Adafruit Unified Sensor
  100. Adafruit BME280 Library
  101. https://github.com/adafruit/Adafruit_CCS811
  102. https://github.com/knolleary/pubsubclient.git#2d228f2f862a95846c65a8518c79f48dfc8f188c
  103. https://github.com/rlogiacco/CircularBuffer
  104. https://github.com/Links2004/arduinoWebSockets
  105. [env:esp8266smallrelais]
  106. platform = espressif8266
  107. board = esp01
  108. framework = arduino
  109. build_flags =
  110. -DSENSOR_HOSTNAME_PREFIX=\"relais-\"
  111. "-DNAME_OF_FEATURE=\"Relais Switch\""
  112. -DENABLE_WEBSOCKETS
  113. -DENABLE_DEBUGLOG
  114. -DENABLE_BME280
  115. -DENABLE_CCS811
  116. -DRELAIS_SERIAL
  117. -DENABLE_MQTT
  118. lib_deps =
  119. Wire
  120. Adafruit Unified Sensor
  121. Adafruit BME280 Library
  122. https://github.com/adafruit/Adafruit_CCS811
  123. https://github.com/knolleary/pubsubclient.git#2d228f2f862a95846c65a8518c79f48dfc8f188c
  124. https://github.com/rlogiacco/CircularBuffer
  125. https://github.com/Links2004/arduinoWebSockets
  126. [env:esp8266relais]
  127. platform = espressif8266
  128. board = esp01_1m
  129. framework = arduino
  130. build_flags =
  131. -DSENSOR_HOSTNAME_PREFIX=\"relais-\"
  132. "-DNAME_OF_FEATURE=\"Relais Switch\""
  133. -DENABLE_WEBSOCKETS
  134. -DENABLE_DEBUGLOG
  135. -DENABLE_BME280
  136. -DRELAIS_SERIAL
  137. -DENABLE_INFLUXDB_LOGGING
  138. -DUSE_INFLUXDB_LIB
  139. -DENABLE_MQTT
  140. lib_deps =
  141. Wire
  142. ESP8266 Influxdb
  143. Adafruit Unified Sensor
  144. Adafruit BME280 Library
  145. https://github.com/knolleary/pubsubclient.git#2d228f2f862a95846c65a8518c79f48dfc8f188c
  146. https://github.com/rlogiacco/CircularBuffer
  147. https://github.com/Links2004/arduinoWebSockets
  148. [env:esp32env]
  149. platform = platformio/espressif32@3.5.0
  150. board = esp32dev
  151. framework = arduino
  152. upload_protocol = esptool
  153. upload_port = /dev/ttyUSB1
  154. monitor_port = /dev/ttyUSB1
  155. monitor_speed = 115200
  156. build_flags =
  157. -DSENSOR_HOSTNAME_PREFIX=\"env-\"
  158. "-DNAME_OF_FEATURE=\"Environment Sensor\""
  159. -DENABLE_WEBSOCKETS
  160. -DENABLE_DEBUGLOG
  161. -DENABLE_BME280
  162. -DENABLE_CCS811
  163. -DENABLE_INFLUXDB_LOGGING
  164. -DUSE_INFLUXDB_LIB
  165. -DENABLE_MQTT
  166. lib_deps =
  167. Wire
  168. Adafruit Unified Sensor
  169. Adafruit BME280 Library
  170. https://github.com/tobiasschuerg/InfluxDB-Client-for-Arduino.git#66ed5d031caab6953cc79b407a4b49d33b1126dc
  171. https://github.com/adafruit/Adafruit_CCS811
  172. https://github.com/knolleary/pubsubclient.git#2d228f2f862a95846c65a8518c79f48dfc8f188c
  173. https://github.com/rlogiacco/CircularBuffer
  174. https://github.com/Links2004/arduinoWebSockets
  175. [env:esp32moisture]
  176. platform = platformio/espressif32@3.5.0
  177. board = esp32dev
  178. framework = arduino
  179. upload_protocol = esptool
  180. upload_port = /dev/ttyUSB1
  181. monitor_port = /dev/ttyUSB1
  182. monitor_speed = 115200
  183. build_flags =
  184. -DSENSOR_HOSTNAME_PREFIX=\"mst-\"
  185. "-DNAME_OF_FEATURE=\"Moisture Sensor\""
  186. -DENABLE_WEBSOCKETS
  187. -DENABLE_DEBUGLOG
  188. -DMOISTURE_ADC_ESP32
  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:arduinomoisture]
  204. platform = atmelavr
  205. board = uno
  206. framework = arduino
  207. upload_port = /dev/ttyACM0
  208. monitor_port = /dev/ttyACM0
  209. monitor_speed = 115200
  210. build_flags =
  211. -DSENSOR_HOSTNAME_PREFIX=\"mst-\"
  212. "-DNAME_OF_FEATURE=\"Moisture Sensor\""
  213. -DENABLE_BME280
  214. -DMOISTURE_ADC_ARDUINO
  215. -DENABLE_INFLUXDB_LOGGING
  216. -DENABLE_SIMPLE_INFLUX
  217. lib_deps =
  218. Wire
  219. Adafruit Unified Sensor
  220. Adafruit BME280 Library
  221. https://github.com/jandrassy/UnoWiFiDevEdSerial1
  222. https://github.com/jandrassy/arduino-library-wifilink