Home‎ > ‎

mythweather Australia BOM

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

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

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

bomcurrentdat.pl retrieves the current weather conditions from a text file. This file is updated hourly.

au_bom$ ./bomcurrentdat.pl -l Bus

"Busselton"::Busselton, Australia
"Bus'nJetty"::Busselton Jetty, Australia

"Bus'n Ap"::Busselton Ap, Australia

"Bushy Park"::Bushy Park, Australia

au_bom$ ./bomcurrentdat.pl -u SI "Bus'n Ap"

station_id::Bus'n Ap
cclocation::Busselton Ap, Australia

latitude::3369

longitude::11540

observation_time::Tue 31 Dec, 12:00 PM WST

observation_time_rfc822::Tuesday, 31 Dec 2013 04:00:00 GMT

wind_dir::SW

wind_speed::12

wind_spdgst::12

wind_gust::12

wind_string::From the SW at 12 KPH

temp::24

temperature_string::24 C

relative_humidity::41

pressure::1005

pressure_string::1005.1 hPa

visibility::NA

weather::NA

appt::NA

wind_degrees::NA

dewpoint_string::NA

dewpoint::NA

heat_index_string::NA

heat_index::NA

windchill_string::NA

windchill::NA

weather_icon::unknown.png

updatetime::Tue 31 Dec, 12:00 PM WST

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

copyrightlogo::none

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

bomsixdaydat.pl retrieves the forcast 6 days including the current day. Also can be used for 3 day forcast.

au_bom$ ./bomsixdaydat.pl -l Busselton

009603::Busselton WA, Australia

au_bom$ ./bomsixdaydat.pl -u SI 009603
copyright::©Bureau of Meteorology. http://www.bom.gov.au/other/copyright.shtml

station_id::009603
3dlocation::Busselton, Australia

6dlocation::Busselton, Australia

date-0::Tuesday

icon-0::lshowers.png

date-1::Wednesday

icon-1::showers.png

date-2::Thursday

icon-2::showers.png

date-3::Friday

icon-3::pcloudy.png

date-4::Saturday

icon-4::sunny.png

date-5::Sunday

icon-5::sunny.png

low-0::NA

low-1::14

low-2::14

low-3::14

low-4::13

low-5::14

high-0::25

high-1::25

high-2::24

high-3::25

high-4::26

high-5::29

updatetime::Tue 31 Dec, 10:38 AM WST

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

copyrightlogo::none

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