• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Accessing netPI web UI with REST API
Well Tad,

the netPI main Web-UI, control panel etc. was developed 100% by Hilscher. So it has a separate API as described in this current thread-317. So you could setup the time, network configuration, enable/disable services like Docker and so on.

But the Docker functionality was 100% not developed by Hilscher. We have just added Docker and portainer.io to the netPI OS and put the nginx reverse proxy to its front. This means in turn that also the very official API of portainer.io was also implemented implicitly and this is why controlling Docker is in accordance to thread-369.

Since Node-RED can run under Windows https://nodered.org/docs/getting-started/windows this is an easy evaluation method for anyone who has an PC to check the API. I agree of course since Node-RED can run on any machine that also a second netPI with installed Node-RED could be used. But this needs a second hardware which might be a problem for some customers.

The thread-369 uses Node-RED as example which is for a non-programmer better to understand. Of course a real Linux programmer would never use Node-RED to access the API but more a C-coded program or Linux commands like "curl" to access the REST-Api. But Node-RED is a good starter. With netPI we use portainer 1.20.1 and its very official API documentation is located here https://app.swaggerhub.com/apis/devianto...ner/1.20.1. So you see this is not Hilscher specific but 100% portainer.io.

You never fail until you stop trying.“, Albert Einstein (1879 - 1955)


Messages In This Thread
Accessing netPI web UI with REST API - by Armin@netPI - September-5th-2018, 03:45 PM
RE: Accessing netPI web GUI with HTTP REST - by Armin@netPI - September-11th-2018, 06:51 AM
RE: Accessing netPI web GUI with HTTP REST - by tad - March-30th-2021, 02:50 AM
RE: Accessing netPI web GUI with HTTP REST - by tad - March-30th-2021, 07:18 AM
RE: Accessing netPI web UI with REST API - by Armin@netPI - March-30th-2021, 07:45 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Get host MAC via REST API inside container bschandra 4 951 November-16th-2020, 09:26 AM
Last Post: bschandra
  Accessing a modbus device connected to RTE port from Node-RED tad 10 1,800 October-2nd-2020, 07:21 AM
Last Post: Armin@netPI
  Web browser reports "insecure connection" when accessing netPI for the first time Armin@netPI 2 828 January-31st-2020, 07:07 AM
Last Post: Armin@netPI
Information netPI Docker REST API patrick 1 1,124 July-16th-2019, 02:45 PM
Last Post: patrick
  Accessing Docker daemon through remote CLI adeeljsid 2 1,031 August-30th-2018, 12:32 PM
Last Post: Armin@netPI

Forum Jump:

Users browsing this thread: 1 Guest(s)