• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Automatic setup of NetPI (for production)
#2
Hello Martin,

your option with the SD card copy will not work. Each image is personalized for each netPI. So an image from one netPI will not start on any other, since netPI CPU chip has a different MAC-Address and CPU serial number and the values are checked during boot times against the ones found on the image.

But there another way to do it. You have to use

a.) netPI's RestFul API from your remote application - so it is a simple https request - to do the very same handling as you do manually in your web browser like login, password, time setup, enable docker. We discusses this topic already here https://forum.hilscher.com/Thread-Managi...ns-1-1-4-0
b.) User the RestFul API of portainer Web-UI for docker to deploy the containers. We discussed this topic already here https://forum.hilscher.com/Thread-netPI-...s-V1-1-4-0

If you want to debug the RestFul API right aways with your present netPI for a quick check then use your web-browser e.g. firefox and you can visualize all telegrams the browser is sending/receiving to/from netPI if you active the "web developer" menu item and then watch the network traffic recorded. If your remote application would now send/receive the very same telegrams you can do everything what the browser does controlled by your clicks with your application instead.

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

  Reply


Messages In This Thread
Automatic setup of NetPI (for production) - by Martin Serik - December-12th-2019, 02:10 PM
RE: Automatic setup of NetPI (for production) - by Armin@netPI - December-12th-2019, 02:43 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Initial Setup of Control Panel with admin + admin thorws error Michi 4 2,905 January-28th-2022, 09:28 AM
Last Post: Michi
  netPI setup procedure tad 1 2,166 March-15th-2021, 05:48 AM
Last Post: Armin@netPI
  Setup trusted Docker registry on a Raspberry Pi to host netPI containers Armin@netPI 12 12,848 January-31st-2019, 06:47 PM
Last Post: Armin@netPI
  Automatic setup of the netPI PBulach 1 2,561 April-27th-2018, 11:32 AM
Last Post: Armin@netPI
  Problems with NTP setup adeeljsid 4 3,668 March-17th-2018, 06:42 AM
Last Post: Armin@netPI
  NTP setup (Network time protocol) zulliger@software-natives.ch 1 2,637 February-7th-2018, 09:05 PM
Last Post: Armin@netPI

Forum Jump:


Users browsing this thread: 1 Guest(s)