ThingPulse / esp8266-weather-station

ESP8266 Weather Station library supporting OpenWeatherMap, Aeris and other sources
MIT License
1.06k stars 359 forks source link

Specify library dependencies in library.properties #176

Closed per1234 closed 4 years ago

per1234 commented 4 years ago

\<Description of and rationale behind this PR> Specifying the library dependencies in the depends field of library.properties causes the Arduino Library Manager (Arduino IDE 1.8.10 and newer) to offer to install any missing dependencies during installation of this library.

arduino-cli lib install will automatically install the dependencies (arduino-cli 0.7.0 and newer).

Reference: https://github.com/arduino/Arduino/wiki/Arduino-IDE-1.5:-Library-specification#libraryproperties-file-format

NOTE: I did not add the ESP8266 and ESP32 OLED driver for SSD1306 displays library because this is not a dependency of the library, but only the library's example sketches. However, if you prefer to also add dependencies for the example sketches, I'm happy to update this PR accordingly.