https://github.com/ole1986/nc-mopidy-player
Next Cloud (Pi) Mopidy Player integration
https://github.com/ole1986/nc-mopidy-player
Last synced: 2 months ago
JSON representation
Next Cloud (Pi) Mopidy Player integration
- Host: GitHub
- URL: https://github.com/ole1986/nc-mopidy-player
- Owner: ole1986
- License: agpl-3.0
- Created: 2021-06-06T17:48:58.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2021-06-06T18:01:32.000Z (almost 4 years ago)
- Last Synced: 2025-02-02T05:44:27.423Z (4 months ago)
- Language: JavaScript
- Size: 1.75 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: COPYING
Awesome Lists containing this project
README

# Introduction
The `mopidyplayer` extension enables your nextcloud(pi) as a media player using the [mopidy backend](https://mopidy.com/)
It requires some manual modification on the system. So be aware that 3rd party software is being installed due the the below instruction.
Also, a new user "mopidy" is being used to manage the audio output and mixer parts (esspacially important for bluetooth connections)
# Installation and Configuration
Install the required packages on your system
```
sudo apt install mopidy mopidy-tunein gstreamer1.0-plugins-bad
sudo apt install pulseaudio pulsemixer
```
## Enable and run mopidyMake sure the mopidy service is running and enabled during startup
```
sudo systemctl status mopidy.service
sudo systemctl enable mopidy.service # if necessary
```## Enable pulseaudio as service for user mopidy
Insert below content into `/etc/systemd/system/pulseaudio.service`
```
[Unit]
Description=PulseAudio system server
After=network.target[Service]
Type=notify
User=mopidy
ExecStart=pulseaudio --daemonize=no --realtime --log-target=journal[Install]
WantedBy=multi-user.target
```## Enable Bluetooth support
To allow mopidy the bluetooth access the following steps are required
```
sudo usermod -a -G bluetooth mopidy # allow the mopidy user to control bluetooth
```Also, allow www-data to manage bluetooth
```
sudo usermod -a -G bluetooth www-data # allow the mopidy user to control bluetooth
```Replace the below content in `/etc/dbus-1/system.d/bluetooth.conf` using your favorite editor
```
```
## Project related
**NPM Packages**
```
npm install
```**Composer (optional)**
composer require
### Enable apache proxy for Websockets (mopidy)
```
a2enmod proxy
a2enmod proxy_http
a2enmod proxy_wstunnel
```