All Projects → CFenner → MMM-Sonos

CFenner / MMM-Sonos

Licence: MIT license
A module for the MagicMirror to display informations about the currently playing songs on your Sonos system.

Programming Languages

javascript
184084 projects - #8 most used programming language
Nunjucks
165 projects
Less
1899 projects
CSS
56736 projects

Projects that are alternatives of or similar to MMM-Sonos

MMM-OpenmapWeather
This module loads current weather as images on Magic Mirror
Stars: ✭ 18 (-48.57%)
Mutual labels:  magicmirror, magic-mirror-modules
MMM-mvgmunich
MagicMirror² Module to monitor public transport (U-bahn, tram, bus, S-Bahn) in Munich
Stars: ✭ 21 (-40%)
Mutual labels:  magicmirror, magic-mirror-modules
MagicMirror-Module-Template
Template module for MagicMirror
Stars: ✭ 54 (+54.29%)
Mutual labels:  magicmirror, magic-mirror-modules
MMM-Netatmo
A module for the MagicMirror to display informations about your rooms climate from your Netatmo system.
Stars: ✭ 26 (-25.71%)
Mutual labels:  magicmirror, magic-mirror-modules
MMM-MotionDetector
This is a motion detector module for MagicMirror
Stars: ✭ 32 (-8.57%)
Mutual labels:  magicmirror, magic-mirror-modules
MirrorMirrorOnTheWallSkill
Alexa skill for controlling a MagicMirror²
Stars: ✭ 37 (+5.71%)
Mutual labels:  magicmirror, magic-mirror-modules
MMM-forecast-io
Forecast.io Module for MagicMirror
Stars: ✭ 58 (+65.71%)
Mutual labels:  magicmirror, magic-mirror-modules
node-red-contrib-sonospollytts
Play speech TTS using Sonos.
Stars: ✭ 11 (-68.57%)
Mutual labels:  sonos
Magicmirror
MagicMirror² is an open source modular smart mirror platform. With a growing list of installable modules, the MagicMirror² allows you to convert your hallway or bathroom mirror into your personal assistant.
Stars: ✭ 15,705 (+44771.43%)
Mutual labels:  magicmirror
CaravanPi
System for measuring and displaying various values in caravans and motor homes, including climate values, filling levels and levelling data. MagicMirror (https://magicmirror.builders/) is used for presentation. A circuit board design is available now
Stars: ✭ 14 (-60%)
Mutual labels:  magicmirror
MMM-PublicTransportBerlin
MagicMirror module to display public transport in Berlin and Brandenburg with BVG Hafas data.
Stars: ✭ 37 (+5.71%)
Mutual labels:  magicmirror
addon-magicmirror
MagicMirror² - Home Assistant Community Add-ons
Stars: ✭ 40 (+14.29%)
Mutual labels:  magicmirror
MMM-Fuel
Gas Station price Module for MagicMirror²
Stars: ✭ 47 (+34.29%)
Mutual labels:  magicmirror
noson
C++ library for accessing SONOS devices.
Stars: ✭ 20 (-42.86%)
Mutual labels:  sonos-api
AirConnect-Synology
Updated AirConnect packages for Synology NAS and Synology Router
Stars: ✭ 200 (+471.43%)
Mutual labels:  sonos
node-red-contrib-sonos-plus
A set of Node-RED nodes to control SONOS player in your local network.
Stars: ✭ 57 (+62.86%)
Mutual labels:  sonos
MMM-NFL
National Football League Module for MagicMirror²
Stars: ✭ 22 (-37.14%)
Mutual labels:  magicmirror
StatusBoard
Non-mirror setup using the MagicMirror Framework
Stars: ✭ 23 (-34.29%)
Mutual labels:  magicmirror
ioBroker.sonos
Control and monitor SONOS player from ioBroker
Stars: ✭ 33 (-5.71%)
Mutual labels:  sonos
HydraPlay
A multiroom audio player setup, based on snapcast and mopidy.
Stars: ✭ 102 (+191.43%)
Mutual labels:  sonos

code climate API License

MagicMirror-Sonos-Module

This is an adaption of the MagicMirror-SonosModule by Vaggan. It was modified to fit the new module system and got some enhancements in visualisation an configuration.

Sonos Module

Usage

Prerequisites:

Installation

Navigate into your MagicMirror's modules folder:

cd ~/MagicMirror/modules

Clone this repository:

git clone https://github.com/CFenner/MMM-Sonos

Navigate to the new MMM-Sonos folder and install the node dependencies.

cd MMM-Sonos/ && npm install --production

Configure the module in your config.js file.

Configuration

To run the module properly, you need to add the following data to your config.js file.

{
  module: 'MMM-Sonos',
  position: 'top_right', // you may choose any location
  config: {}
}

You also can set some options to hide different parts of the module.

Option Description Default
showStoppedRoom Trigger the visualization of stopped rooms. true
showAlbumArt Trigger the visualization of the album art. true
showRoomName Trigger the visualization of the room name. true

Known Issues

The module may not be able to access the data of the sonos API due to a Cross-Origin Resource Sharing (CORS) issue. This could be solved by adding the following lines to the sonos-http-api.js just before res.write(new Buffer(jsonResponse)); in the sonos api. Remember to restart the service after the change.

  res.setHeader("Access-Control-Allow-Origin", "http://localhost");
  res.setHeader("Access-Control-Allow-Headers", "Origin, X-Requested-With, Content-Type, Accept");

How to Install Sonos-API

To install the Sonos-API just clone the repository to your PI.

git clone https://github.com/jishi/node-sonos-http-api.git

Navigate to the new node-sonos-http-api folder and install the node dependencies.

cd node-sonos-http-api && npm install --production

Now you can run the service with:

npm start

I really recommend to use PM2 like it is described on the MagicMirror Wiki page.

cd ~/Sonos
npm start
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].