Hilscher Community Forum
Automatic setup of the netPI - Printable Version

+- Hilscher Community Forum (https://forum.hilscher.com)
+-- Forum: netPI 3 - Docker featuring Industrial Raspberry Pi 3 platform (https://forum.hilscher.com/forum-1.html)
+--- Forum: Software (https://forum.hilscher.com/forum-5.html)
+--- Thread: Automatic setup of the netPI (/thread-216.html)



Automatic setup of the netPI - PBulach - April-27th-2018

Hello,

as we need to setup some more netPi the question came up if there is a possibility of creating a script which will be automatically executed to setup the netPi.
(e.g. Load the Docker, setup the security, setup the network and so on..)

Best Regards
Patrick Bulach


Answer - Armin@netPI - April-27th-2018

Hello Partick,


netPI has a web UI a human is normally doing the configurationĀ in a web browser session. But I can tell you that all commands called from a web browser can be "called" automated from remote over Ethernet from any other station if all the http(s) RESTapi commands are known.

The first recommendation I can give to you is a browser action recorder that replays made actions again and again. This can be used to make an automated rollout.
All you have to do is to install the CBA tool into Google Chrome browser. With it you can record all actions needed and then replay them later. Here is the tool that integrates into Chrome is 1 minute: https://chrome.google.com/webstore/detail/chromium-browser-automati/jmbmjnojfkcohdpkpjmeeijckfbebbon?hl=en



The more complex recommended way is to write your own http(s) client application that is sending the relevant commands to the netPI. For that purpose you can review the http:// actions made by Chromium or Firefox and rewrite them in your own application and call them all from remote automated. This will work too. How you do it is described here: https://forum.hilscher.com/thread-317.html



Regards

Armin