Getting logged out of API

edited May 2021 in Glow IHD/CAD

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


EDIT: Just realised there's an API forum. I've reposted this message there. Oops

Comments

  • a change of password will log everything out - but otherwise this should not happen.

    Please raise a ticket as soon as it happens again with support@glowmarkt.com - if you give enough details we should be able to find it in the logs (which are kept for a few days)

Sign In or Register to comment.