MCPcopy
hub / github.com/MagicMirrorOrg/MagicMirror / initialize

Method initialize

defaultmodules/weather/providers/yr.js:49–54  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

47 }
48
49 async initialize () {
50 // Yr.no requires max 4 decimal places
51 validateCoordinates(this.config, 4);
52 await this.#fetchStellarData();
53 this.#initializeFetcher();
54 }
55
56 setCallbacks (onData, onError) {
57 this.onDataCallback = onData;

Callers 14

initWeatherProviderFunction · 0.45
smhi_spec.jsFile · 0.45
openmeteo_spec.jsFile · 0.45
yr_spec.jsFile · 0.45
weathergov_spec.jsFile · 0.45
weatherapi_spec.jsFile · 0.45
weatherbit_spec.jsFile · 0.45
buienradar_spec.jsFile · 0.45

Calls 3

#fetchStellarDataMethod · 0.95
#initializeFetcherMethod · 0.95
validateCoordinatesFunction · 0.85

Tested by

no test coverage detected