Skip to content

A simple module to put a happy little painting and video on your MagicMirror²

Notifications You must be signed in to change notification settings

Veldrovive/MMM-Bob-Ross

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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})

About

A simple module to put a happy little painting and video on your MagicMirror²

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published