kolbyjack / MMM-Wallpaper

MagicMirror module to display wallpapers from various online sources
https://magicmirror.builders/
MIT License
99 stars 31 forks source link

just doesnt work #14

Closed ausheikh closed 4 years ago

ausheikh commented 4 years ago

i added it, nothing happens, what am i doing wrong? { module: "MMM-Wallpaper", position: "fullscreen_below", config: { source: "chromecast", slideInterval: 60 * 1000 // Change slides every minute } },

Andoramb commented 4 years ago

Is your config OK? Have you tried running npm run config:check in MagicMirror directory?

ausheikh commented 4 years ago

i checked, no errors.

On Tue, Apr 21, 2020 at 8:52 PM Andoramb notifications@github.com wrote:

Is your config OK? Have you tried running npm run config:check in MagicMirror directory?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/kolbyjack/MMM-Wallpaper/issues/14#issuecomment-617317271, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACL43ZY72Q5CGUUM2HEEFXDRNXMPTANCNFSM4MNLZ7NQ .

-- Abdullah Umar Sheikh

kolbyjack commented 4 years ago

This isn't really enough information to go on, that looks like a valid configuration, and setting the source to chromecast just worked for me. Can you provide output from the server, and debug console output from the browser?

Andoramb commented 4 years ago

My config is:

{
    module: "MMM-Wallpaper",
    position: "fullscreen_below",
    header: "",
    config: {
            source: ["bing","/r/MoviemaniaHQ","r/wallpapers","/r/MoviePosterPorn", "/r/Museum"],
            slideInterval: 600000, // 1h
            updateInterval: 62*60*1000,
            orientation: "vertical",
            maximumEntries: 15,
            filter: "grayscale(0) brightness(1)",
            maxWidth: 1080,
            maxHeight: 1920,
    }
},

You could try with different sources, to at least get an image, and then maybe debug from there.

Or try to see what's in the logs: for ex. if you're running on Pi, standard setup, with pm2:

/home/pi/.pm2/logs/MagicMirror-error.log
/home/pi/.pm2/logs/MagicMirror-out.log

By the way, @kolbyjack is my source array correct?

kolbyjack commented 4 years ago

You're missing the leading / on /r/wallpapers, but other than that, yes

ausheikh commented 4 years ago

all i see on mm-error.log is [2020-04-21 22:07:33.332] [ERROR] Error: spawn git ENOENT at Process.ChildProcess._handle.onexit (internal/child_process.js:264:19) at onErrorNT (internal/child_process.js:456:16) at processTicksAndRejections (internal/process/task_queues.js:84:9) [2020-04-21 22:17:33.755] [ERROR] Error: spawn git ENOENT at Process.ChildProcess._handle.onexit (internal/child_process.js:264:19) at onErrorNT (internal/child_process.js:456:16) at processTicksAndRejections (internal/process/task_queues.js:84:9)

Not sure if that helps

but my config is { module: "MMM-Wallpaper", position: "fullscreen_below", header: "", config: { source: ["chromecast", "bing"], slideInterval: 60000, updateInterval: 62601000, orientation: "horizontal", maximumEntries: 15, filter: "grayscale(0) brightness(1)", maxWidth: 1920, maxHeight: 1080, } },

On Tue, Apr 21, 2020 at 10:08 PM Andoramb notifications@github.com wrote:

My config is:

{ module: "MMM-Wallpaper", position: "fullscreen_below", header: "", config: { source: ["bing","/r/MoviemaniaHQ","r/wallpapers","/r/MoviePosterPorn", "/r/Museum"], slideInterval: 600000, // 1h updateInterval: 62601000, orientation: "vertical", maximumEntries: 15, filter: "grayscale(0) brightness(1)", maxWidth: 1080, maxHeight: 1920, } },

You could try with different sources, to at least get an image, and then maybe debug from there.

Or try to see what's in the logs: for ex. if you're running on Pi, standard setup, with pm2:

/home/pi/.pm2/logs/MagicMirror-error.log /home/pi/.pm2/logs/MagicMirror-out.log

By the way, @kolbyjack https://github.com/kolbyjack is my source array correct?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/kolbyjack/MMM-Wallpaper/issues/14#issuecomment-617356734, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACL43ZYWOD73PJX3A3IUWF3RNXVJ3ANCNFSM4MNLZ7NQ .

-- Abdullah Umar Sheikh

Andoramb commented 4 years ago

Do you have a working setup by the way? Can you see other modules updating correctly? Which version of MagicMirror do you have?

ausheikh commented 4 years ago

yes, have a working setup. I am new to Magic Mirror, just installed it last week so its on the latest version.

kolbyjack commented 4 years ago

Try commenting out all of your config entries, and just let it use the defaults, and see if that works.

ausheikh commented 4 years ago

I removed all the 'optional' config so it looked like this { module: "MMM-Wallpaper", position: "fullscreen_below", config: { source: "bing", slideInterval: 60000, } }, Still no luck

Andoramb commented 4 years ago

Could you post your whole config.js? try to post it with Insert code. A good practice is to preview it before posting

masonmc commented 4 years ago

Also not working for me. My config file is valid.


{
  module: "MMM-Wallpaper",
  position: "fullscreen_below",
  header: "",
  config: {
    source: ["/r/wallpapers"],
    slideInterval: 60 * 1000,
    orientation: "vertical",
    maximumEntries: 15,
  }
},
....
ausheikh commented 4 years ago

Try rebooting, worked for me On 26 Apr 2020, 19:15 +0300, Mason McCuskey notifications@github.com, wrote:

Also not working for me. My config file is valid. { module: "MMM-Wallpaper", position: "fullscreen_below", header: "", config: { source: ["/r/wallpapers"], slideInterval: 60 * 1000, orientation: "vertical", maximumEntries: 15, } }, .... — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

masonmc commented 4 years ago

Rebooting didn't work for me.

The problem for me was that my MMM-wallpaper directory under modules had an incorrect name. It should be MMM-Wallpaper (note capital W).

to fix it, cd into your modules directory then type: mv MMM-wallpaper MMM-Wallpaper I figured this out by loading the mirror in a Chrome browser and pressing F12 to look at console errors, so if it's still not working for you guys maybe try that.

gelaw2 commented 6 months ago

Thought this might help someone: 12/31/2023: Just rebuilt by MM with on Pi 4B 4K with 64 Bit Bullseye. NPM install had problems that I fixed by running npm audi fix --force First run did not work.
But Reboot got it working for me.