Skip to content

Instantly share code, notes, and snippets.

@alirobe
Last active May 17, 2016 05:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alirobe/40bafe261076cac43d3dccbb5df1e7ba to your computer and use it in GitHub Desktop.
Save alirobe/40bafe261076cac43d3dccbb5df1e7ba to your computer and use it in GitHub Desktop.
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