Read the statement by Michael Teeuw here.
MM Windows 11 install - 3rd party modules won't work
-
Hi there,
I installed MagicMirror on a Windows 11 laptop device to see if a small Windows device would work. I followed the installation directions from the MM documentation. Everything worked right away except the Calendar default module, I wasn’t worried about it at the moment.I started to install KristjanESPERANTO/MMM-OneCallWeather. Got my API key set the basic settings and it just says it’s loading, but nothing happens. I get one error and it says it’s unauthorized. I go and try it on a Raspberry Pi and it works great.
I’m trying to figure out if there is something i missed with the Windows install. I did the Node.js install, the Git install, and went to the Vendor and Fonts directories and did the npm install also.
When I did this “Install the application: npm run install-mm” it didn’t work. I took off the -mm and that worked. Is that the issue? Thanks for any help you can give me with this.
-
Kristjan, can you help here?
-
Update:
I found an error in the log:
[2025-05-27 19:59:04.742] [ERROR] [MMM-OneCallWeather] Error: Unauthorized
I’m not sure why I’m getting this, I triple check my API key and it’s correct. I hope that helps someone to help me resolve this.Thank you for any help you can give me!
-
@lvolkjr Show us the config of the module from the windows machine. Did you write
apikey
orapiKey
? -
{ module: "MMM-OneCallWeather", position: "top_right", header: "Weather in San Ramon", config: { latitude: "37.76470886457069", // Longitude from https://www.latlong.net/ longitude: "-121.9619230575287", // Longitude from https://www.latlong.net/ apikey: "*mysecretkey*", // openweathermap.org API key iconset: "4a", // Icon set to use. iconsetFormat: "png", // File format of the icons. } },
I just copied what you had on the example and then plugged in my information. I tried apiKey, because I was using apikey from the beginning, but still get the same error.
-
@lvolkjr please always use code block around config entries, else the quote marks are changed and anyone copying the text will get junk. it also keeps the indentation of the source
to use code block
paste text into message editor, blank line above and below
select the text just pasted
hit the </> button to wrap in a code blockfor info
code block is three backtics in a row starting in column 1 on line by itself, start and end of the blockbacktic is lowercase left of the 1 key on US keyboard
-
@lvolkjr I copied your config and changed to my apikey and it worked as expected… (On windows 11)
maybe you have missed a character in the apikey at the start or end on a copy/paste -
@sdetweil Thank you for all your help, I’ll be sure to use the Code Block in the future.
I’ll have to go back to the default weather module, as the firewall I’m behind won’t let me use the OpenWeathermap api. It took me a while to figure out, but I found out what the issue was.
Thanks again, Sam!
-
-
@lvolkjr the default weather module, using the OpenWeather provider uses the same api url…