-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2a8d2c3
commit 3cb9c08
Showing
9 changed files
with
106 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,6 +14,7 @@ services: | |
|
||
nginx: | ||
image: nginx:latest | ||
restart: always | ||
ports: | ||
- "9090:80" | ||
volumes: | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#!/bin/bash | ||
|
||
export XAUTHORITY=/home/pi/.Xauthority | ||
export DISPLAY=:0 | ||
|
||
# Desired window title when the page is fully loaded | ||
EXPECTED_TITLE="hondash.local/" | ||
|
||
# Loop until the window title contains the expected text | ||
while : ; do | ||
# Get the active window's title | ||
WINDOW_TITLE=$(xdotool search --onlyvisible --class "chromium" getwindowname 2>/dev/null) | ||
|
||
# Check if the title matches the expected page title | ||
if [[ "$WINDOW_TITLE" == *"$EXPECTED_TITLE"* ]]; then | ||
echo "Page loaded successfully!" | ||
break | ||
else | ||
# If not, send an F5 to refresh the page and retry | ||
echo "Page not loaded yet. Current title: $WINDOW_TITLE. Retrying..." | ||
xdotool key F5 | ||
fi | ||
|
||
sleep 5 | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
[Unit] | ||
Description=Your Description Here | ||
After=network.target | ||
|
||
[Service] | ||
ExecStart=/bin/bash /home/pi/Desktop/HonDash/installation/refresh.sh | ||
Restart=always | ||
User=pi | ||
Environment=DISPLAY=:0 | ||
Environment=XAUTHORITY=/home/pi/.Xauthority | ||
|
||
[Install] | ||
WantedBy=multi-user.target |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
[Unit] | ||
Description=Chromium Kiosk | ||
After=graphical.target | ||
|
||
[Service] | ||
User=pi | ||
Group=pi | ||
Environment=XAUTHORITY=/home/pi/.Xauthority | ||
Environment=DISPLAY=:0 | ||
ExecStart=/usr/bin/chromium-browser --no-sandbox --disable-gpu --noerrdialogs --disable-infobars --disable-session-crashed-bubble --disable-features=TranslateUI --kiosk --check-for-update-interval=604800 --incognito http://hondash.local | ||
Restart=on-failure | ||
|
||
[Install] | ||
WantedBy=graphical.target |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
[Unit] | ||
Description=HonDash Docker Service | ||
After=local-fs.target | ||
|
||
[Service] | ||
Environment=DISPLAY=:0 | ||
WorkingDirectory=/home/pi/Desktop/HonDash/ | ||
ExecStart=/bin/bash -c 'make run_rpi' | ||
Restart=always | ||
User=pi | ||
StandardOutput=append:/home/pi/Desktop/HonDash/hondash.log | ||
StandardError=append:/home/pi/Desktop/HonDash/hondash.log | ||
|
||
[Install] | ||
WantedBy=multi-user.target |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters