jaroslawhartman / withings-sync

Synchronisation of Withings weight
MIT License
455 stars 89 forks source link

Withings token input timeout? #179

Open leaskovski opened 1 month ago

leaskovski commented 1 month ago

So I have this running fine. I do a "docker run" and get the token for withings sorted, the first sync runs and completes, and then I have a crontab that runs "docker start" every night to sync the latest data. All good! Eventually there is an authorisation issue, and that then requires me to sort out by starting the container in interactive mode. The problem is, I have no idea this is the case until my mrs moans at me that her weight isn't updating.

Now, I would be able to know if things went south by the "docker start" not hanging around after 30 seconds. i.e. if the input that the tool waits for (the auth token), didn't just sit there. The input says that there is a 30 second window to do it, so if after 30 seconds the tool could effectively exit with an error code (maybe the auth error?), then any docker monitoring software could report on this. That way, my zabbix server would report back that a container isn't exiting successfully, and I could action it before the mrs has a moan 🥇

Is that possible?