saabman / BOMAU-weather

Magic Mirror module for Bureau of Meterology weather data Australia

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Module: BOMAU-weather

The BOMAU-weather module is a modification to the WB-weather module which was designed to complement the WallberryTheme module and displays the current weather and forecast.

This started out as just an attempt to utilize the Australian Bureau of Meterology data in place of DarkSky data but due to the number of changes required I have spun it out into a modudle on its own. The Wallberry Theme is available from https://github.com/delightedCrow/WallberryTheme

Using the module

To use this module, add it to the modules array in the config/config.js file:

modules: [
	{
		module: "BOMAU-weather",
		position: "bottom_bar",  // Highly suggested location
		config: {
			// See "Configuration options" for more information.
			forecastSource: "link to source data",
			stationID: "BOM StationID",
			
		}
	}
]

Configuration options

The following properties can be configured:

Option Type Description
forecastSource String forcast XML file location.

stationID String Station ID for the required location.

roundTemp Boolean Round temperature value to nearest integer.

Possible values: true (round to integer) or false (display exact value with decimal point)
Default value: true
language String What language to use. Full language list available at DarkSky API docs (language parameter).

Possible values: en, nl, ru, etc...
Default value: uses value of config.language
daysToForecast Number How many days to forecast in weekly forecast.

Possible values: 0 - 8
Default value: 4
updateInterval Number How often to fetch new weather data. (Milliseconds)

Default value: 600000 (10 minutes)

Getting the details for the forecast location is a bit of a complicated affair.

From www.bom.gov.au select the detailed 7 day forecast and scroll to the bottom of the screen where you will find the station id number

About

Magic Mirror module for Bureau of Meterology weather data Australia


Languages

Language:JavaScript 82.1%Language:CSS 9.2%Language:HTML 8.7%