Skip to main content

VSP API returning same image and ignoring "prinatable" variable

3 posts / 0 new
Last post
dario111cro
dario111cro's picture
VSP API returning same image and ignoring "prinatable" variable

Hello all,

Today I have noticed that Variable Star Plotter API is returning same image and completly ingnoring "printable" parameter.

Example request:

http://www.aavso.org/cgi-bin/vsp.pl?name=ss+cyg&forcelines=on&fov=60&printable=no
http://www.aavso.org/cgi-bin/vsp.pl?name=ss+cyg&forcelines=on&fov=60&printable=yes

Those two request are returning same image of selected FOV, while first one should return 75dpi and second one 150dpi version of image. Also, sending request to:

http://www.aavso.org/vsp/chart?name=ss+cyg&forcelines=on&fov=60&printable=yes

Returns broken page. I guess that png image is injected into HTML and not returned for itself.

Regards,
Dario

Herr_Alien
Herr_Alien's picture
Add a resolution as well

Hi,

If you add a resolution query string attribute then things should work:

http://www.aavso.org/cgi-bin/vsp.pl?name=ss+cyg&forcelines=on&fov=60&pri...resolution=150

dario111cro
dario111cro's picture
Documentation should be updated

Thank you for workaround. :) It will be very helpful to display higher resolution charts in software.

So, problem is easily solvable, but I think that documentation should describe that parameter. Also, documentation part which says: "If yes is specified, it will have a resolution of 150dpi and the header and footer HTML code will not be displayed." should be edited or API itself should be fixed.

Log in to post comments
AAVSO 49 Bay State Rd. Cambridge, MA 02138 aavso@aavso.org 617-354-0484