Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pvyParts/MMM-jokes
Mirror Mirror on the wall who is the most baddass of them all! -Chuck thats who.
https://github.com/pvyParts/MMM-jokes
Last synced: 22 days ago
JSON representation
Mirror Mirror on the wall who is the most baddass of them all! -Chuck thats who.
- Host: GitHub
- URL: https://github.com/pvyParts/MMM-jokes
- Owner: pvyParts
- Created: 2016-04-04T10:58:33.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-07-21T06:41:54.000Z (over 8 years ago)
- Last Synced: 2024-08-04T10:02:38.802Z (4 months ago)
- Language: JavaScript
- Homepage: https://github.com/MichMich/MagicMirror
- Size: 34.2 KB
- Stars: 8
- Watchers: 6
- Forks: 3
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-mmm - **MMM-Jokes**
README
# Module: MMM-jokes
The `MMM-jokes` module is similar to the complements module but it loads its data from a web API for random jokes## Using the module
To use this module, add it to the modules array in the `config/config.js` file:
````javascript
modules: [
{
module: 'MMM-jokes',
position: 'lower_third', // This can be any of the regions.
// Best results in one of the middle regions like: lower_third
config: {
api: 'icndb' //required
}
}
]
````## Configuration options
The following properties can be configured:
Option
Description
api
What API are we going to use?
Possible values:>ticndb
(http://www.icndb.com/) ,tambal
(http://tambal.azurewebsites.net/)
Default value:ticndb
updateInterval
How often does the joke have to change? (Milliseconds)
Possible values:1000
-86400000
Default value:600000
(10 minutes)
fadeSpeed
Speed of the update animation. (Milliseconds)
Possible values:0
-5000
Default value:4000
(4 seconds)