From 1f171207d112188c950fb0912f6fb0ab1480b905 Mon Sep 17 00:00:00 2001 From: m8522s <43844394+m8522s@users.noreply.github.com> Date: Thu, 23 Jan 2025 14:55:32 +0100 Subject: [PATCH 1/2] replace {hostname} with the $HOSTNAME system variable --- .../fullpageos/filesystem/opt/custompios/scripts/get_url | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/fullpageos/filesystem/opt/custompios/scripts/get_url b/src/modules/fullpageos/filesystem/opt/custompios/scripts/get_url index 33dc3231..64f919e1 100755 --- a/src/modules/fullpageos/filesystem/opt/custompios/scripts/get_url +++ b/src/modules/fullpageos/filesystem/opt/custompios/scripts/get_url @@ -1,5 +1,5 @@ #!/bin/bash SERIAL=`cat /proc/cpuinfo | grep -i '^Serial' | awk '{ print $3 }'` -URL="$(head -n 1 /boot/firmware/fullpageos.txt | sed -e "s/{serial}/${SERIAL}/g")" +URL="$(head -n 1 /boot/fullpageos.txt | sed -e "s/{serial}/${SERIAL}/g" | sed -e "s/{hostname}/${HOSTNAME}/")" echo $URL From 20bb028e17be086224445d4e30458584de9bca32 Mon Sep 17 00:00:00 2001 From: m8522s <43844394+m8522s@users.noreply.github.com> Date: Thu, 23 Jan 2025 15:19:11 +0100 Subject: [PATCH 2/2] replace {hostname} with the $HOSTNAME system variable --- README.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/README.rst b/README.rst index 226a3ecf..8128eff9 100644 --- a/README.rst +++ b/README.rst @@ -47,6 +47,7 @@ Features * Loads Chromium at boot in full screen * Webpage can be changed from /boot/firmware/fullpageos.txt * You can use variable `{serial}` in the url to get device's serialnumber in the URL + * You can use variable `{hostname}` in the URL to get device's hostname in the URL * Default app is `FullPageDashboard `_, which lets you add multiple tabs changes that switch automatically. * Ships with preconfigured `X11VNC `_, for remote connection (password 'raspberry') * Specify a custom Splashscreen that gets displayed in the booting process instead of Kernel messages/text