Rain history from API

Hi, I’m almost complete on my 2nd generate website using pure javascript/html/css, I want to know if it’s possible to get any history from the API, just like the app has.

1 Like

You can’t get the history values direct from the API, but the API has all the data you need to calculate the values yourself

Thanks Peter, is that in the Get Observations? I keep getting device not found?

status_code 404
status_message “NOT FOUND”

This topic might help you.

Sunny suggests clicking API at the top of this page to goto the Tempest help about the API. from there you should be able to experiment with http calls to the API for your device. Not the station, but your Tempest device id. And depending on the time period you request the data is returned in different detail with 24 hour period returning 1min data. Larger time periods summerise the results into larger chunks. I am not at my computer atm to experiment for you which is why I pointed you to that topic. There are other topics which also discuss it but I found experimenting with the API link above was the best help.
Your project sounds great I would love to see a screen capture, and hear how you tackled it.
Cheers Ian :slight_smile:

Thanks, all good now!

1 Like