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.
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.
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.
Yes, a similar question was asked last year:
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.