ESP32 / ESP8266 & BME280 / SHT2x sensor with InfluxDB support
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

platformio.ini 6.0KB

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