从 Google 相册在 MagicMirror 上显示您的照片。
Display your photos from album of Google Photos on MagicMirror².
[!IMPORTANT]
This plugin is not working currently because new changes in Google Photos API take effect March 2025Reference:
…albumsNow this module can access not only your owns but also shared. You can specify album title like this.
albums: ["My wedding", "family share", "Travle to Paris", "from Tom"],updateIntervalupdateInterval is 10 seconds. Too often update could makes API quota drains or network burden.sortnew, old, random are supported.uploadAlbumGPHOTO_UPLOAD notification.this.sendNotification("GPHOTO_UPLOAD", path);create_uploadable_album.js.node create_uploadable_album.js MyMagicMirrorAlbumMMM-Selfieshot and MMM-TelegramBot can upload their pictures through this feature.conditionfromDate : If set, The photos which was created after this value will be loaded. (e.g: fromDate:"2015-12-25" or fromDate:"6 Mar 17 21:22 UT")toDate : If set, The photos which was created before this value will be loaded. (e.g: toDate:"Mon 06 Mar 2017 21:22:23 z" or toDate:"20130208")fromDate and toDate.minWidth, maxWidth, minHeight, maxHeight : If set, the photos have these value as original dimensiont will be loaded. You can use these values to avoid too big or too small pictures(like icons)minWHRatio, maxWHRatio : With these values, you can get only portrait photos(or landscaped, or squared)width / height. So =1 will be squared dimension. >1 will be landscaped. ` {
return ['10px', '10px', 'none', 'none'] // This will show photo info top-left corner.
}
## Tip
- Not to show photo info : Add this into your `css/custom.css`.
```css
#GPHOTO_INFO {
display: none;
}css/custom.css.#GPHOTO_INFO {
top: 10px;
left: 10px;
bottom: inherit;
right: inherit;
}css/custom.css.#GPHOTO_BACK {
display: none;
}css/custom.css.#GPHOTO_CURRENT {
background-size: cover;
}css/custom.css.#GPHOTO_CURRENT {
background-size: contain;
}clock more clearly on showing in fullscreen_below : Add this into your css/custom.css..clock {
padding: 10px;
background-color: rgba(0, 0, 0, 0.5);
}@keyframes trans {
from {opacity: 0}
to {opacity: 0.5}
}
#GPHOTO_CURRENT {
background-size:cover;
opacity:0.5;
}暂无开放 Issues,或尚未同步最近议题。