NolanKingdon/MMM-MoonPhase

Moon image isn't loading

Closed this issue · 3 comments

I've installed MMM-MoonPhase, but the detailed image isn't loading. If I set it to basic, I get a simple white circle with the shadow superimposed on it, so the module is working. However, if I set it to detailed, I get a blank image. Looking in the developer tools, it's giving an error loading the image.
I've verified that the image is there and that the MMM-MoonPhase.js script ss looking in the right place, as far as I can tell. The error being given is a 404 error, but I don't know why.

Anyone have any thoughts?

Can you post a picture of the error message and the configuration for the module in the config file?

I'm pretty sure the issue isn't anything to do with the module itself. Something's preventing the module from accessing the file, but I don't know what.
I'm attaching screen shots of the error shown in the Dev Tools of MagicMirror2, the module entry in config.js, the relevant section in the MMM-MoonPhase.js, and the directory where my full.png is stored.
It may be something really simple that I'm overlooking, but hopefully someone will catch it.

MoonPhase SS 3
MoonPhase SS 2
MoonPhase SS 4
MoonPhase SS 1

Issue has been resolved. It took some experimenting, but I had to change the moonCanvas.style.background to "url('modules/MMM-MoonPhase/Phases/full.png?raw=true')" and it worked.

So, I'm all good now!