diff --git a/src/local/fetch-dashboard.sh b/src/local/fetch-dashboard.sh index 812ba89..835def7 100755 --- a/src/local/fetch-dashboard.sh +++ b/src/local/fetch-dashboard.sh @@ -1,4 +1,4 @@ #!/usr/bin/env sh # Fetch a new dashboard image, make sure to output it to "$1". # For example: -$(dirname $0)/../ht -d -q -o "$1" get https://raw.githubusercontent.com/pascalw/kindle-dash/master/example/example.png +$(dirname $0)/../ht -d -q -o "$1" get ${2:-"https://raw.githubusercontent.com/pascalw/kindle-dash/master/example/example.png"} diff --git a/src/test.sh b/src/test.sh new file mode 100644 index 0000000..24d1291 --- /dev/null +++ b/src/test.sh @@ -0,0 +1,11 @@ +DIR="$(dirname $0)" +DASH_PNG="$DIR/dash.png" +FETCH_DASHBOARD_CMD="$DIR/local/fetch-dashboard.sh" + +echo "Refreshing dashboard" +"$DIR/wait-for-wifi.sh" + +"$FETCH_DASHBOARD_CMD" "$DASH_PNG" $1 + +echo "Full screen refresh" +/usr/sbin/eips -f -g "$DASH_PNG"