No idea but... If you are so keen on writing scripts, why don't you write another one. A cron job to log the current voltage every 5 minutes. Then you will know what the last voltage was before the log stopped.