EXT-GooglePhotos
This plugin allows to display your album directory with Google photos API in background or in MagicMirror position
This plugin is an Extented plugins for
MMM-GoogleAssistant
Execute npm run install:EXT-GooglePhotos
in the MMM-GoogleAssistant's folder.
cd ~/MagicMirror/modules/MMM-GoogleAssistant
npm run install:EXT-GooglePhotos
credendials.json
)This module need google credentials file
You can create it with following this wiki part.
Save the result file and rename it to credentials.json
file into the root of this module (inside your EXT-GooglePhotos folder)
If you have already create it with
MMM-GoogleAssistant
, this module will search it automaticaly and use it.
So it's not necessary to create it or past it
We have to install a new API from the google developers console
In a terminal on the RPI desktop (NOT in SSH), type this command:
cd ~/MagicMirror/modules/MMM-GoogleAssistant
npm run token:EXT-GooglePhotos
Naturally, authorise all conditions.
The token will be created as tokenGP.json
in the root directory of this module
To display the module insert it in the config.js file.
{
module: 'MMM-GoogleAssistant/EXTs/EXT-GooglePhotos',
position: 'top_left',
animateIn: 'backInLeft',
animateOut: 'backOutRight',
config: {
debug: false,
displayType: 0,
displayDelay: 10 * 1000,
displayInfos: true,
displayBackground: true,
albums: [],
sort: "new", // "old", "random"
hiResolution: true,
timeFormat: "DD/MM/YYYY HH:mm",
moduleHeight: 300,
moduleWidth: 300,
uploadAlbum: null
}
},
field description type default value debug Enable debug mode or not BOOLEAN false displayType How displaying Google Photos? ( 0
: in Fullscreen,1
: in MagicMirror position)NUMBER 0 displayDelay Delay before displaying next photo in the iframe (default is 10 secs) NUMBER 10 * 1000 displayInfos Displaying name of the album and photo time BOOLEAN true displayBackground Displaying a blurred decoration of the photo BOOLEAN true albums: Folders of Google Photos to display ARRAY Of STRING [] sort Sort received google photos new
,old
,random
STRING new hiResolution Displaying photos in Hi-Resolution BOOLEAN true timeFormat Time/ date Format STRING DD/MM/YYYY HH:mm moduleHeight module Height in px NUMBER 300 moduleWidth module Width in px NUMBER 300 uploadAlbum Name of the album to upload any photos STRING null
albums
feature: You can add one or more albums
Sample:
albums: ["album1"],
albums: ["album1", "2020"],
You are able now to use animate feature for transition
Read MagicMirror² animated functionality
For updating this module, just use this command:
cd ~/MagicMirror/modules/MMM-GoogleAssistant
npm run update
cd ~/MagicMirror/modules/MMM-GoogleAssistant
npm run remove:EXT-GooglePhotos