Hello,
I am working with ESP-SensairShuttle, have not found much about Arduino IDE integration for this hardware. With a help of Claude Code (I am not professional) I created a library to integrate this board to Arduino IDE, if anybody is interested here it is:
SilvestrTk/ESP-SensairShuttle-ArduinoIDE: Simple custom libraries for ESP-SensairShuttle used in Arduino IDE
Are there any other solutions? I assume we can use the default ESP32C5 module + relevant sensor libraries but looking for something more compact for this specific board.
Silvestr
Can you provide more info how you reach to this error? Version of Arduino IDE?
What steps did you do to install this?
I did a normal library install from zip.
After looking at the files in the zip, I can see it is not a library.
Here are some examples of a proper library; there are a few variations. Notice the difference (both are acceptable) of the library source, either in a src directory or in the library directory.
I think I see the issue. In the Github repo there are actually two directories one is a library itself and other is project using this library. If you install only the zip of the library, it works (at least for me)
Maybe you should split it so people will be able to do a normal install. OR just put the project in the examples folder of the library like others do.
I don't see a zip of just the library; your github link is just a bunch of source code. Even if I move the 'project' example to the library examples, it still fails as there is no library.properties file, and if you look at some libraries, you will see there are a few other files normally present; I just don't know which are mandatory, but I suspect the Arduino documentation re 'How to create a library' would be instructive.
Your post 5 is at a minimum misleading. I used your link, and I showed you the result. I do not know how you created post 5, but it wasn't a library install.
Sure, thanks for feedback. I might split the project and the library.
If you look in the repo, there is the library.properties file...
For me it works, it installs correctly and project compiles and works. If it will be helpful for somebody, there is the source if not, that is okay. :)
I did a new download in case you changed something. I had to zip the library in order to use the IDE installer, but it still fails.
Have you submitted it to Arduino for inclusion in library manager, when you do they can likely point out what you need to change. I had a very quick look at the Arduino docs about creating a library, and nothing jumped out at me.
Good luck.
In the case where a library is not available for installation via Library Manager, it is common for users to obtain the library using GitHub's "Download ZIP" feature. This downloads an archive file of the entire repository.
Arduino IDE has an "Add .ZIP Library..." feature, which allows the user to install a library from a ZIP archive file. In order to use an archive with this feature, the library must be located directly under the root folder of the archive.
You have placed your library under a SensairShuttle subfolder in the repository:
https://github.com/SilvestrTk/ESP-SensairShuttle-ArduinoIDE/tree/main/SensairShuttle
This makes the archive file provided by GitHub unsuitable for use with Arduino IDE's Add .ZIP Library.... This is the cause of the error @sonofcy encountered:
If you would like to make it easy for people to install your library, you should move it to a dedicated repository, as @sonofcy already recommended. This would also be required if you wanted to distribute the library through the Arduino Library Manager:
https://github.com/arduino/library-registry/blob/main/FAQ.md#what-are-the-requirements-for-a-library-to-be-added-to-library-manager
The library.properties file must be located in the root of the repository.
Thanks for the constructive feedback.
I separated the project, now the repo is just the library, tried to install it using the ZIP archive. Successfully.
https://github.com/SilvestrTk/SensairShuttle
It also compiles the examples (using Arduino IDE 2.3.7 under Windows).
Still work in progress though :)