Read the statement by Michael Teeuw here.
Struggling with Weather... module
-
apiBase commented out in config.
server restart, and browser log request, showing loaded weather modules
i still have “loading” in module locationlooking at source gives me the impression that i need to go and look at 2 more .js files. Previously i have been working with /default/weather/ukmetofficedatahub.js and /MagicMirror/config/config.js
ill see if thes hold any info:
/root/MagicMirror/modules/default/weather/weatherproviders.js
(Edit: //weather provider properties: null, modified to:
)/root/MagicMirror/modules/default/weather/weather.js
(Edit: this file is set to “openweathermap”, changing to “ukmetofficedatahub”)
server restart, no effect noted :(
-
-
@D3dl3g you ONLY setup from config.js
please try with NO apibase set
-
weather.js and weatherprovider.js i have set back to defaults.
i have set config.js as requested
weatherProvider: 'ukmetofficedatahub', lat: "52.###############", long: "-1.###############", //apiBase: 'https://api-metoffice.apiconnect.ibmcloud.com/v0/forecasts/point/daily/', apiKey: 'e52#############################', apiSecret: 'd3a#############################',
the result:-
-
@D3dl3g send me your API key… config from config.js via email or direct message so I can debug
did u look in the browser messages?
my email is my same userid at gmail
-
Just to update the forum, as to what happened behind closed doors
Sam kindly tested my code, and it worked for him.
I am recieving browser errors (previously requested but i wasnt looking in the right bit of the browser window)… he is not
Issues Tab
Console Tab
the last 5 entries here will reoccur, im guessing at every “retry” for weather infoattempted to use
useCorsProxy: true
to no availSam kindly posted into git hub issues.
https://github.com/MichMich/MagicMirror/issues/271 -
tested
ukmetofficehub
and it works out of the box (without setting theuseCorsProxy
flag).Looking into the provided config
weatherProvider: 'ukmetofficedatahub', lat: "52.###############", long: "-1.###############",
which is messed up. It has to be:
weatherProvider: 'ukmetofficedatahub', lat: 52.###############, lon: -1.###############,
-
@karsten13 I tested w those in quotes, and it worked ok
-
did only test without, but there is another error
lon
vs.long
… -
@karsten13 I just copy pasted and it worked.
weird