ESP32 / ESP8266 & BME280 / SHT2x sensor with InfluxDB support
Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

platformio.ini 6.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206
  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/ttyUSB1
  16. monitor_port = /dev/ttyUSB1
  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. lib_ldf_mode = deep
  30. lib_deps =
  31. https://github.com/knolleary/pubsubclient.git#2d228f2f862a95846c65a8518c79f48dfc8f188c
  32. https://github.com/rlogiacco/CircularBuffer.git#f29cf01b6e8603422f3668d51036ac124f803404
  33. https://github.com/Links2004/arduinoWebSockets.git#30d5e136665a52880f641ddd7245b3ba05ecd32b
  34. https://github.com/Bodmer/TFT_eSPI.git#01483a1043a4915c4e34c928fb48a87d3b38a248
  35. https://github.com/PaulStoffregen/XPT2046_Touchscreen.git#5d5120e93ab5d28b3f1db6d754819c354c2da019
  36. [env:esp8266env]
  37. platform = espressif8266
  38. board = esp01_1m
  39. framework = arduino
  40. build_flags =
  41. -DSENSOR_HOSTNAME_PREFIX=\"env-\"
  42. "-DNAME_OF_FEATURE=\"Environment Sensor\""
  43. -DENABLE_WEBSOCKETS
  44. -DENABLE_DEBUGLOG
  45. -DENABLE_BME280
  46. -DENABLE_CCS811
  47. -DENABLE_INFLUXDB_LOGGING
  48. -DUSE_INFLUXDB_LIB
  49. -DENABLE_MQTT
  50. lib_deps =
  51. Wire
  52. ESP8266 Influxdb
  53. Adafruit Unified Sensor
  54. Adafruit BME280 Library
  55. https://github.com/adafruit/Adafruit_CCS811
  56. https://github.com/knolleary/pubsubclient.git#2d228f2f862a95846c65a8518c79f48dfc8f188c
  57. https://github.com/rlogiacco/CircularBuffer
  58. https://github.com/Links2004/arduinoWebSockets
  59. [env:esp8266smallenv]
  60. platform = espressif8266
  61. board = esp01
  62. framework = arduino
  63. build_flags =
  64. -DSENSOR_HOSTNAME_PREFIX=\"env-\"
  65. "-DNAME_OF_FEATURE=\"Environment Sensor\""
  66. -DENABLE_WEBSOCKETS
  67. -DENABLE_DEBUGLOG
  68. -DENABLE_BME280
  69. -DENABLE_CCS811
  70. -DENABLE_INFLUXDB_LOGGING
  71. -DENABLE_SIMPLE_INFLUX
  72. -DENABLE_MQTT
  73. lib_deps =
  74. Wire
  75. Adafruit Unified Sensor
  76. Adafruit BME280 Library
  77. https://github.com/adafruit/Adafruit_CCS811
  78. https://github.com/knolleary/pubsubclient.git#2d228f2f862a95846c65a8518c79f48dfc8f188c
  79. https://github.com/rlogiacco/CircularBuffer
  80. https://github.com/Links2004/arduinoWebSockets
  81. [env:esp8266smallrelais]
  82. platform = espressif8266
  83. board = esp01
  84. framework = arduino
  85. build_flags =
  86. -DSENSOR_HOSTNAME_PREFIX=\"relais-\"
  87. "-DNAME_OF_FEATURE=\"Relais Switch\""
  88. -DENABLE_WEBSOCKETS
  89. -DENABLE_DEBUGLOG
  90. -DENABLE_BME280
  91. -DENABLE_CCS811
  92. -DRELAIS_SERIAL
  93. -DENABLE_MQTT
  94. lib_deps =
  95. Wire
  96. Adafruit Unified Sensor
  97. Adafruit BME280 Library
  98. https://github.com/adafruit/Adafruit_CCS811
  99. https://github.com/knolleary/pubsubclient.git#2d228f2f862a95846c65a8518c79f48dfc8f188c
  100. https://github.com/rlogiacco/CircularBuffer
  101. https://github.com/Links2004/arduinoWebSockets
  102. [env:esp8266relais]
  103. platform = espressif8266
  104. board = esp01_1m
  105. framework = arduino
  106. build_flags =
  107. -DSENSOR_HOSTNAME_PREFIX=\"relais-\"
  108. "-DNAME_OF_FEATURE=\"Relais Switch\""
  109. -DENABLE_WEBSOCKETS
  110. -DENABLE_DEBUGLOG
  111. -DENABLE_BME280
  112. -DRELAIS_SERIAL
  113. -DENABLE_INFLUXDB_LOGGING
  114. -DUSE_INFLUXDB_LIB
  115. -DENABLE_MQTT
  116. lib_deps =
  117. Wire
  118. ESP8266 Influxdb
  119. Adafruit Unified Sensor
  120. Adafruit BME280 Library
  121. https://github.com/knolleary/pubsubclient.git#2d228f2f862a95846c65a8518c79f48dfc8f188c
  122. https://github.com/rlogiacco/CircularBuffer
  123. https://github.com/Links2004/arduinoWebSockets
  124. [env:esp32env]
  125. platform = platformio/espressif32@3.5.0
  126. board = esp32dev
  127. framework = arduino
  128. upload_protocol = esptool
  129. upload_port = /dev/ttyUSB1
  130. monitor_port = /dev/ttyUSB1
  131. monitor_speed = 115200
  132. build_flags =
  133. -DSENSOR_HOSTNAME_PREFIX=\"env-\"
  134. "-DNAME_OF_FEATURE=\"Environment Sensor\""
  135. -DENABLE_WEBSOCKETS
  136. -DENABLE_DEBUGLOG
  137. -DENABLE_BME280
  138. -DENABLE_CCS811
  139. -DENABLE_INFLUXDB_LOGGING
  140. -DUSE_INFLUXDB_LIB
  141. -DENABLE_MQTT
  142. lib_deps =
  143. Wire
  144. Adafruit Unified Sensor
  145. Adafruit BME280 Library
  146. https://github.com/tobiasschuerg/InfluxDB-Client-for-Arduino.git#66ed5d031caab6953cc79b407a4b49d33b1126dc
  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:esp32moisture]
  152. platform = platformio/espressif32@3.5.0
  153. board = esp32dev
  154. framework = arduino
  155. upload_protocol = esptool
  156. upload_port = /dev/ttyUSB1
  157. monitor_port = /dev/ttyUSB1
  158. monitor_speed = 115200
  159. build_flags =
  160. -DSENSOR_HOSTNAME_PREFIX=\"mst-\"
  161. "-DNAME_OF_FEATURE=\"Moisture Sensor\""
  162. -DENABLE_WEBSOCKETS
  163. -DENABLE_DEBUGLOG
  164. -DMOISTURE_ADC_ESP32
  165. -DENABLE_BME280
  166. -DENABLE_CCS811
  167. -DENABLE_INFLUXDB_LOGGING
  168. -DUSE_INFLUXDB_LIB
  169. -DENABLE_MQTT
  170. lib_deps =
  171. Wire
  172. Adafruit Unified Sensor
  173. Adafruit BME280 Library
  174. https://github.com/tobiasschuerg/InfluxDB-Client-for-Arduino.git#66ed5d031caab6953cc79b407a4b49d33b1126dc
  175. https://github.com/adafruit/Adafruit_CCS811
  176. https://github.com/knolleary/pubsubclient.git#2d228f2f862a95846c65a8518c79f48dfc8f188c
  177. https://github.com/rlogiacco/CircularBuffer
  178. https://github.com/Links2004/arduinoWebSockets
  179. [env:arduinomoisture]
  180. platform = atmelavr
  181. board = uno
  182. framework = arduino
  183. upload_port = /dev/ttyACM0
  184. monitor_port = /dev/ttyACM0
  185. monitor_speed = 115200
  186. build_flags =
  187. -DSENSOR_HOSTNAME_PREFIX=\"mst-\"
  188. "-DNAME_OF_FEATURE=\"Moisture Sensor\""
  189. -DENABLE_BME280
  190. -DMOISTURE_ADC_ARDUINO
  191. -DENABLE_INFLUXDB_LOGGING
  192. -DENABLE_SIMPLE_INFLUX
  193. lib_deps =
  194. Wire
  195. Adafruit Unified Sensor
  196. Adafruit BME280 Library
  197. https://github.com/jandrassy/UnoWiFiDevEdSerial1
  198. https://github.com/jandrassy/arduino-library-wifilink