Sheherezadhe / awair-uploader

GNU General Public License v3.0
121 stars 57 forks source link

After 24 hours app stops submitting to PW, must be restarted #36

Open easyperl opened 2 years ago

easyperl commented 2 years ago

Still gets data from Awair (and logs as much) but does not push to PW. Current theory is lack of oauth authentication refreshed. If you restart the app and log in to PW, it will work.

Perhaps logging the push to PW as well would help show when there is a failure on that side of thing?

shadylanebees commented 2 years ago

I had the same problem

psavva commented 2 years ago

Just guessing that that the authentication token will expire after 24 hours... The solution will require that a refresh token is implemented, hence, before the 24 hours is done, a refresh token is requested, and the service should continue to work.

Hbitvof commented 2 years ago

Same problem here. After restart software is also not loading anymore (only see loading, force refresh also not working anymore).

rusdragos commented 2 years ago

After 24 h, data is not sent to PW anymore. Closed- opened the app, logged in and data is pushed again. Since the 24h limit I tend to think of token expiration like @psavva said. Hope this helps.

patrykwegrzyn commented 2 years ago

Same issue here , after restart everything seems to be working again , but i lost 17h of streams

wwadge commented 2 years ago

https://github.com/Sheherezadhe/awair-uploader/pull/46 <-- that one might help