Apr-08-2021, 10:26 PM
I understand that. I have not needed to do the tare because I am processing the raw data on the device that gets the data. I know what a full and empty keg's numbers should be, so I just have Tasker do the math. When I change out the keg, I verify the full value, double check the empty value.
What I like about the cron job is that I can make adjustments on the fly without having to kill the looping task. I also won't have to disable it in the crontab -e and reboot. It will simply run the latest edit on time. Since I am still tweaking this, this is the better option for me, as I am editing this a few times per day. With the time.sleep(580), the LEDs are only dark for a few seconds. I expect I will bump that to 590 after I witness how long the lights really are out. Ideally, it would only be a second when all is done.
What I like about the cron job is that I can make adjustments on the fly without having to kill the looping task. I also won't have to disable it in the crontab -e and reboot. It will simply run the latest edit on time. Since I am still tweaking this, this is the better option for me, as I am editing this a few times per day. With the time.sleep(580), the LEDs are only dark for a few seconds. I expect I will bump that to 590 after I witness how long the lights really are out. Ideally, it would only be a second when all is done.