Download the PHP package a15lam/wemo-plex without Composer

On this page you can find all versions of the php package a15lam/wemo-plex. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package wemo-plex

[ DEPRECATED ] wemo-plex (Deprecated in favor of a15lam/jarvis)

This is a PHP daemon service that automatically turns off your light (Wemo device) when you play something from your Plex Media Server, then turns on your light when media is paused or stopped.

Installation

You need to have composer installed for installing and running this software. See https://getcomposer.org.

Linux

cd /opt
git clone https://github.com/a15lam/wemo-plex.git
cd wemo-plex
composer install

Configuration

Edit the config.php file as needed. See the file for details. In the config you can easily map your Wemo devices to a Player/Client/TV that plays from your Plex Media Server. For example:

'device_mapping' => [
    [
        'player' => 'TV UN46C8000_USA',     // Plex device title as it shows on Plex device page.
        'wemo'   => 'media room'            // Wemo device name as it shows on your Wemo mobile app.
    ],
    [
        'player' => 'TV UN55F6300',         // Example: Supports multiple player-device mapping.
        'wemo'   => 'living room'
    ],
    [
        'player' => 'Plex Web (Chrome)',
        'wemo'   => ['light 1', 'light 2']  // Example: Supports multiple Wemo devices for a Plex player.
    ]
 ]

Run

This is a daemon service, therefore, it needs to run continuously. You can do a quick test by running in your linux shell using - php daemon.php from within your installation directory. This will hold up your shell while the program is running. Press ctrl + c to stop it. You can also run this in the background using - php daemon.php &. Press ctrl + z to stop background process.

The best way to run this is to run it as system service. You can do this easily on a Ubuntu/Debian based system. Just copy wemo-plex.conf to /etc/init/ directory.

sudo cp wemo-plex.conf /etc/init/wemo-plex.conf

Then edit wemo-plex.conf to make that the path on line 16 is correct.

sudo vim /etc/init/wemo-plex.conf

After this you can start and stop the service like below.

sudo service wemo-plex start
sudo service wemo-plex stop

// To check service status
sudo service wemo-plex status

// To restart service
sudo service wemo-plex restart

Your service will also start automatically when your system boots up. Once the service is running, play any media from your Plex Media Server and watch your lights turn off and on as you play, pause and stop.

Logging

By default everything is logged at /path/to/your/install/storage/logs/main.log. You can change the log path from config.php. You can also change the log level from the config page. Default log level is INFO. Set this to DEBUG for better visibility and troubleshooting.

Note: Leaving log level to DEBUG is not recommended. This will quickly make your log file huge.


All versions of wemo-plex with dependencies

PHP Build Version
Package Version
Requires php Version >=5.5
a15lam/workspace Version dev-develop as dev-master
a15lam/php-wemo Version dev-master
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package a15lam/wemo-plex contains the following files

Loading the files please wait ...