Getting logged out of API

Hi there

I'm using a script to pull my energy usage from my Glowmarkt and graph it for me. Since I don't like storing my credentials unencrypted, I generate an initial token interactively with

https://api.glowmarkt.com/api/v0-1/auth

and then have my script generate a new token from the old every hour with

https://api.glowmarkt.com/api/v0-1/auth/newToken


That works fine mostly, but quite regularly I get the response:

{"valid":false,"error":"User is not logged in"}

and I have to interactively log in again. This always corresponds with getting logged out of the app on my iPhone as well, most recently at 9:15am today. Is this when the servers get rebooted or similar? Is there any way tokens could be preserved across this event? It means I end up with gaps in my data which have to be manually repopulated

Comments

Sign In or Register to comment.