Hi everyone,
I’ve created a model and I’m trying to use the EI API to automate the process of deployment a bit.
More specifically
-
Use the API to retrain the model after I add some new data (using Ingestion). This works although I have to poll the job status to find out when it’s finished and get the logs on end.
-
Use the
https://docs.edgeimpulse.com/reference#buildondevicemodeljob
to build the on-device model. This also seems to work. Same way as before, poll for job end and get logs. -
What I’m having trouble with is then download part, using
https://studio.edgeimpulse.com/v1/api/projectId/deployment/download
. I do get a “zip” file with the contentNo deployment exists, did you build yet?
I can’t find any help on how to use these 2 calls together to successfully build & download an arduino library zip locally so I can automate the build process in PlatformIO.
Also, on the documentation side, it’s not really clear what the options are for building & downloading, e.g type, modelType.
Any help would be greatly appreciated!
Cheers,
Spiros