MagicMirror² v2.13.0 is available! For more information about this release, check out this topic.

MMM-GoogleDriveSlideShow



  • MMM-GoogleDriveSlideShow allows you to display a slideshow of your photos stored in Google Drive.
    The MMM-GooglePhotos module allows to display photos stored in Google Photo, but as my photos are stored in Google Drive, I’ve created this module to create a slideshow of these photos on the Magic Mirror screen.

    The module is highly configurable :

    • Google Drive root folder
    • Theming
    • Number of folders to scan / photos to retrieve
    • Refresh interval of the slideshow and periodic scan of Google Drive
    • Integration with other modules notifications (PIR sensor for example to display next image)
    • Play mode (automatic, manual)

    Thanks to the MM team and all the community for their great work !

    Screenshots

    MMM-GoogleDriveSlideShow

    Download



  • @clegallic and if u get a suspend() call, u stop polling the server and stop attempting to display, right?



  • @sdetweil I wasn’t aware of the suspend()and resume() methods.

    I will update the module to implement these methods.

    Thank !



  • It’s fixed now. Regards.



  • I am not having any luck installing this module. It is probably user error. I have MM2 up and running but when I paste the code and restart MM2 is tells ,e i need to create a config.js file.

    WARNING! Could not validate config file. Starting with default configuration. Please correct syntax errors at or above this line: /home/pi/MagicMirror/config/config.js:56
    				rootFolderId: my id is here,
    				                        ^
    
    SyntaxError: Invalid or unexpected token
        at Module._compile (internal/modules/cjs/loader.js:722:23)
        at Object.Module._extensions..js (internal/modules/cjs/loader.js:798:10)
        at Module.load (internal/modules/cjs/loader.js:645:32)
        at Function.Module._load (internal/modules/cjs/loader.js:560:12)
        at Module.require (internal/modules/cjs/loader.js:685:19)
        at require (internal/modules/cjs/helpers.js:16:16)
        at loadConfig (/home/pi/MagicMirror/js/app.js:67:12)
        at App.start (/home/pi/MagicMirror/js/app.js:202:3)
        at Object. (/home/pi/MagicMirror/js/electron.js:126:7)
        at Module._compile (internal/modules/cjs/loader.js:786:30)
    
    

    Do I need to add anything to the ID? I have tried adding quotes but that did not seem to work.

    thanks



  • @cgethycx said in MMM-GoogleDriveSlideShow:

    rootFolderId: my id is here,

    the rules for values in config.js

    whatever to the right of : if its numbers (1, or 21.25) or true/false it does not need quotes
    if it contains letters or spaces (this is a test, or 232130-1485i2jelnefkhwerh (apikey) it must be quoted,
    single or double doesn’t matter as long as start and end are the same.

    so, under the rules above
    this

     rootFolderId: my id is here,
    

    should be at least

     rootFolderId: 'my id is here',
    

    read this helpful post
    https://forum.magicmirror.builders/topic/4231/how-to-add-modules-for-absolute-beginners?_=1593192855243



  • @sdetweil thanks that helped somewhat. now MM2 loads but i just have a white box. Making progress though.



  • Hi,

    You have to configure the module with the ID of the Google Drive folder (rootFolderId) where your photos are stored.

    You can check a complete answer here : https://github.com/clegallic/MMM-GoogleDriveSlideShow/issues/2#issuecomment-658843412

    Regards,

    Charles



  • Hi,
    first of all, I really like the ideaof the module. But I am currently stuck at creating the authentification with google and then the token. In step 7 of your readme, I have no “other” option to choose, so I chose “web application”. But in step 9 (using VNC to access the magic mirror), the authentification fails.

    Do you have any idea what is my mistake?



  • Hi Jupter,

    I don’t think you made a mistake, and that the “type” choice at step 7 has any importance.

    Can you check that your credentials.json file looks like that ?

    {"installed":{"client_id":"[something].apps.googleusercontent.com","project_id":"[something]","auth_uri":"https://accounts.google.com/o/oauth2/auth","token_uri":"https://oauth2.googleapis.com/token","auth_provider_x509_cert_url":"https://www.googleapis.com/oauth2/v1/certs","client_secret":"[something]","redirect_uris":["urn:ietf:wg:oauth:2.0:oob","http://localhost"]}}
    

    Can you send me the detail of the error while trying to authenticate at step 10 ?

    Regards,

    Charles


Log in to reply