Accessing air_temp_today_high

Hi,

I’ve started work on a Java app for my Tempest weather info. When I add the ob_field query parameter ( air_temp_today_high ) to my request string to get the station observations, the script runs successfully for current conditions but always returns a null value for any daily high or low parameter.

Below is a copy of the code…

HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create(“https://swd.weatherflow.com/swd/rest/observations/stn/157615?bucket=30&ob_fields=air_temp_today_high&units_temp=f&units_wind=mps&units_pressure=mb&units_precip=mm&units_distance=km&api_key=e2f04564-f8af-49cd-a856-6da318652ea2”))
.header(“accept”, “application/json”)
.method(“GET”, HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());

Thanks for any advice you can offer…

Rudy

if you try this https://swd.weatherflow.com/swd/rest/observations/stn/157615?bucket=30&units_temp=f&units_wind=mps&units_pressure=mb&units_precip=mm&units_distance=km&api_key=e2f04564-f8af-49cd-a856-6da318652ea2 you’ll see that air_temp_today_high is not one of the observations it returns. It is more an analysis of the values during the day than it is an observation.

1 Like