mysolar will not work with Read API key?

I've noticed that if I want to use the mysolar app without login I have to use the Write API key on the URL and the Read API key doesn't work. I don't know enough about the underlying functions and data access to guess why this is. Anyone know off-hand where the problem is?

TrystanLea's picture

Re: mysolar will not work with Read API key?

Hello Peter, good point, historically I did it this way because of a need to maintain the user write session when the app is viewed while logged in. But you're right. If you're sharing the dashboard, it's not ideal to share the write apikey, and it would be good to be able to use the read apikey.

I've changed the implementation of the version on emoncms.org to support this. I will merge changes into the 9.0 branch soon. Here's the version on emoncms.org for now: https://github.com/emoncms/app/tree/dev_grid_co2

Peter Galbavy's picture

Re: mysolar will not work with Read API key?

Thanks for the quick response. I will drag the changes in locally and try it

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.