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

ALL different menus with ALL the different services you see in your web browser and all the different settings you are able to change as a human by clicking/checking/updating them with your mouse can be changed in an automated way.

What you must know is that the web browser uses exaclty the same RESTApi to control the settings as you can do it via a remote program like Node-RED. Effectively there is no difference in the view of netPI who is calling it. This is why I can say ... if you as a human in the web browser are able to change a setting manually ... then you can change the same setting with a remote program.

Now comes the best part ... if you are uncertain how exactly the RESTApi is exactly working, like the log file thing ... then use the web browser record function to record the web browser's RESTApi calls while you are clicking your mouse. It records all GET and POST etc. https RESTApi calls for you and then you can watch and analyse them afterwards and see exactly the URL called, the parameters in the request and in the response of the messages. The only thing you have to do then is to move those parameters to your specific Node-RED nodes and you will get the very same result. For this recording function you have to enable the debug/developer function in your web browser.

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

  Reply


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
RE: Accessing netPI web UI with REST API - by tad - June-10th-2021, 01:40 PM
RE: Accessing netPI web UI with REST API - by tad - June-25th-2021, 09:06 AM
RE: Accessing netPI web UI with REST API - by tad - June-28th-2021, 07:41 AM
RE: Accessing netPI web UI with REST API - by tad - June-30th-2021, 03:57 AM
RE: Accessing netPI web UI with REST API - by Armin@netPI - June-30th-2021, 05:06 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  REST API server data communication MGharat 2 2,512 July-21st-2021, 07:01 AM
Last Post: MGharat
  Get host MAC via REST API inside container bschandra 4 3,735 November-16th-2020, 09:26 AM
Last Post: bschandra
  Accessing a modbus device connected to RTE port from Node-RED tad 10 8,160 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 2,838 January-31st-2020, 07:07 AM
Last Post: Armin@netPI
Information netPI Docker REST API patrick 1 3,431 July-16th-2019, 02:45 PM
Last Post: patrick
  Accessing Docker daemon through remote CLI adeeljsid 2 3,521 August-30th-2018, 12:32 PM
Last Post: Armin@netPI

Forum Jump:


Users browsing this thread: 2 Guest(s)