Upcoming Movie Info Module for MagicMirror2
- An installation of MagicMirror2
- npm
- request
- moment
-
Clone this repo into
~/MagicMirror/modules
directory. -
Get a free api_key here
-
Configure your
~/MagicMirror/config/config.js
:{ module: 'MMM-MovieInfo', position: 'top_right', config: { ... } }
-
Run command
npm install --productive
in~/MagicMirror/modules/MMM-MovieInfo
directory.
Option | Default | Description |
---|---|---|
api_key |
false |
Get a free api_key here. |
discover |
check below for examples | Check the docs for more Info. |
updateInterval |
10800000 (3 hours) |
How often new data should be fetched. (Changes only once per day). |
rotateInterval |
180000 (3 mins) |
How fast should be rotated between movies. |
genre |
true |
Display genres of movies. |
rating |
true |
Display rating of movies. |
plot |
true |
Display plot of movies. |
useLanguage |
false |
Use language from config instead of default english. WARNING: This can have missing data from api. |
Place the discover
object in your config.
discover: {
"primary_release_date.gte": "now", //now
"primary_release_date.lte": "month" //day, week, month, quarter or year
}
You can also explicitly set the date
discover: {
"primary_release_date.gte": "2017-02-16",
"primary_release_date.lte": "2017-03-16"
}
discover: {
"sort_by": "popularity.desc"
}
discover: {
"certification_country": "US",
"certification": "R",
"sort_by": "vote_average.desc"
}
discover: {
"certification_country": "US",
"certification.lte": "G",
"sort_by": "popularity.desc"
}
discover: {
"primary_release_year": "2010",
"sort_by": "vote_average.desc"
}
discover: {
"with_genres": "878",
"with_cast": "500",
"sort_by": "vote_average.desc"
}
discover: {
"with_genres": "35",
"with_cast": "23659",
"sort_by": "revenue.desc"
}
discover: {
"with_people": "287,819",
"sort_by": "vote_average.desc"
}
discover: {
"with_people": "108916,7467",
"sort_by": "popularity.desc"
}
discover: {
"with_genres": "18",
"sort_by": "vote_average.desc",
"vote_count.gte": "10"
}
discover: {
"certification_country": "US",
"certification": "R",
"sort_by": "revenue.desc",
"with_cast": "3896"
}