Skip to content

Instantly share code, notes, and snippets.

@alirobe

alirobe/bom-cron.sh

Last active May 17, 2016
Embed
What would you like to do?
simple cron job that downloads weather forecasts from australian bureau of meteorology
# This script downloads weather forecasts from BOM
# Please ensure you comply with their usage terms and copyright...
# & to keep up with changes to this API
# - follow BOM here: https://data.gov.au/organization/bureauofmeteorology
# - star and fork this gist.
# New South Wales and ACT
curl ftp://ftp2.bom.gov.au/anon/gen/fwo/IDN11060.xml > NSW-ACT.xml
# Victoria
curl ftp://ftp2.bom.gov.au/anon/gen/fwo/IDV10753.xml > VIC.xml
# Queensland
curl ftp://ftp2.bom.gov.au/anon/gen/fwo/IDQ11295.xml > QLD.xml
# South Australia
curl ftp://ftp2.bom.gov.au/anon/gen/fwo/IDS10044.xml > SA.xml
# Western Australia
curl ftp://ftp2.bom.gov.au/anon/gen/fwo/IDQ11295.xml > WA.xml
# Tasmania
curl ftp://ftp2.bom.gov.au/anon/gen/fwo/IDD10207.xml > TAS.xml
# NT
curl ftp://ftp2.bom.gov.au/anon/gen/fwo/IDD10207.xml > NT.xml
# Location DB
curl ftp://ftp.bom.gov.au/anon/home/adfd/spatial/IDM00013.dbf > locationDB.dbf
# this will work as a windows shell file too - just install curl and add to PATH
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment