Skip to main content

VSP API returning same image and ignoring "prinatable" variable

dario111cro
dario111cro's picture
Offline
Joined: 2011-06-19

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

Add a resolution as well
Herr_Alien
Herr_Alien's picture
Offline
Joined: 2012-04-24

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&printable=yes&resolution=150

Documentation should be updated
dario111cro
dario111cro's picture
Offline
Joined: 2011-06-19

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.

AAVSO 49 Bay State Rd. Cambridge, MA 02138 aavso@aavso.org 617-354-0484