Hi - I am trying to get started with the REST API using Python and need some help. I can get the current observation using the following Python code:
Get Latest Observation
resp = requests.get(‘https://swd.weatherflow.com/swd/rest/observations/station/’ + stationID + ‘?token=’ + token)
if resp.status_code != 200:
print(‘Error accessing station’)
else:
print(resp.json())
However, I don’t understand how to modify this to get a range of observations by passing things like the “obs_air”, “day_offset”, “time_start”, “time_end”, and “format” parameters. Could someone please advise or provide an example?
Thanks!