I have emoncms installed on my EmonBase. I would like to be able to leave a browser window up with my data in it at all times. Unfortunately, after a while, it forces me to log in again, and then navigate back to my display.
Is there anything I can set to have it keep me logged in all the time, or to set the timeout to some long value?
I looked a bit at the .php code but I couldn’t find it.
What sort of data are you trying to view? If you’re viewing an app or dashboard they can be accessed via the read-only API in the URL. You can bookmark this URL including your R/O API key for easy access:
The APP URL with R/O API Key is generated when the app is viewed, just bookmark it
you can find your read apikey on your account page.
The easy way to do it is go to the account page and click “copy” for the read apikey, then navigate to the dash you wish to bookmark. Click into the end of the dash’s url (in the browser bar) and add “&apikey=” then paste your apikey and enter. Now when you bookmark the page, it should have your apikey attached and still be accessible once you have logged out of emoncms.
As far as I recall, the rememberme will reset if you reboot. It’s is only intended to prevent the session timing out, I’m pretty sure a new session will be need to be started if rebooted.
Thank you. Adding the apikey query string appears to work.
My pi reboots automatically once a day. I have it do that that because I recently discovered a bunch of data missing and no more being logged, and rebooting it got the logging going again.