ESP32 / ESP8266 & BME280 / SHT2x sensor with InfluxDB support
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

platformio.ini 2.8KB

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