Giter Site home page Giter Site logo

fuji246 / mmm-plexslideshow Goto Github PK

View Code? Open in Web Editor NEW

This project forked from pjtewkesbury/mmm-plexslideshow

0.0 0.0 0.0 6.74 MB

A Magic Mirror module to display a slide show using pictures from a local PLEX media server

License: MIT License

CSS 1.50% JavaScript 98.50%

mmm-plexslideshow's Introduction

Module: Plex Favorites Slideshow

Show a slideshow of images in the background. Great for a photo frame from instead of a mirror, using photos marked as 'favorite' from your PLEX Server.

The MMM-PlexSlideshow module is designed to display images fullscreen, one at a time on a fixed interval, from your PLEX server. These images can be shown in order or at random. The images can transition from one to the other and be shown with no edge (cover) or the enter image(contain).

Based on MMM-ImageSlideshow.

Dependencies / Requirements

This module requires that you have an accessable PLEX media server where your photos are stored, and that you have marked some of these photoes as favourites (The Heart icon).

Operation

This module will log into the specified PLEX Media Server and locate the Favorites Photo Album and display the images. The module will display those images in either alphabetical or random order. Once all the images have been shown, it will loop back and start again.

Extra configurations include setting the amount of time an image is shown for, the transition speed from one image to another, the background sizing, whether or not to animate the transition from one to the other, the gradient used to make the text more readable, and the gradient opacity.

Installing the module

To install this module, from a SSH terminal

cd ~/MagicMirror/modules
git clone https://github.com/PJTewkesbury/MMM-PlexSlideshow.git
cd MMM-PlexSlideshow
npm install

To update

cd ~/MagicMirror/modules/MMM-PlexSlideShow
git pull
npm install

Configuration

To configure the module, add the module to the modules array in the config/config.js file:

modules: [
  {
    module: 'MMM-PlexSlideshow',
	position: 'fullscreen_below',
    config: {
	  plex: {
		  hostname:"PlexServerName Or IP",
		  port:32400,
		  username:"",
		  password:"",
		},
		transitionImages: true,
    }
  }
];

Notification options

The following notifications can be used:

Notifications Description
BACKGROUNDSLIDESHOW_NEXT Change to the next image, restart the timer for image changes only if already running
BACKGROUNDSLIDESHOW_PAUSE Pause the timer for image changes
BACKGROUNDSLIDESHOW_PLAY Change to the next image and start the timer for image changes

Configuration options

The following properties can be configured:

Option Description
plex The connection details for your PLEX server. This is a require value. This is a array of values. See below.
plex.hostname The IP address or hostname of your PLEX server. This is a required value
plex.port This is the port number that your PLEX server runs on. This is required and it's value is normally 32400
plex.username The username of an account that can access the PLEX server. This is a required value
plex.password The password for the username of an account that can access the PLEX server. This is a required value
slideshowSpeed Integer value, the length of time to show one image before switching to the next, in milliseconds.
Default value: 10000 (Which is 10 seconds).
This value is OPTIONAL
transitionSpeed Transition speed from one image to the other, transitionImages must be true. Must be a valid css transition duration.
Example: '2s'.
This value is OPTIONAL
backgroundSize The sizing of the background image. Values can be:
  • cover: Resize the background image to cover the entire container, even if it has to stretch the image or cut a little bit off one of the edges.
  • contain: Resize the background image to make sure the image is fully visible.
Default value:'cover'. This value is OPTIONAL_
transitionImages Transition from one image to the other (may be a bit choppy on slower devices, or if the images are too big).
Example: true
Default value:false
This value is OPTIONAL
gradient The vertical gradient to make the text more visible. Enter gradient stops as an array.

Example: [
"rgba(0, 0, 0, 0.75) 0%",
"rgba(0, 0, 0, 0) 40%"
]

Default value:__[
"rgba(0, 0, 0, 0.75) 0%",
"rgba(0, 0, 0, 0) 40%",
"rgba(0, 0, 0, 0) 80%",
"rgba(0, 0, 0, 0.75) 100%"
]
This value is OPTIONAL
horizontalGradient The horizontal gradient to make the text more visible. Enter gradient stops as an array.

Example:["rgba(0, 0, 0, 0.75) 0%",
"rgba(0, 0, 0, 0) 40%"
]
Default value:___[
"rgba(0, 0, 0, 0.75) 0%",
"rgba(0, 0, 0, 0) 40%",
"rgba(0, 0, 0, 0) 80%",
"rgba(0, 0, 0, 0.75) 100%"
]
This value is OPTIONAL
gradientDirection The direction of the gradient
Possible values: 'vertical', 'horizontal', 'both'

Default value:'vertical'
This value is OPTIONAL

mmm-plexslideshow's People

Contributors

darickc avatar gpetersen avatar intecforbusiness avatar pkozanian avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.