Home‎ > ‎

mythweather Australia BOM

The mythweather scripts using BOM data created by Auric have been updated to work with Mythtv 0.27

Extract the mythtv / BOM scripts tar file into the mythtv directory of your installation, in my case with Debian /usr/share/mythtv

All scripts can be run from the command line to test them. If the location contains a space it needs to be quoted, eg “Port Hedland”. Where required the scripts have been updated so the output stored in the database is quoted. The default output is to /tmp/.bom, over ride by using -d option. Mythtv geneneraly uses $HOME/.mythtv/MythWeather/BOM-$NAME.

bomalert.pl retrieves the UV index for the day.

au_bom$ ./bomalert.pl -l Port

"Port Macquarie"::Port Macquarie
"Devonport"::Devonport

"Port Hedland"::Port Hedland

"Port Pirie"::Port Pirie

"Port Augusta"::Port Augusta

"Port Lincoln"::Port Lincoln

au_bom$ ./bomalert.pl "Port Hedland"
swlocation::Port Hedland
alerts::UV Alert from 8.00 to 16.20 Max: 15
alerts::No Alerts

updatetime::Tue 31 Dec, 11:21 AM WST
copyright::©Bureau of Meteorology. http://www.bom.gov.au/other/copyright.shtml

copyrightlogo::none

bomanimaps.pl retrieves satellite and pressure map images and creates an animated gif, then deletes the downloaded images.

au_bom$ ./bomanimaps.pl -l Australia

Australia_Satellite::Australia_Satellite
Australia_Pressure_Map::Australia_Pressure_Map

au_bom$ ./bomanimaps.pl Australia_Satellite

amdesc::Bureau of Meterology Satellite Map

animatedimage::/tmp/.bom/Australia_Satellite.gif
    >>>>>> image of cyclone Christine moving across WA coast.
updatetime::Tue 31 Dec, 12:24 PM WST

location::Australia

copyright::©Bureau of Meteorology. http://www.bom.gov.au/other/copyright.shtml

copyrightlogo::none

BOM_Curdat.pl retrieves the current weather conditions from a XML file. Now uses a separate XML file for all location information. (Updated 1st March 2016, renamed from bomcurrentdat.pl)


jau_bom$ ./BOM_Curdat.pl -l Busselton
95602::Busselton Jetty, Western Australia, IDW60920.xml
95611::Busselton Airport, Western Australia, IDW60920.xml

au_bom$ ./BOM_Curdat.pl -u SI 95611
station_id::95611
cclocation::Busselton Airport
observation_time::2016-03-02T10:50:00+08:00
latitude::-33.6858
longitude::115.4008
appt::22.0
wind_spdgst::9
temp::23.3
dewpoint::10.0
pressure::1020.4
pressure_string::1020.4
relative_humidity::43
wind_dir::ENE
wind_degrees::59
wind_speed::7
copyright::©Bureau of Meteorology. http://www.bom.gov.au/other/copyright.shtml

bommaps.pl retrieves the latest static radar image, some locations have been change on the BOM site. If your location does not work check the radar on the BOM site and update the reference in the script. See below for new animated version.

au_bom$ ./bommaps.pl -l Broome

IDR173::Broome WA, Australia
au_bom$ ./bommaps.pl IDR173

smdesc::Bureau of Meterology Radar

map::/tmp/.bom/IDR173.gif

updatetime::...

location::Broome WA, Australia

copyright::©Bureau of Meteorology. http://www.bom.gov.au/other/copyright.shtml

copyrightlogo::none

BOM_6Daydat.pl (renamed from bomsixdaydat.pl, 26th Feb 2016) retrieves the forecast for the next 6 days in new XML format files from BOM. Also can be used for 3 day forcast. Now uses a separate XML file for all location information.

au_bom$ ./BOM_6Daydat.pl -l busselton
WA_PT004::Busselton, Western Australia, IDW14199.xml

au_bom$ ./BOM_6Daydat.pl -u SI WA_PT004
station_id::WA_PT004
location::Busselton
3dlocation::Busselton
6dlocation::Busselton
updatetime::Fri Feb 26 19:43:32 2016
copyright::©Bureau of Meteorology. http://www.bom.gov.au/other/copyright.shtml
issue date::2016-02-26T08:00:47Z
Number of elements::45
date-0::Saturday
icon-0::thunshowers.png
rain-0::0 to 0.2 mm
low-0::19
high-0::32
precis-0::Cloud clearing.
prob_rain-0::20%
date-1::Sunday
icon-1::cloudy.png
rain-1::0 mm
low-1::16
high-1::27
precis-1::Cloudy.
prob_rain-1::5%
date-2::Monday
icon-2::lshowers.png
rain-2::0 to 0.4 mm
low-2::13
high-2::25
precis-2::Possible shower developing.
prob_rain-2::40%
date-3::Tuesday
icon-3::pcloudy.png
rain-3::0 mm
low-3::13
high-3::25
precis-3::Partly cloudy.
prob_rain-3::5%
date-4::Wednesday
icon-4::sunny.png
rain-4::0 mm
low-4::12
high-4::28
precis-4::Sunny.
prob_rain-4::0%
date-5::Thursday
icon-5::pcloudy.png
rain-5::0 mm
low-5::14
high-5::29
precis-5::Mostly sunny.
prob_rain-5::0%

bomaniradarmaps.pl retrieves a series of images to create a base image and then creates an animated gif. A standard legend image is overlaid by the background, topography, locations and range images specific to the radar site selected to create a base image. The base image is overlaid by each active content image in turn, these new overlaid images are used to create the animated gif. All downloaded images are deleted so only the base image and the animated gif are stored.

au_bom$ ./bomaniradarmaps.pl -l Weipa

IDR183::Weipa QLD, Australia

au_bom$ ./bomaniradarmaps.pl IDR183
amdesc::Bureau of Meterology Radar Map

animatedimage::/tmp/.bom/IDR183.gif
updatetime::Tue 31 Dec, 12:54 PM WST

location::Weipa QLD, Australia

copyright::©Bureau of Meteorology. http://www.bom.gov.au/other/copyright.shtml

copyrightlogo::none