When we see the alert has come to an end, we return everything back the way it was prior to the alert. In doing this we power-on each player if it was off, pause the current song if the player was active, set repeat to 'none' so we don't play an infinite loop of alerts, and set the desired volume-level. Next we play the desired alert audio clips - first a 'pre-chime' to get our attention, then the actual alert message MP3 audio file (you can pre-generate a series of these using e.g. The basic idea (with both approaches) is to first retrieve and save several current parameters from each player: power state (on/off), play-mode (play/pause/stop), repeat-mode (none/song/playlist), current-playlist (if any), current time-position within currently-playing song (if any), plus the current volume setting. YMMV but if it happens a lot in your situation then it's best to use the multi-threaded version. If this happens when playing an audio alert then part of the speech will be skipped over as the sync progresses. One thing worth knowing about syncgroups is that they often start out with a small time-difference between players which is then quickly corrected by LMS (it speeds up a lagging player to catch up). You can try both approaches and see which one works best for you. The second approach assembles/disassembles a temporary syncgroup from the players in question, meaning no echo around the house if you deploy alerts to a lot of players at the same time. This has the advantage of not interfering with any syncgroups you may habitually use. The first one uses a script that's multi-threaded and will play alerts on multiple players around your home at more or less the same time (but not truly synced). The concept will work with any type of player (including software players) but the radio and boom are well-suited as they have their own amplifier and can therefore act autonomously. The Squeezebox radio and boom players can be used to play audio alerts from Domoticz via the following perl scripts. Add support for Timers (schedule your player to play playlists).(Song-)Titles with special characters will show wrong symbols in the logfile.The MAC-address of your player(s) can be found in the Hardware-settings of your Logitech Media Server hardware. This is configured via the Notifications tab on the Settings page as shown here:įill in the MAC-address (separated by a semicolon) and the duration that the message will be displayed on the screen (in seconds) Will set the volume of the player-output.ĬommandArray='Set Volume 30'ĬommandArray='Play Playlist WakeUpList1'ĬommandArray='Play Favoritesĭomoticz can display notification messages on the screens of certain Logitech Media Players. The following actions can be performed by using 'Set' on a Logitech Media Player. The logfile also reports detected players when starting the Logitech Media Server hardware.ĭomoticz device events work for Logitech Media Players using both Blockly and LUA.Įvents and notifications are triggered for: If your player model is not supported, it will be reported in the logfile. PiCoreplayer based on Squeezelite software.If you entered the correct IP & port of your Logitech Media Server, your players will be detected and displayed under Devices. Ping timeout controls how long Domoticz will try to contact the Logitech Media Server.Poll interval controls how often Domoticz will attempt to reconnect to the Logitech Media Server to poll the player's status.Fill in the IP of your Logitech Media Server and the port you specified.Ĭlick 'Setup' to see the detected/connected players. Default port for Web Server connections is 9000 or 9002.Īdd the Logitech Media Server via the Hardware page under Settings. Your Logitech Media Server must be configured to allow Domoticz to control the attached players. Logitech Media Server in Domoticz Logitech Media Server Settings Synology provides updates to a fairly recent community build from time to time on their beta channel. The latest version can be downloaded here. Logitech EOL'd the product line in 2012 but the open-source LMS software is still actively developed in a so-called community effort. Logitech Media Server (formerly SlimServer, SqueezeCenter and Squeezebox Server) is a streaming audio server supported by Logitech (formerly Slim Devices), developed in particular to support their Squeezebox range of digital audio receivers. 10 Spoken Now-Playing using Amazon Polly TTS.9 Sync/Unsync a Group of Players from Domoticz.7 Using Ambient Light Sensor in SB-Radio and SB-Touch.6.3.2 Second variant of, using temporary syncgroups.6.3.1 First variant of, not using syncgroups but using threading.
0 Comments
Leave a Reply. |