Mopidy

From ago control wiki
Jump to: navigation, search

Contents

Mopidy music player

Introduction

Mopidy music players can now be added to Agocontrol

Status: Experimental

For install on a Debian system (e.g. Raspbian Jessie), follow these instructions ([1]).

Install agocontrol Mopidy

First get and update to latest packages:

sudo apt-get update && sudo apt-get upgrade

then install the Mopidy device

sudo apt-get install agocontrol-mopidy

Pre reqs

Websockets[2] are used to listen to Mopidy events, e.g. track info when changing track. Install with:

cd ~
wget https://pypi.python.org/packages/a3/1e/b717151e29a70e8f212edae9aebb7812a8cae8477b52d9fe990dcaec9bbd/websocket_client-0.37.0.tar.gz
gunzip https://pypi.python.org/packages/a3/1e/b717151e29a70e8f212edae9aebb7812a8cae8477b52d9fe990dcaec9bbd/websocket_client-0.37.0.tar.gz
tar https://pypi.python.org/packages/a3/1e/b717151e29a70e8f212edae9aebb7812a8cae8477b52d9fe990dcaec9bbd/websocket_client-0.37.0.tar.gz
cd websocket_client-0.37.0
sudo python setup.py install

(Or check Websockets[3] for latest version to download)

Conf file

Create the conf file:

cd /etc/opt/agocontrol/conf.d/
sudo touch mopidy.conf
sudo chown agocontrol:agocontrol mopidy.conf

Edit the conf file.

[mopidy]
Players=Edison,HD650

[Edison]
host=192.168.1.1
Port=6680

[HD650]
host=192.168.1.2
Port=1234

Start the service

Then start the service now

sudo systemctl start agomopidy.service

Then enable the service to auto start after reboot have occured

sudo systemctl enable agomopidy.service

Device configuration

Goto your device configuration

http://xxx.xxx.xxx.xxx:8008/?deviceConfig

You should now see your device(s). Edit the device names and your devices will occur on your All my devices dashboard.


Mopidy dashboard.png

Personal tools