If you need a digital exit where on/off means playing/not-playing, use an RS Flip-flop: This is not required, but useful to keep the fake and the real music server in sync. Time: analog, push the time of the current song being played.Pushing 0 will set the player in "streaming" mode. Duration: analog, push the duration, in seconds, of the current song being played.Artist: text, push the album of the current song being played.Album: text, push the album of the current song being played.Title: text, push the title of the current song being played.You have access to the following outputs: After importing them, and before anything else, you will have to configure the IP of the LoxBerry, replacing by the real IP. Virtual outputs: those will let you inform the plugin about data needed by the player.Repeat: analog, represents the repeating state ( 0 = do not repeat, 1 = repeat one song, 2 = repeat playlist).Shuffle: analog, represents the shuffling state ( 0 = not active, 1 = active).Queue index: analog, represents the position in the queue, as 0-based index.Time: analog, represents the current time set by the user, in seconds (e.g.Volume: analog, represents the volume set by the user on a range.Pause: digital, will emit a pulse when pausing.Play: digital, will emit a pulse when starting to play. Virtual inputs: those will let you know when something happens in a zone, triggered by the user.You can download templates for both of them from the configuration page. Now it's time to bring in the virtual inputs and outputs to be able to act on them. After rebooting you should get the zone as connected, with the player stopped. Drag the first zone of the Music Server and make it visible in the UI.Set as its address, where 192.168.1.2 is the IP address of the LoxBerry.Head to the Loxone Config, and add a Music Server (Audio/Add Audio Server/Loxone Music Server/Loxone Music Server x Zones).Configure the amount of music servers you want, and their zones.Download and install the ZIP file and restart the LoxBerry.While this may seem to be a tricky setup, it enables users to configure whatever action they want when the user clicks play, pause, etc. The Music Server interface provides virtual inputs and outputs into the Loxone Miniserver, from which you can act based on the different actions provided by the Music Zone interface. Each fake music server can be configured with an arbitrary number of zones. Fake music servers are created in different ports of the LoxBerry, starting at port 6091. This plugin provides a fake music server that the Loxone Miniserver can connect to. Some help is also welcome, especially in the Virtual IO and the Web interface parts. Please report bugs through the GitHub interface. Note: right now the plugin is in a very early phase of development, and it's currently unstable.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |