304992be59
new manual weather configuration based on a http://en.wikipedia.org/wiki/St%C3%BCve_diagram Stuve (Stüve) Diagram. work in progress, up to now it's just displaying current weather, edits are not yet written to fg.
27 lines
812 B
JavaScript
27 lines
812 B
JavaScript
define([
|
|
'knockout', 'text!./Environment.html', './SubtopicViewmodel'
|
|
], function(ko, htmlString, SubtopicViewmodel) {
|
|
ko.components.register('Environment/Date & Time', {
|
|
require : 'topics/Environment/DateTime'
|
|
});
|
|
|
|
ko.components.register('Environment/Weather', {
|
|
require : 'topics/Environment/Weather2'
|
|
});
|
|
|
|
ko.components.register('Environment/Position', {
|
|
require : 'topics/Environment/Position'
|
|
});
|
|
|
|
// Return component definition
|
|
return {
|
|
viewModel : {
|
|
createViewModel : function(params, componentInfo) {
|
|
return new SubtopicViewmodel([
|
|
'Date & Time', 'Weather', 'Position',
|
|
], "Environment", params);
|
|
},
|
|
},
|
|
template : htmlString
|
|
};
|
|
});
|