Select to view content in your preferred language

Pull Current Weather Temperature in Field Maps Form

854
5
08-21-2023 12:28 PM
DWebb
by
New Contributor II

Is there a way to pull the current weather conditions into a form created in Field Maps? 

I have an inspection form that requires the current location's temperature, and I was seeing if that information could be pulled in when they open a new inspection.  

0 Kudos
5 Replies
KPyne
by
Occasional Contributor

Good question! I am not aware of a baked in method for retrieving external data points. I found this request but looks like it is still under consideration: HTTP Requests in Arcade 

If I had to accomplish this, I would create a layer in AGOL that was updated via Python script every hour or so. Something simple like a Date and Temp column (or whatever other metrics you need).

Then, Arcade could pull the latest row from the table and populate fields that way.

HannesVogel
New Contributor III
hi, i don’t know how to do it in Field Maps directly but you can use applinking with Survey123 and do it there:
https://community.esri.com/t5/arcgis-survey123-questions/survey123-using-pulldata-to-access-open-wea...

the Survey123 data on the other side can also be shown in Field Maps.

0 Kudos
SteveOwens
New Contributor III

You could try connecting with the Surface Weather Observations from the National Weather Service GIS Portal: https://www.weather.gov/gis/. Though it will only show you the near real time conditions at an airport. Lots of other cool data though, worth exploring.

0 Kudos
sjones_esriau
Esri Contributor
0 Kudos
KerriRasmussen
Esri Contributor

Hi and thank you for your question! I used some weather station data from The Living Atlas and added it to my map. Then I used this Arcade expression to pull the temperature from the nearest station: 

var weatherStations = FeatureSetByName($map, "Stations")

var nearestStation = First(Intersects(weatherStations, BufferGeodetic($feature, 10, 'miles')))

return nearestStation.TEMP + "°F"

I hope you find this helpful.