Mopidy

From ago control wiki
(Difference between revisions)
Jump to: navigation, search
m (Added dashbard image)
m (Install agocontrol Mopidy)
 
(8 intermediate revisions by one user not shown)
Line 2: Line 2:
  
 
'''Introduction'''
 
'''Introduction'''
Mopidy music players cannow be added to Agocontrol
+
 
Staus: Highly experimental
+
Mopidy music players can now be added to Agocontrol  
 +
 
 +
Status: Experimental
  
 
For install on a Debian system (e.g. Raspbian Jessie), follow these instructions ([https://docs.mopidy.com/en/latest/installation/debian/]).
 
For install on a Debian system (e.g. Raspbian Jessie), follow these instructions ([https://docs.mopidy.com/en/latest/installation/debian/]).
Line 14: Line 16:
 
</pre>
 
</pre>
  
then install Squeezebox
+
then install the Mopidy device
 
<pre>
 
<pre>
 
sudo apt-get install agocontrol-mopidy
 
sudo apt-get install agocontrol-mopidy
 +
</pre>
 +
=== Pre reqs ===
 +
Websockets[https://pypi.python.org/pypi/websocket-client] are used to listen to Mopidy events, e.g. track info when changing track.
 +
Install with:
 +
<pre>
 +
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
 
</pre>
 
</pre>
  
 +
(Or check Websockets[https://pypi.python.org/pypi/websocket-client] for latest version to download)
  
 
== Conf file ==
 
== Conf file ==
Line 31: Line 45:
 
<pre>
 
<pre>
 
[mopidy]
 
[mopidy]
 +
Players=Edison,HD650
  
Players=Player1,Player2
+
[Edison]
 
+
[Player1]
+
 
host=192.168.1.1
 
host=192.168.1.1
 
Port=6680
 
Port=6680
  
 
+
[HD650]
[Player2]
+
 
host=192.168.1.2
 
host=192.168.1.2
 
Port=1234
 
Port=1234
Line 63: Line 75:
 
</pre>
 
</pre>
  
You should now see your device(s). Edit the device names and you devices will occur on your All my devices dashboard.
+
You should now see your device(s). Edit the device names and your devices will occur on your All my devices dashboard.
 +
 
 +
 
 
[[File:Mopidy_dashboard.png]]
 
[[File:Mopidy_dashboard.png]]

Latest revision as of 14:12, 6 November 2016

Contents

[edit] 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]).

[edit] 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

[edit] 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)

[edit] 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

[edit] 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

[edit] 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