Skip to content

A D3 widget for retrieving and displaying live weather data from an updating XML file.

License

Notifications You must be signed in to change notification settings

marc-white/Weather-Panel

Repository files navigation

This weatherpanel is currently implemented at http://www.mso.anu.edu.au/metdata.

The code that initialises the weather panel follows this pattern:

// Initialise system once DOM is ready
var debugmode = false;

$(document).ready( function() {
		   window.SSOmetdata = new telescopeMet(telescopeName);
		   $('#scope').text('Human telescope name'); // Rename the header tag to the current telescope name
		   window.SSOweatherPanel = new weatherPanel(SSOmetdata); // Create the panel
		   window.SSOmetdata.updateData(function() { SSOweatherPanel.updatePanel(); }) // Initial data push
		   window.SSOweatherPanel.startTimer(59000); // Start the timer
})

About

A D3 widget for retrieving and displaying live weather data from an updating XML file.

Resources

License

Stars

Watchers

Forks

Packages