Select to view content in your preferred language

Update on OpenWeather integration

479
1
10-17-2024 02:16 PM
JamesTedrick
Esri Esteemed Contributor
5 1 479

One of the uses for pulldata('@javascript') has been to integrate with 3rd-party APIs to import additional data into a form submission.  One of the early integration patterns we showed (and included for a time as a sample) was the OpenWeather API.  The OpenWeather API used in the early sample (2.5) is retiring on October 22.  If you are using the old OpenWeather API, please refer to OpenWeather's guide.  For the Survey123 script, the following adjustments will need to be made:

  • Update the OpenWeather URL to https://api.openweathermap.org/data/3.0/onecall
  • If extracting specific values in the script, please review the Matching parameters table to ensure that the correct value for the parameter in the 3.0 API is references.  In some cases, the path to the property may have changed. Otherwise, review the table for properties being extracted via pulldata('@json') functions in the form.
1 Comment
abureaux
MVP Frequent Contributor

Thanks for the heads-up!

Now all I need to do is remember where I used this API 😅

Contributors
About the Author
I work on the Survey123 team. Please note that I do not use the private messages feature in Esri Community; if you need to reach me, feel free to e-mail jtedrick@esri.com .