gpdaniels / spike-prime

Experiments with the LEGO Mindstorms (51515) and SPIKE Prime (45678)
MIT License
282 stars 39 forks source link

Add official api docs #9

Closed pitust closed 3 years ago

pitust commented 3 years ago

Python lego mindstorms has some official docs. Could they be added here? (just pull them out of the apk)

gpdaniels commented 3 years ago

Sure the docs for each release could definitely be added here. It'd be nice to see how they change between versions.

I'm not sure how to extract them from the Mindstorms apk, but I can probably extract them from the windows SPIKE Prime apps.

pitust commented 3 years ago

I know how to pull them out of the APK: a) get split_asset_pack.apk b) unpack assets/webapp/static/knowledge c) you are done!

gpdaniels commented 3 years ago

From the SPIKE Prime apps the app.asar archive contains the reference under the path: ./app/renderer/static/knowledge/*

gpdaniels commented 3 years ago

Lego have done this for us! Although their docs are still missing a lot of the hub functionality.

https://lego.github.io/MINDSTORMS-Robot-Inventor-hub-API/