Navigation

    MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord
    1. Home
    2. clegallic
    C
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 11
    • Best 1
    • Groups 0

    clegallic

    @clegallic

    1
    Reputation
    68
    Profile views
    11
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    clegallic Follow

    Best posts made by clegallic

    • 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

      posted in Entertainment
      C
      clegallic

    Latest posts made by clegallic

    • RE: MMM-GoogleDriveSlideShow

      Hi,

      If your MM is deployed on a Raspberry Pi, you should find the logs in the /home/pi/.pm2 folder (pm2.log, logs/mm-error-0.log or logs/mm-out-0.log).

      Regards,

      Charles

      posted in Entertainment
      C
      clegallic
    • RE: MMM-GoogleDriveSlideShow

      Hi Will,

      I’m glad to see that you have solved your token problem.

      The time it takes to load picture depends on the number of pictures you have. Note that only pictures meta-data are loaded at start. The picture binaries are loaded on demand when the slideshow starts.

      • if rootFolderId is not set, the module will retrieve the 100 first pictures found (maxResults)
      • if rootFolderId is set, the module will go through the 10 first folders (maxFolders) it founds. If you have a large amount of pictures, or if you specified a large value for maxFolders, it can take more times.

      If nothing is loaded or displayed, feel free to set debug to true and send me the logs.

      Regards,

      Charles

      posted in Entertainment
      C
      clegallic
    • RE: MMM-GoogleDriveSlideShow

      @emrah_asl
      Hi,

      @sdetweil is right, feel free to create a pull request.

      If you want to force cache reloading, you can also delete the .cache file in the module folder.

      The default cache lifetime is 24 hours (refreshDriveDelayInSeconds configuration parameter).

      Regards,

      Charles

      posted in Entertainment
      C
      clegallic
    • RE: MMM-GoogleDriveSlideShow

      Hi @chen31

      The module is designed to adapt the display size of the image based on your maxWidth and maxHeight configuration (see there)

      If it does not works, perhaps the display is cut by another module above on your MagicMirror ?

      If not, can you share a screenshot to let me understand the problem.

      Regards,

      Charles

      posted in Entertainment
      C
      clegallic
    • RE: MMM-GoogleDriveSlideShow

      I’m glad to hear that your problem is now resolved. Have fun with the module.

      Regards,

      Charles

      posted in Entertainment
      C
      clegallic
    • RE: MMM-GoogleDriveSlideShow

      Hi,

      I can’t see any clue in your logs that can explain the issue.
      My Node version is slightly more recent than yours (v10.17.0 when yours is v6.14.2), it may be a reason.

      Can you try to run the npm run token:generatecommand through SSH ?
      Do you have the same error ?

      Regards,

      Charles

      posted in Entertainment
      C
      clegallic
    • RE: MMM-GoogleDriveSlideShow

      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

      posted in Entertainment
      C
      clegallic
    • RE: MMM-GoogleDriveSlideShow

      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

      posted in Entertainment
      C
      clegallic
    • RE: MMM-GoogleDriveSlideShow

      It’s fixed now. Regards.

      posted in Entertainment
      C
      clegallic
    • RE: MMM-GoogleDriveSlideShow

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

      I will update the module to implement these methods.

      Thank !

      posted in Entertainment
      C
      clegallic