I added this line just before the end of the first 'if' statement in order to check its activity:
else notify-send "Battery OK"In its current form, I am getting the proper visual notifications every ten seconds and both notification and sound when appropriate but I have noticed that notifications do not always immediately start when I run the script. Still investigating.
