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.9KB

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