script #1 runs everyday at 4PM and sends all the cases closed but unsynced to the server
script #2 runs every minute and sends all the cases closed for more than 25 hours that have not yet been sent to the server
huge caveat : the raspberry pi does not have a physical clock. Meaning, everytime it loses power, it does not know what time it is until it gets the time from the internet