These are chat archives for getredash/redash

17th
Mar 2016
Lloyd Weehuizen
@lloydw
Mar 17 2016 02:41
Screenshot 2016-03-17 15.40.18.png
@AliAlbazaz is that what you're looking for? :)
Arik Fraimovich
@arikfr
Mar 17 2016 07:26
@lloydw :+1:
aviam
@aviam
Mar 17 2016 11:42
Hi, is it there an api for redash ?for example i want to get image of chart with api
Arik Fraimovich
@arikfr
Mar 17 2016 11:43
@aviam there is an API for everything, but we don't support server side rendering (yet)
aviam
@aviam
Mar 17 2016 12:05
if i want to get chart image , i can't?
Arik Fraimovich
@arikfr
Mar 17 2016 12:05
Not at the moment.
aviam
@aviam
Mar 17 2016 12:06
ok, i want to sent an email with dashboard embedded in the email , is it possible?
Arik Fraimovich
@arikfr
Mar 17 2016 12:07
not yet.
This is one of the use cases we want enable by implementing server side rendering.
aviam
@aviam
Mar 17 2016 12:08
so what you recommended to do in this case? i want to send to mangers a dashbord or results of charts for day before
Arik Fraimovich
@arikfr
Mar 17 2016 12:12
@aviam you can use this script (for PhantomJS): https://gist.github.com/arikfr/efd2318cac809b21ee41 along with the embed dashboard feature from 0.10 to generate images from dashboards: getredash/redash#906
aviam
@aviam
Mar 17 2016 12:28
sorry , i didn't understand how to use the script
Arik Fraimovich
@arikfr
Mar 17 2016 12:28
it's a script for http://phantomjs.org/
which you can use to save a snapshot of a page. so you can write a script to generate a snapshot and email it
aviam
@aviam
Mar 17 2016 12:30
ahh , sound like a good workaround
thx
aviam
@aviam
Mar 17 2016 12:53
hello again, it snapshot the login page
although i gave the script the dashboard page
it's need credenatial?
ahha i need public url?
but i'm on re:dash 0.9.1+b1377 version
Arik Fraimovich
@arikfr
Mar 17 2016 12:57
You can either update the phantom script to login and then take a screenshot, or save cookies from your browser and reuse them in the phantom script.
aviam
@aviam
Mar 17 2016 12:58
you have example for that?
Arik Fraimovich
@arikfr
Mar 17 2016 13:00
nope