Skip to content
A simple module to put a happy little painting and video on your MagicMirror²
JavaScript CSS
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
MMM-Bob-Ross.css
MMM-Bob-Ross.js Added option to get a new picture on an interval Jul 23, 2018
README.md Removed the second, useless demo Jul 23, 2018
rossList.js first commit Jul 23, 2018

README.md

MMM-Bob-Ross

Demo1
Why not put a happy little cabin on your happy little MagicMirror²? Bob Ross is the quintessential wholesome TV guy, so I thought it was time for him to make his debut on the silver screen... or reflective screen I guess.

Displays a random Bob Ross painting when started, but can also play the episode where he paints it. To display the video, another module must send a notification with ROSS_PLAY_VIDEO and to switch back they must send ROSS_SHOW_IMAGE. More information on all notifications below.

Installation

Navigate to the modules folder of your Magic Mirror installation.

cd ~/MagicMirror/modules

Clone the repository.

git clone https://github.com/Veldrovive/MMM-Bob-Ross.git

Usage

  modules: [
    ...
    {
      module: "MMM-Bob-Ross",
      position: "bottom_left",
      config: {
        imgHeight: "30vh", //Or any valid css height measure. Defines the height of the painting.
        videoHeight: "30vh", //Same as above. Defines the height of the video
        updateInterval: 1*60*60*1000, //How often does the painting change?
        autoPlay: true //Should the video start as soon as it switches or does it need the play command?
      }
    }
    ...
  ]

Configuration

Option Description
imgHeight Define the height of the module when in display picture mode.
Expected Value Type: String (Valid css value)
videoHeight Define the height of the module when in display video mode.
Expected Value Type: String (Valid css value)
updateInterval Define the interval of time between updates of the painting (0 for never switch).
Expected Value Type: Integer
autoPlay Define whether the video should start as soon as it appears.
Expected Value Type: Boolean

Integration with other modules

Control of MMM-Bob-Ross through the notification system:

Notification Description
ROSS_PLAY_VIDEO Switch to the video mode.
Expected Payload: none
ROSS_SHOW_IMAGE Switch to painting display mode.
Expected Payload: none
ROSS_PAUSE_VIDEO Pause the video when in video mode.
Expected Payload: none
ROSS_UNPAUSE_VIDEO Unpause the video when in video mode.
Expected Payload: none
ROSS_NEW_IMAGE Forces a painting change.
Expected Payload: none (random painting) - integer (pick out of array) - Object ({season: number, episode: number})
You can’t perform that action at this time.