SFE_BMP180.h won't load in Cloud IDE

I have a sketch using the SFE_BMP180.h library built in the 1.8.16 IDE. I successfully imported the library using the zip file from the vendor.
I'm trying my first IOT project using the Cloud IDE and decided to use code that already worked in a previous project.
When I try and import the same library the message I get is "parse library.properties: library.properties not found".
I've also tried zipping my installed library from my local disk but that fails to install as well. I've reviewed the Forum entries for 'fail to load', but I'm unsure if anything listed applies as the import worked successfully with 1.8.16 IDE.
Any help here.

Hi @cgriswold52. The reason why you were able to use the library with Arduino IDE 1.8.16 is because it has support for the older style of Arduino library that lacks the library.properties metadata file.

Arduino Web Editor is not so forgiving. It requires all libraries to contain a library.properties metadata file. In order to import this library into Arduino Web Editor, you'll first need to add this file to the library. You can do that by following these instructions:

  1. Unzip the library's .zip file.
  2. Delete the library's .zip file.
  3. Create a file named library.properties in the library's root folder.
  4. Open the library.properties file in a text editor.
  5. Add text to the file:
    name=SFE_BMP180
    version=0.0.0
    author=SparkFun
    maintainer=SparkFun
    sentence=BMP180 library
    paragraph=
    category=Sensors
    url=http://example.com/
    architectures=*
    
  6. Save the file.
  7. Zip the library folder.
  8. Import the .zip file in Arduino Web Editor.

Please let me know if you have any questions or run into any problems while following those instructions.


If you are curious about this library.properties file, you can learn all about it in the Arduino Library Specification:

https://arduino.github.io/arduino-cli/latest/library-specification/#libraryproperties-file-format

The exact contents of the file aren't so important as long as it has the right format. I pretty much just made some quick guesses to create the content I provided above. It's mainly just the presence of a valid library.properties file that's important.

Thanks. Worked perfectly.

You're welcome. I'm glad it is working now. Enjoy!
Per