Weather API Tutorial question

Trying to follow openweather API tutorial: Weather API | Getting Started | Particle

I understand the API call shown in the tutorial has been deprecated. The API 3.0 to be used per their support. Would it be possible to update the tutorial to reflect this change? Will save me a lot of time to get started.

@sunder,

Great question.

If you saw Spectra yesterday, there was an announcement that would be quite relevant here: Logic and Ledger.

If you were going to build this integration today, it would make sense to look at this new capability.

You can sign up for beta access here:

Hope this helps,

Chip

2 Likes

All you need to do is change the 2.5 to 3.0 in the OpenAPI weather URL. The billing is different for 3.0 so you need an API key that is set up to use 3.0 instead of 2.5, but the data fields are the same.

4 Likes

@rickkas7 Thanks for the reply. It's clear.

@rickkas7 Here's the problem I ran into:

The tutorial subsequent steps like creating the webhook and copying JSON to custom field depend on the result of the first step API call. Since this fails, I don't know how to create the custom JSON field in the create webhook step.

I added a popup menu just below where you enter the API key to select API version 2.5 or 3.0. This affects both the webhook configuration and the in-page weather API interactive examples.

2 Likes

That worked. Thank you!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.