Version of OpenWeatherOneCall on repo is 2.0.2, should be 3.1.0

Hi,

Platformio’s library registry version of OpenWeatherOneCall is 2.0.2. According to a reply with the maintainer, it seems the issue is on the library repo side:

https://github.com/JHershey69/OpenWeatherOneCall/issues/33

The library.json manifest contains an unknown key board

that may cause the PIO registry to reject the library.

CC ivankravets, https://platformio.org/lib/show/7247/OpenWeatherOneCall

1 Like

Okay no the library manifest is definitely unparsable with an additional error in the repository field, when doing a global library install of the git version, it immediately crashes because repository is supposed to be one object, not an array (docs).

>pio lib -g install https://github.com/JHershey69/OpenWeatherOneCall/archive/refs/heads/master.zip
Library Storage: C:\Users\Max\.platformio\lib
Library Manager: Installing https://github.com/JHershey69/OpenWeatherOneCall/archive/refs/heads/master.zip
Downloading...
Error: Traceback (most recent call last):
[...]
  File "c:\users\max\appdata\local\programs\python\python38\lib\site-packages\platformio\package\manifest\parser.py", line 155, in __init__
    self._data = self.normalize_repository(self._data)
  File "c:\users\max\appdata\local\programs\python\python38\lib\site-packages\platformio\package\manifest\parser.py", line 213, in normalize_repository
    url = (data.get("repository") or {}).get("url")
AttributeError: 'list' object has no attribute 'get'

============================================================

Until the fix is merged, please include the fixed fork of the library as follows in the platformio.ini:

lib_deps =
   https://github.com/maxgerhardt/OpenWeatherOneCall/archive/refs/heads/master.zip

(or if you have git installed, just with the https://github.com/maxgerhardt/OpenWeatherOneCall.git URL)

Thanks, I saw you already proactively fixed and notified them. Great work!

@ivankravets can you please retrigger the crawler for https://platformio.org/lib/show/7247/OpenWeatherOneCall? The PR for the library.json fix was merged but no change in the recognized versions.

1 Like

Thanks, updated! https://platformio.org/lib/show/7247/OpenWeatherOneCall