You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Not entirely sure where the bug lies here, but using the provided update.sh diff to append the current battery level to the webhook causes the battery life of the kindle to be cut in half (at minimum).
This happens for me on two different kindles (both PW4), both with new batteries.
...
if [ 1 -eq $CONNECTED ]; then
- if wget -q $IMAGE_URI -O $TMPFILE; then
+ batteryLevel=`/usr/bin/powerd_test -s | awk -F: '/Battery Level/ {print substr($2, 0, length($2)-1) - 0}'`
+ isCharging=`/usr/bin/powerd_test -s | awk -F: '/Charging/ {print substr($2,2,length($2))}'`
+ if wget -q "$IMAGE_URI?batteryLevel=$batteryLevel&isCharging=$isCharging" -O $TMPFILE; then
mv $TMPFILE $SCREENSAVERFILE
logger "Screen saver image updated"
...
I'm unclear if this is an issue with my particular KUAL cocktail, but I'm curious if anyone else is seeing this issue?
If so, updating once per day or similar might be a good balance, reading/storing the 'sent' state in an env variable.
The text was updated successfully, but these errors were encountered:
Not entirely sure where the bug lies here, but using the provided
update.sh
diff to append the current battery level to the webhook causes the battery life of the kindle to be cut in half (at minimum).This happens for me on two different kindles (both PW4), both with new batteries.
I'm unclear if this is an issue with my particular KUAL cocktail, but I'm curious if anyone else is seeing this issue?
If so, updating once per day or similar might be a good balance, reading/storing the 'sent' state in an env variable.
The text was updated successfully, but these errors were encountered: