March-30th-2021, 06:37 AM
Hello Tad,
this API reference is the wrong API for you because this it the API of netPIs UI. What you need is the Docker API supported by the separated Docker icon and service provided by portainer.io which is described here https://forum.hilscher.com/thread-369.html.
In this thread you find also a wonderful Node-RED flow as example which you can use to access your netPI from an external PC for example where you have a running Node-RED. The first thing you have to do after you copied the flow is to go use the injections nodes stepwise. So start with STEP 1 using the node-red function node "OPEN ME ... to set your credentials" and enter all you relevant parameters of your netPI like IP address, username, password, your docker repo "hilschernetpi/netpi-raspbian" for example, your tag like "latest", docker username and password (optional) and the registry you want to pull from like the official Docker Hub registry "registry.hub.docker.com". This node-red function node stores all this in a global variable.
After that you can use all the other injection nodes STEP X wise.
Thx
Armin
this API reference is the wrong API for you because this it the API of netPIs UI. What you need is the Docker API supported by the separated Docker icon and service provided by portainer.io which is described here https://forum.hilscher.com/thread-369.html.
In this thread you find also a wonderful Node-RED flow as example which you can use to access your netPI from an external PC for example where you have a running Node-RED. The first thing you have to do after you copied the flow is to go use the injections nodes stepwise. So start with STEP 1 using the node-red function node "OPEN ME ... to set your credentials" and enter all you relevant parameters of your netPI like IP address, username, password, your docker repo "hilschernetpi/netpi-raspbian" for example, your tag like "latest", docker username and password (optional) and the registry you want to pull from like the official Docker Hub registry "registry.hub.docker.com". This node-red function node stores all this in a global variable.
After that you can use all the other injection nodes STEP X wise.
Thx
Armin
„You never fail until you stop trying.“, Albert Einstein (1879 - 1955)