June-30th-2021, 05:06 AM
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
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)