MIT App Inventor 2 Location Services: Local Weather Forecast
Вставка
- Опубліковано 6 лют 2025
- After obtaining a current location using Location Services and displaying it on a map, that current latitude and longitude is first used to obtain the AccuWeather index location through an API call, and then the index location is used in another API call to AccuWeather (developer.accu...) to obtain the local weather forecast and display it.
00:05 What does it take to obtain the weather forecast for a GPS-found location?
00:57 A preview of the app display
01:41 Designer Space components
04:24 Code Blocks / Coding
05:35 Use Location Sensor to obtain and map a current location and its city and country
07:27 Call the AccuWeather free API to obtain a location index
08:51 Retrieve the location index and use it to call the AccuWeather API to obtain the weather forecast for that location
11:44 Retrieve the weather data as a JSON structure and parse it to read and display the forecast day and time, weather condition, min and max temperatures, humidity, and precipitation
16:54 Demonstrate the local weather forecast app