Bureau of Meteorology weather data: Difference between revisions
Jump to navigation
Jump to search
| Line 20: | Line 20: | ||
=== Find Bureau of Meteorology API for daily weather forecast data === | === Find Bureau of Meteorology API for daily weather forecast data === | ||
* Open a Web Browser. | * Open a Web Browser. | ||
* Enter the search term weather.bom.gov.au | * Enter the search term '''weather.bom.gov.au''' | ||
[[File:Screen Shot 2022-01-01 at 8.39.18 am.png]] | |||
* Select '''Melbourne VIC''' as the weather location. | |||
[[File:Screen Shot 2022-01-01 at 8.40.09 am.png]] | |||
* Ensure that '''Development Tools''' is selected under '''Preferences''' for your Browser settings. | |||
* Under the '''Develop''' menu select '''Connect Web Inspector'''. | |||
* This will open up an addition window to show some of the inner-workings of the web page. | |||
[[File:Screen Shot 2022-01-01 at 8.41.27 am.png]] | |||
* In the Development Tools window click on the '''Network Tab'''. | |||
* '''Refresh''' the web browser. | |||
* In the window on the left search for a file named '''daily''' | |||
* Daily holds data related to current and future weather forecasts including '''7 day rain predictions'''. | |||
* You can scroll in the '''Previous''' window to see all the retrieved data presented in JSON format. | |||
[[File:Screen Shot 2022-01-01 at 8.43.00 am.png]] | |||
* If the mouse hovers over daily the '''link to the API''' will appear. | |||
* In this instance it is - '''https://api.weather.bom.gov.au/v1/locations/r1r0fs/forecasts/daily''' | |||
* You can copy this link and enter it into a Web Browser to test that it works. | |||
Revision as of 21:43, 31 December 2021
Overview
- The aim of this lesson is to learn how to retrieve weather data from the Bureau of Meteorology (BOM) using an API (Application Programming Interface).
- An API is simply a URL that will automatically request data from a server.
- In this example we will extract rain data from the daily weather forecast.
- The daily weather forecast includes rain forecast data up to 7 days in advance.
- We will use this data for our smart rainwater tank.
- Smart rainwater tanks need to know rain events up to 7 days in advance so that they can discharge tank water before a storm arrives.
Learning Objectives
- Learn how to use the Developer tools in a Web Browser to find an API
- Learn how to use an API with HTTP Request node in Node-Red
- Learn how to extract data from a larger data sets using the function node
- Learn how to prepare data for a chart node
Obtaining BOM rain forecast data
- This lesson will demonstrate how to extract data from the Bureau of Meterology using an API (Application Programming Interface).
Find Bureau of Meteorology API for daily weather forecast data
- Open a Web Browser.
- Enter the search term weather.bom.gov.au
- Select Melbourne VIC as the weather location.
- Ensure that Development Tools is selected under Preferences for your Browser settings.
- Under the Develop menu select Connect Web Inspector.
- This will open up an addition window to show some of the inner-workings of the web page.
- In the Development Tools window click on the Network Tab.
- Refresh the web browser.
- In the window on the left search for a file named daily
- Daily holds data related to current and future weather forecasts including 7 day rain predictions.
- You can scroll in the Previous window to see all the retrieved data presented in JSON format.
- If the mouse hovers over daily the link to the API will appear.
- In this instance it is - https://api.weather.bom.gov.au/v1/locations/r1r0fs/forecasts/daily
- You can copy this link and enter it into a Web Browser to test that it works.




