The first screenshot is when my user is logged-in. It works fine. The second screenshot is the graph when my user is not logged-in (using an Incognito Window in Chrome).
The URL that is begin used in both cases (logged-in and not logged-in) is:
http://energia.crcibernetica.com/bborncr
The error message that appears in /var/log/apache2/error.log is (this error only appears when not logged-in):
PHP Notice: Undefined index: write in /var/www/emoncms/Modules/feed/feed_controller.php on line 72, referer: http://energia.crcibernetica.com/vis/realtime?embed=1&feedid=1
Line 71-72 of /var/www/emoncms/Modules/feed/feed_controller.php is the following:
// write session required
if ($session['write'] && $session['userid']>0 && $f['userid']==$session['userid'])
-----------
I have seen posts of similar issues but no response. Any ideas?
Re: Public graphs don't display data when not logged in
Are the feeds which are used by the graphs set as public?
Paul
Re: Public graphs don't display data when not logged in
Yes, attached is the screenshot.
Re: Public graphs don't display data when not logged in
This is a known issue for real time graph.
You can edit your dashboard manually to add the parameter apikey in the http request for the realtime graph. Or remove the 2 apikeys mention in the the data.json requests in the realtime.php file.
Re: Public graphs don't display data when not logged in
I used the second workaround and it works just fine.
Thanks,