MagicMirror-Documentation icon indicating copy to clipboard operation
MagicMirror-Documentation copied to clipboard

Documentation correction for default weather module

Open jazz-b opened this issue 1 year ago • 0 comments

On https://docs.magicmirror.builders/modules/weather.html, in the Configuration Options section, under 'UK Met Office (ukmetoffice) options', for the 'apiBase' config option, the 'possible value' displayed is not correct.

The URL displayed starts with https, when it should be http. Using https results in a CORS error, whilst using http results in the weather being displayed as it should.

Note that corroberating information can be found in the overview section at: https://www.metoffice.gov.uk/services/data/datapoint/api-reference

Platform: Raspberry Pi 4 Node Version: 20.0.0 MagicMirror² Version: 2.25.0 My Working Configuration:

{
		module: "weather",
		position: "top_right",
		config: {
				apiBase: "http://datapoint.metoffice.gov.uk/public/data/val/wxfcs/all/json/",
				locationID: 324240,
				apiKey: "SENSITIVE INFO REMOVED",
				weatherProvider: "ukmetoffice",
				type: "daily",
				roundTemp: true,
				degreeLabel: true,
				updateInterval: 21600000, // 21600000 = 6 hours
				showPrecipitationProbability: true
		}
}

jazz-b avatar Nov 01 '23 16:11 jazz-b