MMM-GooglePhotos



  • Hey all,

    I’m trying to get a digital frame setup, using MM and the GooglePhotos module.

    I have this running on a Pi, and while I can get the clock and other built-in modules working, the GooglePhotos module does not display anything.

    I was able to run auth_and_test.js and get my albums listed, but nothing shows up on the screen.

    Here’s my config.js:

    var config = {
            address: "localhost", 
            port: 8080,
            ipWhitelist: ["127.0.0.1", "::ffff:127.0.0.1", "::1"], 
            language: "en",
            timeFormat: 24,
            units: "metric",
    
            modules: [
                    {
                            module: "alert",
                    },
                    {
                            module: "updatenotification",
                            position: "top_bar"
                    },
                    {
                            module: "clock",
                            position: "top_left"
                    },
                    {
                            module: "MMM-GooglePhotos",
                            position: "fullscreen_below",
                            config: {
                                    albumID: "A...Snip...B",
                                    refreshInterval: 1000*60,
                                    scanInterval: 1000*60*10,
    
                                    sort: "time",
                                    showWidth: "100%",
                                    showHeight: "100%",
                                    originalWidthPx: "1920",
                                    originalHeightPx: "1080",
                                    mode: "contain",
                            }
                    }
            ]
    
    };
    

    and my css/custom.css:

     body {
     .fullscreen.below { width:100%; }
     }
    

    and my startup log (using pm2)

    /home/pi/.pm2/logs/mm-out.log last 15 lines:
    0|mm       | > magicmirror@2.5.0 start /home/pi/MagicMirror
    0|mm       | > sh run-start.sh
    0|mm       |
    0|mm       | Starting MagicMirror: v2.5.0
    0|mm       | Loading config ...
    0|mm       | Loading module helpers ...
    0|mm       | Initializing new module helper ...
    0|mm       | Module helper loaded: updatenotification
    0|mm       | No helper found for module: helloworld.
    0|mm       | All module helpers loaded.
    0|mm       | Starting server on port 8080 ...
    0|mm       | Server started ...
    0|mm       | Connecting socket for: updatenotification
    0|mm       | Sockets connected & modules started ...
    0|mm       | Launching application.
    

    Any thoughts?

    -Kal


  • Module Developer

    @kaltec-w
    Well, your log says it didn’t load any modules(even clock) from your config.js. Where does your config.js is located?

    And it is not related with main issue, your css is wrong.



  • I left pretty much everything default.

    pi@photoframe1:~/MagicMirror $ pwd
    /home/pi/MagicMirror
    pi@photoframe1:~/MagicMirror $ ls ./config/
    config.js  config.js_old  config.js.sample
    pi@photoframe1:~/MagicMirror $
    

    config.js_old is the original, i modified config.js to what my previous comment said.

    The CSS i can deal with/remove as necessary. It was a recommendation in a different post.

    This is my first foray into magic mirror, so I may be missing something simple here…

    -kal


  • Module Developer

    @kaltec-w
    Your logs looks like typical “no config” case. But as I’ve seen in your last post, the file exists in right directory. Weird.
    If you sespect some specific module, remove it from config.js then try again. If the result is right as your expectation, you can confirm the module has a problem.
    Anyway, in the case of the configuration fail, It might spit out error message, not your previous log.



  • Copying over the default config.js does indeed result in normal behavior.

    With my custom config.js (with GooglePhotos), the clock is displayed but the rest of the screen is blank.

    Any idea where there may be logging from that module? Do I need to post in a different forum for module-specific issues?

    -kal


  • Module Developer

    @kaltec-w

    With my custom config.js (with GooglePhotos), the clock is displayed but the rest of the screen is blank.

    If so, your logs in the previous post is not matched. Check log again. Or you can stop pm2 then execute MM directly in your terminal with ‘npm start’ or ‘npm start dev’. The latter can show not only serverside log but also frontend log. It will help to diagnose.

    Any idea where there may be logging from that module? Do I need to post in a different forum for module-specific issues?

    If you think that is real bug-like issue, you can post it on the issue board of that module github repository. I’m the developer of that module.



  • I ended up removing the ~/MagicMirror folder entirely, reinstalling, and reinstalling MMM-GooglePhotos and all seems to be working now!

    thanks for your help, @Sean !

    -kal