Skip to content
Random quote generator for the MagicMirror project (
Branch: master
Clone or download
Latest commit bd4d3f8 Jun 22, 2016
Type Name Latest commit message Commit time
Failed to load latest commit information.
LICENSE Initial commit Jun 20, 2016 Update Jun 22, 2016
random_quotes.js Initial commit Jun 20, 2016

Module: random_quotes

The random_quotes module returns a random quote based on the category set. Supplied quotes are courtesy of Since there is no API for, you will have to manually add new ones. See the section on Updating Quotes below.

Installing the module

Clone this repository in your ~/MagicMirror/modules/ folder

git clone

Using the module

To use this module, add it to the modules array in the config/config.js file:

modules: [
				module: 'random_quotes',
				position: 'lower_third',
				config: {
						// The config property is optional
						// Without a config, a random quote is shown,
						// selected from all of the categories available.

Configuration options

The random_quotes module allows you to pick quotes randomly from all the provided categories, or you can set it to only use one category. Specifying multiple categories is curently not supported.

Options Description Default
More options may get added later.
updateInterval How often a new quote gets displayed. Value is in SECONDS. 300 seconds (every 5 minutes)
fadeSpeed How fast (in SECONDS) to fade out and back in when changing quotes. 4 seconds
category What category to pick from. random - The random setting will pick a random quote out of all the available categories. Or you can set it to a specific category: inspirational, life, love, motivational, positive, or success.

Updating Quotes

Because does not proide an API for their database, you will have to update/change the quotes manually. You can edit the random_quotes.js file and add/remove quotes from the various sections. You may even delete an entire section.

Most random quotes APIs out there only allow for a single 'quote of the day'. If you want to have a random quote each time you send a request, most of them will require a paid subscription. In keeping this module 'free', I opted to not force anyone to have to pay for a service.

You can’t perform that action at this time.