PlatformIO Community

Help adding a Library

I have a Library that is in GitHub for some time now, but still has not been added to the registry.
Can some one please help me fix what ever is that needs fixing in order for it to be addad by the crowler ?

URL: https://github.com/RoiEf/DwD

10X

1 Like

What command did you use to register it? I hope

pio lib register https://raw.githubusercontent.com/RoiEf/DwD/master/library.json

? Then you just have to wait a bit more, manifest looks valid to me.

2 Likes

I have been downloading libraries and adding them to the project’s /lib folder. I usually have to restart PIO, but they get recognized.

Different library “problem”.

The op, @roi.efrati, appears to have a library that is desired to be part of the official PlatformIO list of approved libraries.

Cheers,
Norm.

@maxgerhardt
I was not awware that I needed a command in order to register a library.
In any case, I have triad your command eg. “pio lib register https://raw.githubusercontent.com/RoiEf/DwD/master/library.jso
but got the error:
“Error: [API] Method Not Allowed”

@NormanDunbar
Exactly.
It’s a small but usefull library that I think that a lot of developers, espacially beginners, can benefit from.

@Monsterthews
Why not use platformio.ini for this?
for example, when I want to include this specific library I add:
lib_deps =
;DwD
https://github.com/RoiEf/DwD.git

Actually I’m behind the times here – the new platform registry has already deprecated that command in favor for package publishing.

$ pio lib register https://raw.githubusercontent.com/RoiEf/DwD/master/library.json
Error: This command is deprecated. Please use `pio package publish` command.

Also make sure that you have a recent PIO release version, using pio upgrade to update it.

The new package publishing system binds the packages (which can be libraries, platforms, frameworks, …) to your PIO account. This is separate from your PlatformIO community account.

Check the documentation at https://docs.platformio.org/en/latest/core/userguide/account/index.html and https://docs.platformio.org/en/latest/core/userguide/package/index.html on how to do it (account creation, login, package file creation, package file publihsing).

I can’t publish the package for you because it would then be bound to my account of course :smiley: