{"record":{"id":"1e674f10e40708d2","repo":"MagicMirrorOrg/MagicMirror","slug":"weather-deprecation-warning-your-are-using-the-1e674f","errorCode":null,"errorMessage":"[weather] Deprecation warning: Your are using the deprecated config values 'useBeaufort'. Please switch to windUnits!","messagePattern":"\\[weather\\] Deprecation warning: Your are using the deprecated config values 'useBeaufort'\\. Please switch to windUnits!","errorType":"console","errorClass":null,"httpStatus":null,"severity":"warning","filePath":"defaultmodules/weather/weather.js","lineNumber":105,"sourceCode":"\t\tif (this.config.appendLocationNameToHeader) {\n\t\t\tconst locationName = this.fetchedLocationName || \"\";\n\n\t\t\tif (this.data.header && locationName) return `${this.data.header} ${locationName}`;\n\t\t\telse if (locationName) return locationName;\n\t\t}\n\n\t\treturn this.data.header ? this.data.header : \"\";\n\t},\n\n\t// Start the weather module.\n\tstart () {\n\t\tmoment.locale(this.config.lang);\n\n\t\tif (this.config.useKmh) {\n\t\t\tLog.warn(\"[weather] Deprecation warning: Your are using the deprecated config values 'useKmh'. Please switch to windUnits!\");\n\t\t\tthis.windUnits = \"kmh\";\n\t\t} else if (this.config.useBeaufort) {\n\t\t\tLog.warn(\"[weather] Deprecation warning: Your are using the deprecated config values 'useBeaufort'. Please switch to windUnits!\");\n\t\t\tthis.windUnits = \"beaufort\";\n\t\t}\n\t\tif (typeof this.config.showHumidity === \"boolean\") {\n\t\t\tLog.warn(\"[weather] Deprecation warning: Please consider updating showHumidity to the new style (config string).\");\n\t\t\tthis.config.showHumidity = this.config.showHumidity ? \"wind\" : \"none\";\n\t\t}\n\n\t\t// All providers run server-side: use stable identifier so reconnects don't spawn duplicate HTTPFetchers\n\t\tthis.instanceId = this.identifier;\n\n\t\tif (window.initWeatherTheme) window.initWeatherTheme(this);\n\n\t\tLog.log(`[weather] Initializing server-side provider with instance ID: ${this.instanceId}`);\n\n\t\tthis.sendSocketNotification(\"INIT_WEATHER\", {\n\t\t\tinstanceId: this.instanceId,\n\t\t\tweatherProvider: this.config.weatherProvider,\n\t\t\t...this.config","sourceCodeStart":87,"sourceCodeEnd":123,"githubUrl":"https://github.com/MagicMirrorOrg/MagicMirror/blob/4b4a59534f7da01e4030e46029fe9dd649a7675e/defaultmodules/weather/weather.js#L87-L123","documentation":"Same deprecation mechanism as useKmh: when the legacy boolean `useBeaufort` is truthy, weather's start() warns and sets windUnits = 'beaufort'. Behavior is preserved but the option will be removed; migrate to `windUnits`.","triggerScenarios":"Config.js weather module config contains `useBeaufort: true`; checked via `else if (this.config.useBeaufort)` in start(), only reached when useKmh is falsy.","commonSituations":"Configs migrated from old modules that displayed Beaufort wind scale; users in UK/IRL-style wind reporting setups copying older example configs.","solutions":["Replace `useBeaufort: true` with `windUnits: \"beaufort\"` in the weather module config.","Remove the obsolete `useBeaufort` key so the check no longer fires.","Restart MagicMirror to verify the warning is gone."],"exampleFix":"// before\nconfig: { weatherProvider: \"openweathermap\", useBeaufort: true }\n// after\nconfig: { weatherProvider: \"openweathermap\", windUnits: \"beaufort\" }","handlingStrategy":"validation","validationCode":"if (\"useBeaufort\" in weatherConfig) {\n  throw new Error(\"useBeaufort is deprecated: use windUnits: 'beaufort'\");\n}","typeGuard":"function usesDeprecatedWindOpts(cfg) {\n  return \"useKmh\" in cfg || \"useBeaufort\" in cfg;\n}","tryCatchPattern":null,"preventionTips":["Replace useBeaufort with windUnits: 'beaufort'.","Keep only one wind-unit mechanism in config to avoid conflicts.","Run a config validation script on startup."],"tags":["deprecation","config","weather"],"backgroundTag":"deprecated-config-option","analyzedSha":"4b4a59534f7da01e4030e46029fe9dd649a7675e","analyzedAt":"2026-08-31T21:49:42.591Z","schemaVersion":2},"datasetVersion":"2026-08-31T22:30:34.772Z"}