Pronti per seconda parte?

Otteniamo l’ip assegnato con il comando “ifconfig

Adesso possiamo continuare l’installazione dal nostro pc, ci colleghiamo con il terminale del nostro pc alla raspberry con il comando ssh sostituendo indirizzoip con l’indirizzo ip assegnato

ssh pi@indirizzoip

user pi

pass quella che abbiamo cambiato

Ora installiamo il server mopidy

  • aggiungiamo la chiave “wget -q -O - https://apt.mopidy.com/mopidy.gpg | sudo apt-key add -
  • aggiungiamo i repo “sudo wget -q -O /etc/apt/sources.list.d/mopidy.list https://apt.mopidy.com/jessie.list
  • installiamo Mopidy e le dipendenze
    sudo apt-get update
    sudo apt-get install mopidy
  • lanciamo il comando mopidy per installare le configurazioni “mopidy
  • adesso rendiamo attivo il servizio al boot con “sudo systemctl enable mopidy

mopidy adesso partirà al boot con l’utente mopidy e le configurazioni che andremo a settare non saranno più in /home/pi/.config/mopidy/mopidy.conf ma in /etc/mopidy/mopidy.conf

I comandi per gestire il server sono


sudo systemctl start mopidy

sudo systemctl stop mopidy

sudo systemctl restart mopidy


Installiamo il plugin per spotify con “sudo apt-get install mopidy-spotify

Installiamo PIP per poter avere tutti i plugin “sudo apt-get install build-essential python-dev python-pip

Installiamo websetting per configurare il sistema dall’interfaccia web “sudo pip install Mopidy-WebSettings

Editiamo il file  /etc/mopidy/mopidy.conf e inseriamo i parametri di spotify e web



enabled = true
username = modifica user
password = modifica pass
bitrate = 320
cache_dir = ""

[websettings]
enabled = true
musicbox = false
[http]
enabled = true
hostname = 0.0.0.0
port = 6680
#Disable zeroconf
zeroconf = ""


Installiamo le api python mpd “sudo apt-get install python-mpd

Facciamo un reboot e proviamo a vedere se l’interfaccia web è salita digitando nel browser l’ip della macchina e la porta 680 http://ipdellamacchina:6680/

Se lo vedete ci siamo quasi 🙂 ancora poco per aprire il frigo e dissetarci

Dovremmo avere una voce settings che è il plugin che abbiamo installato dove possiamo configurare i plugin che installeremo

Ora installiamo musicbox sudo pip install mopidy-MusicBox-webclient

Editiamo il file  /etc/mopidy/mopidy.conf e inseriamo i parametri per musicbox

[musicbox_webclient]
enabled = true
musicbox = false
websocket_host =
websocket_port =
on_track_click = PLAY_ALL


i moduli installabili con pip

  • Mopidy-16x2LCD (0.1.0)              – Mopidy frontend to see track name and volume on a 16×2 LCD
  • Mopidy-AlarmClock (0.1.6)           – A Mopidy extension for using it as an alarm clock.
  • Mopidy-ALSAMixer (1.1.0)            – Mopidy extension for ALSA volume control
  • Mopidy-API-Explorer (1.0.1)         – Mopidy API Explorer
  • Mopidy-Arcam (0.2)                  – Mopidy extension for controlling an Arcam amplifier
  • Mopidy-ArduinoLCD_Info (.1)         –
  • Mopidy-AudioAddict (0.2.7)          – Mopidy extension for the AudioAddict network of radiostations
  • Mopidy-Auto (0.4.0)                 – Mopidy extension to automate music playback based on time of day
  • Mopidy-Banshee (0.1.2)              – Banshee extension for Mopidy
  • Mopidy-Rough-Base (3.14.15)         – Shared classes for building radio rough guis.
  • Mopidy-Bassdrive (0.2.0)            – Bassdrive archive and stream extension for Mopidy
  • Mopidy-Beets (3.1.0)                – Beets extension for Mopidy
  • Mopidy-BeetsLocal (0.0.9)           – Access local beets library
  • Mopidy-CarPi (0.2.21)               – Mopidy extension for in-car RPi and GPIO.
  • Mopidy-Cd (0.1)                     – Mopidy Extension to play audio CD
  • Mopidy-dam1021 (0.4)                – Mopidy extension for controlling volume on a dam1021 DAC
  • Mopidy-radio-de (0.2.0)             – radio.de extension for Mopidy
  • Mopidy-Dirble (1.3.0)               – Mopidy extension for Dirble open radio directory
  • Mopidy-dLeyna (1.2.1)               – Mopidy extension for playing music from Digital Media Servers
  • Mopidy-Emby (0.2.6)                 – Mopidy extension for playing music from Emby
  • Mopidy-EvtDev (0.1.1)               – Mopidy extension for virtual input devices
  • Mopidy-FileManager (0.2.0)          – Mopidy extension for file manager
  • Mopidy-GMusic (2.0.0)               – Mopidy extension for playing music from Google Play Music
  • Mopidy-GPIO420 (0.1.0)              – Extension to control mopidy with gpio buttons and display things on 16×2 lcd
  • Mopidy-GPIOcont (0.2.2)             – Extension to control musicbox via gpio.
  • Mopidy-Podcast-gpodder.net (1.0.0)  – Mopidy-Podcast extension for searching and browsing podcasts on gpodder.net
  • Mopidy-Grooveshark (1.0.4)          – Mopidy extension that plays sound from Grooveshark
  • Mopidy-Headless (0.2.0)             – Mopidy extension for controlling via input devices
  • Mopidy-Hoerbert (0.1.1)             – Hoerbert
  • Mopidy-Radio-Rough-HTML (3.14.15)   – Rough html gui for listening to internet
  • Mopidy-Local-Images (1.0.0)         – Mopidy local library proxy extension for handling embedded album art
  • Mopidy-IntergalacticFM (1.0.2)      –
  • Mopidy-InternetArchive (2.0.3)      – Mopidy extension for playing music from the Internet Archive
  • Mopidy-IRControl (0.1.0)            – Mopidy frontend to be controlled with an IR controller
  • Mopidy-Iris (3.11.0)                – A fully-functional Mopidy web client encompassing Spotify and many other backends
  • Mopidy-Podcast-iTunes (2.0.0)       – Mopidy extension for searching and browsing podcasts on the Apple iTunes Store
  • Mopidy-jukePi (1.0.9)               – Mopidy web client extension
  • mopidy-lcd (1.2.1)                  – This is an MPC for Pi Music Box using  Adafruit’s Character LCD with buttons
  • Mopidy-Local-Whoosh (0.1.0)         – Whoosh local library extension.
  • Mopidy-Local-SQLite (1.0.0)         – Mopidy SQLite local library extension
  • Mopidy-Material-Webclient (0.2.1)   – A Mopidy web client with an Android Material feel
  • Mopidy-Mixcloud (3.1.4)             – Mopidy Mixcloud extension
  • Mopidy-Mobile (1.8.3)               – Mopidy Web client extension for mobile devices
  • Mopidy-Moped (0.7.1)                – Responsive Web client for Mopidy
  • Mopidy-Serial (0.1.0)               – Mopidy Serial Frontend
  • Mopidy-Plex (0.1.0b)                – Mopidy extension for playing audio from a Plex server
  • Mopidy-WebLibrary (1.0.0)           – Mopidy extension for editing the music library in a web interface
  • Mopidy-YamahaMixer (0.1.0)          – Mopidy extension for controlling power, volume and mute on Yamaha receivers
  • Mopidy-PlaybackDefaults (0.1.1)     – Mopidy extension for configurable default playback settings.
  • Mopidy-Spotify-Tunigo (1.0.0)       – Mopidy extension for providing the browse feature of Spotify
  • Mopidy-WAMPFrontend (0.2.0)         – Mopidy extension providing a WAMP frontend
  • Mopidy-RadioNet (0.1.3)             – Mopidy extension for radio.net
  • Mopidy-Simple-Webclient (0.1.1)     – Very simple and mobile friendly web interface for the Mopidy music server
  • Mopidy-Webhooks (0.2.0)             – Mopidy extension that sends webhook notifications to a remote server
  • Mopidy-RNZ (0.1.1)                  – Mopidy extension for RNZ content
  • Mopidy-Terminal (0.1.2)             – Mopdiy extension for web terminal
  • Mopidy-Pibox (0.4.0)                – Mopidy extension for jukebox client
  • Mopidy-Spotify-Web (0.3.0)          – Mopidy extension for providing the browse feature of Spotify for artists and albums
  • Mopidy-TtsGpio (1.0.2)              – Controll mopidy without screen using GPIO and TTS
  • Mopidy-Party (0.2.0)                – Mopidy web extension designed for party
  • Mopidy-OE1 (1.2.0)                  – Mopidy backend to access the Austrian radio station OE1.
  • Mopidy-Tidal (0.2.2)                – Tidal music service integration
  • Mopidy-VKontakte (0.3.1)            – Mopidy extension for VKontakte allows         to listen to music from VKontakte social network.
  • Mopidy-Scrobbler (1.1.1)            – Mopidy extension for scrobbling played tracks to Last.fm
  • Mopidy-Youtube (2.0.2)              – Mopidy extension that plays sound from YouTube
  • Mopidy-TwitterDJ (0.1.4)            – Controls Spotify via Twitter
  • Mopidy-Subsonic (1.0.0)             – Subsonic extension for Mopidy
  • Mopidy-Notifier (0.3.3)             – Mopidy extension for displaying Trackinfo as notifications on Mac OS X 10.8 and Linux
  • Mopidy-NAD (2.0.0)                  – Mopidy extension for controlling volume on a NAD amplifier
  • Mopidy-Tachikoma (0.2.4)            – Mopidy extension for talking to Slack
  • Mopidy-Touchscreen (1.0.0)          – Mopidy extension to show info on a display and control from it
  • Mopidy-MPRIS (1.3.1)                – Mopidy extension for controlling Mopidy through the MPRIS D-Bus interface
  • Mopidy-Pandora (0.4.0)              – Mopidy extension for Pandora
  • Mopidy-MusicBox-Webclient (2.4.0)   – Mopidy MusicBox web extension
  • Mopidy-TuneIn (0.4.1)               – Mopidy extension for playing music from TuneIn.
  • Mopidy-Yamaha (0.2.6)               – Mopidy extension for controlling volume on Yamaha receivers
  • Mopidy-Podcast (2.0.2)              – Mopidy extension for browsing and playing podcasts
  • Mopidy-WebSettings (0.2.1)          – Mopidy extension for editing settings in a webinterface
  • Mopidy-SomaFM (1.1.0)               – SomaFM extension for Mopidy
  • Mopidy-SoundCloud (2.0.2)           – SoundCloud extension for Mopidy
  • Mopidy-Spotify (3.1.0)              – Mopidy extension for playing music from Spotify
  • Mopidy-Radio-Rough (3.14.15)        – Rough gui for listening to internet
  • Mopidy-Mopify (1.6.1)               – A Mopidy Web client based on the (old) Spotify interface. Improved to work with spotify as main library.
  • Mopidy-Spotmop (2.10.1)             – A Mopidy Web client that utilizes the Spotify and EchoNest frameworks
  • Mopidy (2.1.0)                      – Music server with MPD and Spotify support
  • Mopidy_MFE (0.4.9)                  – Web client for Mopidy
  • MopidyCLI (0.2.0)                   – Mopidy tool controlling playback from command line
  • tidalapi4mopidy (0.1.3)             – Unofficial API for TIDAL music streaming service.

Facciamo un reboot e proviamo a collegarci con il pc o lo smartphone all’indirizzo http://localhost:6680/musicbox_webclient

Il sistema ha un’interfaccia responsive che si adatta anche al tuo device

Molto bene! Abbiamo finito di installare e configurare il sistema

 

Leave a Reply