Skip to main content

Australian Weather Data (using bom.gov.au)

Project description

Australian Weather Data (using bom.gov.au)

Access to the Australian Bureau of Meteorology weather data.

Actions Status PyPI

Currently a work in progress!

Disclaimer

This project is not related to or endorsed by the Australian Bureau of Meteorology (BOM).

From the BOM copyright notice: Where no terms of use are associated with a set of material, then you may download, use and copy that material for personal use, or use within your organisation but you may not supply that material to any other person or use it for any commercial purpose.

Usage

Additional examples are in the examples folder.

Sample for Parkville in Melbourne Vic Australia

from weather import place, observations, uv_index

# Parse http://www.bom.gov.au/places/vic/parkville
place_data = place.Place('vic', 'parkville')
print(place_data.acknowedgment)

station_id = place_data.station_id()
print('Station ID',station_id)

air_temperature = place_data.air_temperature()
print('Air Temperature', air_temperature)

forecast = place_data.forecast()
print('Forecast', forecast)


uv_data = uv_index.UvIndex('Vic')
print('\n' + uv_data.acknowedgment)

location_name = 'Melbourne'
uv_message = uv_data.uv_message(uv_data.get_aac(location_name))

print('UV Message for', location_name, uv_message)

Produces output:

Data courtesy of Bureau of Meteorology (http://www.bom.gov.au/places/vic/parkville)
Station ID 95936
Air Temperature 8.6
Forecast {'issued': '4:20 pm AEST on Sunday 8 September 2019', 'date': 'Rest of Sunday', 'precis': 'Showers easing. Windy.'}

Data courtesy of Bureau of Meteorology (ftp://ftp.bom.gov.au/anon/gen/fwo/IDZ00112.xml)
UV Message for Melbourne Sun protection recommended from 10:30 am to  2:00 pm, UV Index predicted to reach 4 [Moderate]

The Forecast dict may also include min and max, depending on the time of day.

URL's

  • Base for anon FTP data ftp://ftp.bom.gov.au/anon/gen/
  • Capital City Observations - VIC - Melbourne (Olympic Park) http://www.bom.gov.au/fwo/IDV60901/IDV60901.95936.json
    • where IDV60901 is the product, and
    • 95936 is the weather station id.
  • Weather Observations - VIC - Melbourne (Olympic Park) http://www.bom.gov.au/fwo/IDV60910/IDV60910.95936.json
  • http://www.bom.gov.au/places/vic/parkville/

Resources

  1. FTP public products
  2. Weather Data Services
  3. How to use BOM API for weather, tide and swell
  4. Github has a number of projects using bom.gov.au data
  5. 256 km Melbourne Radar Loop
  6. Catalogue of RSS Feeds

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

weather-au-0.0.4.tar.gz (5.1 kB view hashes)

Uploaded Source

Built Distribution

weather_au-0.0.4-py3-none-any.whl (18.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page