Survey123: Using Pulldata to Access Open Weather/MSN Weather Parameters

8671
11
Jump to solution
01-11-2021 01:57 PM
dgray
by
Regular Contributor

Hello,

 

I would like some help in getting Survey123 to populate attribute fields with weather parameters.  It looks like there used to be a document on how to do this, but it’s no longer available. 

 

https://community.esri.com/t5/arcgis-survey123-questions/using-pulldata-to-gather-live-weather-data/...

 

This site points to another link with some instructions:

https://community.esri.com/t5/arcgis-survey123-blog/extending-survey123-smart-forms-with-custom-js-f...

 

It looks like MSN Weather also has parameters:

https://docs.microsoft.com/en-gb/connectors/msnweather/

Open Weather has this information:

https://openweathermap.org/api/one-call-api#how

However, I’m unfamiliar with Javascript, and don’t know how to apply this information to my specific problem.  I need a step-by-step breakdown of how to use a pulldata function to get parameters either from Open Weather or MSN Weather, showing a specific javascript code example that I can use as a model from which to copy.  The actual pulldata function is straightforward, but I need help mostly with the JS part.

0 Kudos
11 Replies
MT_JenAmes
Frequent Contributor

Has anybody had luck with having accurate information from OpenWeather? I am successfully pulling info into my form, but values are way off. For example, Accuweather is telling me that temp is 17 C, but my pulldata from OpenWeater is saying 26 C, and the map on OpenWeather reads the nearest city as 15 C. Nearly all of the other values that I'm getting populating my form are off also. Any ideas?

0 Kudos
WilliamRockwell1
Regular Contributor

I found this topic painfully hard to come by. Even more frustrating was that I set this up years ago in a survey (2019), and now that same workflow does't work.

Anyway, I know a lot of topics here are on OpenWeather, but I built on an existing solution from @IsmaelChivite using NOAA data. While this solution worked, I needed current weather data.

0 Kudos