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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  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:esp8266env]
  11. platform = espressif8266
  12. board = esp01_1m
  13. framework = arduino
  14. build_flags =
  15. -DSENSOR_HOSTNAME_PREFIX=\"env-\"
  16. -DENABLE_CCS811
  17. -DENABLE_INFLUXDB_LOGGING
  18. -DENABLE_MQTT
  19. lib_deps =
  20. Wire
  21. ESP8266 Influxdb
  22. Adafruit Unified Sensor
  23. Adafruit BME280 Library
  24. https://github.com/adafruit/Adafruit_CCS811
  25. https://github.com/knolleary/pubsubclient.git#2d228f2f862a95846c65a8518c79f48dfc8f188c
  26. https://github.com/rlogiacco/CircularBuffer
  27. https://github.com/Links2004/arduinoWebSockets
  28. [env:esp8266relais]
  29. platform = espressif8266
  30. board = esp01_1m
  31. framework = arduino
  32. build_flags =
  33. -DSENSOR_HOSTNAME_PREFIX=\"relais-\"
  34. -DRELAIS_SERIAL
  35. -DENABLE_INFLUXDB_LOGGING
  36. -DENABLE_MQTT
  37. lib_deps =
  38. Wire
  39. ESP8266 Influxdb
  40. Adafruit Unified Sensor
  41. Adafruit BME280 Library
  42. https://github.com/knolleary/pubsubclient.git#2d228f2f862a95846c65a8518c79f48dfc8f188c
  43. https://github.com/rlogiacco/CircularBuffer
  44. https://github.com/Links2004/arduinoWebSockets
  45. [env:esp32env]
  46. platform = platformio/espressif32@3.5.0
  47. board = esp32dev
  48. framework = arduino
  49. upload_protocol = esptool
  50. upload_port = /dev/ttyUSB1
  51. monitor_port = /dev/ttyUSB1
  52. monitor_speed = 115200
  53. build_flags =
  54. -DSENSOR_HOSTNAME_PREFIX=\"env-\"
  55. -DENABLE_CCS811
  56. -DENABLE_INFLUXDB_LOGGING
  57. -DENABLE_MQTT
  58. lib_deps =
  59. Wire
  60. Adafruit Unified Sensor
  61. Adafruit BME280 Library
  62. https://github.com/tobiasschuerg/InfluxDB-Client-for-Arduino.git#66ed5d031caab6953cc79b407a4b49d33b1126dc
  63. https://github.com/adafruit/Adafruit_CCS811
  64. https://github.com/knolleary/pubsubclient.git#2d228f2f862a95846c65a8518c79f48dfc8f188c
  65. https://github.com/rlogiacco/CircularBuffer
  66. https://github.com/Links2004/arduinoWebSockets
  67. [env:esp32moisture]
  68. platform = platformio/espressif32@3.5.0
  69. board = esp32dev
  70. framework = arduino
  71. upload_protocol = esptool
  72. upload_port = /dev/ttyUSB1
  73. monitor_port = /dev/ttyUSB1
  74. monitor_speed = 115200
  75. build_flags =
  76. -DSENSOR_HOSTNAME_PREFIX=\"env-\"
  77. -DMOISTURE_ADC_ESP32
  78. -DENABLE_CCS811
  79. -DENABLE_INFLUXDB_LOGGING
  80. -DENABLE_MQTT
  81. lib_deps =
  82. Wire
  83. Adafruit Unified Sensor
  84. Adafruit BME280 Library
  85. https://github.com/tobiasschuerg/InfluxDB-Client-for-Arduino.git#66ed5d031caab6953cc79b407a4b49d33b1126dc
  86. https://github.com/adafruit/Adafruit_CCS811
  87. https://github.com/knolleary/pubsubclient.git#2d228f2f862a95846c65a8518c79f48dfc8f188c
  88. https://github.com/rlogiacco/CircularBuffer
  89. https://github.com/Links2004/arduinoWebSockets
  90. [env:arduinomoisture]
  91. platform = atmelavr
  92. board = uno
  93. framework = arduino
  94. upload_port = /dev/ttyACM0
  95. monitor_port = /dev/ttyACM0
  96. monitor_speed = 115200
  97. build_flags =
  98. -DSENSOR_HOSTNAME_PREFIX=\"env-\"
  99. -DMOISTURE_ADC_ARDUINO
  100. -DENABLE_INFLUXDB_LOGGING
  101. lib_deps =
  102. Wire
  103. Adafruit Unified Sensor
  104. Adafruit BME280 Library
  105. https://github.com/jandrassy/UnoWiFiDevEdSerial1
  106. https://github.com/jandrassy/arduino-library-wifilink