Etension—Climate Data

The Climate Data extension enables you to obtain real-time weather forecast. You can choose a city and obtain its real-time weather data, including the temperature, humidity, and air quality.

Add the Climate Data extension

1. Click the Sprites tab and click + extension at the bottom of the Blocks area.

1596678324368-09d85f7e-60ff-4c06-b35c-189b1765b5bc.png

2. On the Extension center page that appears, click + Add at the bottom of Climate Data.

1596704745320-644949f2-7a77-4341-8098-76559cb9f0f8.png

After being added, the extension and its blocks are displayed in the Blocks area.

1596704821716-0b69b5e8-1ec7-44b1-808b-228e3d1f755c.png

Use the Climate Data blocks

Try to use Climate Data blocks. Create a project and program Panda to be your private weather reporter.

Ensure that Panda is selected.

1596704579326-e982c76c-7be9-4238-a76a-523e3443ef13.png

1. Drag the Events block when (space) key pressed to the Scripts area.

1596704579197-77a9f9da-18ac-4e15-b722-5c490edbbd74.png

2. Drag the Looks block say ( ) to the Scripts area.

1596704579210-c1d1dffb-ac2f-4717-83a3-60321352425e.png

3. Drag the Climate Data block (city) weather to the Scripts area, set the city to Shenzhen, and click OK.

1596704928082-8c48f723-201d-43ea-ba5c-2a24da66df35.png

1596704578467-f8b3f354-c03e-42a6-b5b4-06f684802025.png

4. Press the space key and see what happens.

1596704579221-bb804c95-1f21-4b4a-a8b1-12bbd4b2a9d1.png

Was this article helpful?
1 out of 2 found this helpful

Comments

0 comments

Please sign in to leave a comment.