Weather Information Extension

How to Whether info setup in my apps please help anyone

there is no extension needed...
use a RESTful Weather API of your choice and access it using the web component
here is a list of APIs https://www.programmableweb.com/category/all/apis?keyword=weather
to learn how to work with the web component see chapter 24 of the book below...

A very good way to learn App Inventor is to read the free Inventor's Manual here in the AI2 free online eBook http://www.appinventor.org/book2 ... the links are at the bottom of the Web page. The book 'teaches' users how to program with AI2 blocks.
There is a free programming course here http://www.appinventor.org/content/CourseInABox/Intro and the aia files for the projects in the book are here: http://www.appinventor.org/bookFiles
How to do a lot of basic things with App Inventor are described here: http://www.appinventor.org/content/howDoYou/eventHandling .

Also do the tutorials http://appinventor.mit.edu/explore/ai2/tutorials.html to learn the basics of App Inventor, then try something and follow the Top 5 Tips: How to learn App Inventor

Taifun


Trying to push the limits! Snippets, Tutorials and Extensions from Pura Vida Apps by icon24 Taifun.

2 Likes

I found a free API at https://www.weatherapi.com/. It gives you current weather data, astronomy data, sports data, and even hourly data, air quality data and more!

For example, if you want to get the current data in JSON format, all you need to do is to register your account and get a free API key and then use this link below to get text with a Web component.

Base URL: https://api.weatherapi.com/v1/current.json

If your API key is AICODE and you want to get weather data about Hong Kong, the Web link should be this (for current.json, parameters key and q are required, representing your API key and the location respectively):

https://api.weatherapi.com/v1/current.json?key=AICODE&q=Hong Kong/

This is a sample link, which DOES NOT work at all because the API key AICODE does not exist.

3 Likes

NOTE TO VIEWERS OF THIS THREAD: WeatherAPI no longer offers the free plan to new users of their service. You must pay for a premium plan.

I believe they still do...I signed up for a free account and I received an API key, with 1,000,000 calls. I still see the free plan on their website's Pricing dashboard.

You are right, it changed again.