Skip to content

Commit 0c15a60

Browse files
committed
Test script to quickly test image url
Execution: `/mnt/us/dashboard/test.sh https://example.org/test.png` Executes `wait-for-wifi.sh`, downloads the image using `ht` (like `dash.sh`), and pushes it to the kindle via `eips` Useful to quickly update images for testing purposes without starting the daemon.
1 parent dd1a27c commit 0c15a60

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/test.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
DIR="$(dirname $0)"
2+
DASH_PNG="$DIR/dash.png"
3+
4+
echo "Refreshing dashboard"
5+
"$DIR/wait-for-wifi.sh"
6+
7+
$(dirname $0)/ht -d -q -o "$DASH_PNG" get $1
8+
9+
echo "Full screen refresh"
10+
/usr/sbin/eips -f -g "$DASH_PNG"

0 commit comments

Comments
 (0)