Open mabznz opened 7 years ago
@elidana Ok, curl is quite magic when you look hard. This works for a site to produce the three csv's but is still cli.
curl -s -H "Accept: plain/text;version=1" "https://fits.geonet.org.nz/observation?typeID={e,n,u}&siteID=HOLD&networkID=CG" -o "HOLD_#1.csv"
Even Better
curl -s -H "Accept: plain/text;version=1" "https://fits.geonet.org.nz/observation?typeID={e,n,u}&siteID={HOLD,PALI}&networkID=CG" -o "#2_#1.csv"
curl -s -H "Accept: plain/text;version=1" "https://fits.geonet.org.nz/observation?typeID={e,n,u}&siteID=HOLD&networkID=CG" -o "HOLD_#1.csv"
Where typeID is derived from which type plots we are showing and siteID is derived from Site clicked on.
There is push back on this one around strategy on consistent data access site.