API retrieving entire history for star, not given period. Is the API working OK?

Affiliation
Svensk Amator Astronomisk Forening, variabelsektionen (Sweden) (SAAF)
Mon, 11/12/2018 - 20:57

Last year I wrote a script that plots light curves for the stars in my program. The script gets data from the AAVSO database by making a call with the following structure, for example for AW Cyg:

https://www.aavso.org/vsx/index.php?view=api.delim&ident="AW Cyg"&fromjd="2457335.36201389"&tojd="2458435.36201389"&delimiter=","

This call retrieves a comma separated list with observations for the last 1100 days (from today)  for the star AW Cyg. The script then makes some manipulation and plots using gnuplot.

This request format has been working OK for about a year, and up to last week. It is even part of a replacement script for LCGv1 that I recently  wrote and shared (LCplot).

However, today I realised that the request retrieves data for the whole span of time for which there is data for any particular star. Apparently the server fails to recognize the given time span (fromjd and tojd). I have tested this many times with the same results. My scripts have not changed since last week when I used them.

Has something changed recently in the request format that I did not pay attention to?

/H.

Affiliation
Vereniging Voor Sterrenkunde, Werkgroep Veranderlijke Sterren (Belgium) (VVS)
Numeric values

Hi,

Some argument values are checked more thoroughly for acceptable values and those do not include double quotes. So it should work for you if you remove the double quotes, at least from the fromjd and tojd arguments.  These arguments have to be numeric.  Adding the double quotes to the delimiter argument actually also includes them in the delimiter, giving a slightly different output format than what you might have intended (only a comma as delimiter).

Patrick

Affiliation
Svensk Amator Astronomisk Forening, variabelsektionen (Sweden) (SAAF)
Solved!

Deleting the double quotes around the dates and delimiter solved the problem. Thank you, Patrick!