Announcement

Collapse
No announcement yet.

[Announce] Spicefly SugarCube - DSTM and Google Traffic

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    [Announce] Spicefly SugarCube - DSTM and Google Traffic

    Hi all,

    I don't normally put out an announce thread but I had a lot of interest in DSTM functionality which has now been added into SugarCube for testing, it seems to work but let me know. Note that if the player has SugarCube disabled but is selected as a DSTM provider it will still fire as expected.
    Also added Google Traffic which will show destination ETA on the player screen

    Stay safe, please feedback bugs and enhancement requests

    Full Version History on the link below and a cut of recent changes below;


    Version 5.22 - 4th August 2020
    + Added Implementation for DSTM. Note if SCube is disabled in the settings for the client, it will still fire if called by DSTM
    + Added enhanced stream checks so don't explode in the system log if client plays a Podcast
    = Renamed SugarCube Quick Play to Auto Mix and fixed issue with no seed track in the playlist bug
    = Removed experimental Global Player development code needs further work

    Version 5.10 - 22nd June 2020
    + Experimental Implementation of Google Traffic displays real-time journey ETA (Google API Key Required)

    Version 5.01 - 2nd February 2020
    + Implemented Trackstat stats into Liveview for Currently Playing and Coming Up next
    + Improved notification for when MusicIP Service is not running into the Liveview page
    + Refreshed and beautified Liveview layout
    + Refreshed and beautified Track History layout
    = Fixed sync master notification in Player Settings to name Master rather than sync group members
    + When the LMS database rescans and leaves temp files in the Player's playlist, will attempt to correct to the original file
    + Will not queue up a track when Spotify is playing
    www.spicefly.com - ** Spicefly SugarCube ** - A hassle free acoustic journey through your music library using MusicIP. Plus the finest MusicIP installation guides, enhanced MIP Interface and SpyGlass MIP the Windows Automated MusicIP Headless Installer.

    #2
    [placeholder]

    [placeholder]
    www.spicefly.com - ** Spicefly SugarCube ** - A hassle free acoustic journey through your music library using MusicIP. Plus the finest MusicIP installation guides, enhanced MIP Interface and SpyGlass MIP the Windows Automated MusicIP Headless Installer.

    Comment


      #3
      Thank you for solving the problems I ran into, the email contact we had went smoothly and again it is great that you found the error quickly.

      Comment


        #4
        Oh my, 2 different MusicIP DSTM providers at once Will test ...
        Main System: Marantz SR-5015 + Adam Audio T8V + Teufel Ultima 20 Mk 3 + BK Monolith+ FF + Lenovo T560 + Kodi + LG OLED65B26LA + UP-Board running Daphile
        Kitchen: Touch + Ikea ENEBY 30
        Home-Office: SqueezeLite-X + Topping DX3 Pro + NAD 312 + TMA Premium 905

        Comment


          #5
          Matching mount paths in Docker and Windows to use filters

          A big frustration is the inability to pass filters generated on a windows machine to headless MIP and LMS running on docker/Synolgy NAS. I have googled the subject extensively, but can’t find a way to share/copy a meaningful autoload.m3lib. The music folder is prepared on the windows machine and is mirrored nightly to the Synolgy. I can use the local copy or a mounted NAS folder for MusicIP mixer on Windows but have no mechanism to deal with the drive letter and perhaps the back slashes in the Windows path.

          As an alternative, I can easily generate m3u’s with correct Unix paths from Mediamonkey. Is it possible to feed these to the headless MIP and -
          1) Exclude all tracks in an m3u from Sugarcube mixes
          2) Use m3u’s as mood mixes

          I do have working MIP folders outside Docker so it’s no problem to copy m3u’s into any subfolders there.
          Last edited by guptaas; 2021-07-31, 21:44.

          Comment


            #6
            If you are creating filters using the Windows MIP version 1.96b then you can't copy that m3lib file to Linux and preserve the filters as far as I know, as the Windows version 1.96 had a difference cache structure to the Linux release.

            If you use the Windows MIP 1.8.1b version I understand it works ok, then just copying the m3lib file to Linux, you need to restart the service to re-read the file or refresh the cache by going to the host:10002 in a web browser and clicking the refresh cache button. The filters should then be exposed and visible in the LMS/SC Player page.

            You've probably already seen it but page here about filters, what kind of filters are you creating that are tied to paths? I've used them to group a number of genres together but these are then linked via the mp3 tags so not tied to a physical path.



            Moods I have no idea unfortunately, I don't have much in the way of saved documentation and I never found any good detailed explanations of how they should work anywhere.

            If you need to step down from MIP 1.96b to 1.81b ensure you have a backup of the m3lib file (in case you need to go back again) and ensure you have also saved the tags into the music files (archive analysis setting in MIP) and check they are using mp3tag. MIP will need to rescan and read the fingerprints to build the m3lib file and if they are not saved in the music file it will have to rescan and re-fingerprint your collection from scratch which would suck
            www.spicefly.com - ** Spicefly SugarCube ** - A hassle free acoustic journey through your music library using MusicIP. Plus the finest MusicIP installation guides, enhanced MIP Interface and SpyGlass MIP the Windows Automated MusicIP Headless Installer.

            Comment


              #7
              Where are the Ratings in MusicIP?

              Originally posted by cparker View Post
              If you are creating filters using the Windows MIP version 1.96b then you can't copy that m3lib file to Linux and preserve the filters as far as I know, as the Windows version 1.96 had a difference cache structure to the Linux release.

              If you use the Windows MIP 1.8.1b version I understand it works ok, then just copying the m3lib file to Linux, you need to restart the service to re-read the file or refresh the cache by going to the host:10002 in a web browser and clicking the refresh cache button. The filters should then be exposed and visible in the LMS/SC Player page.

              You've probably already seen it but page here about filters, what kind of filters are you creating that are tied to paths? I've used them to group a number of genres together but these are then linked via the mp3 tags so not tied to a physical path.



              Moods I have no idea unfortunately, I don't have much in the way of saved documentation and I never found any good detailed explanations of how they should work anywhere.

              If you need to step down from MIP 1.96b to 1.81b ensure you have a backup of the m3lib file (in case you need to go back again) and ensure you have also saved the tags into the music files (archive analysis setting in MIP) and check they are using mp3tag. MIP will need to rescan and read the fingerprints to build the m3lib file and if they are not saved in the music file it will have to rescan and re-fingerprint your collection from scratch which would suck
              Thank you so much for pointing out the obvious that I missed - The Windows version doesn't care that an m3lib file refers to song paths that lead nowhere as long as one doesn't do any operations on the music files themselves! I was able to make and save a filter back to the Synology headless MIP.

              Now I need to figure out why no ratings are visible in this file. They are an important part of desired Filters. Trackstat and Custom Scan plugins are installed and working. LMS Server log in debug mode for 'Custom Scan' revealed an inability to write to MusicIP. Made a musicip folder inside the LMS /config folder inheriting all permissions from the parent and then reinstalled MusicIP, mapping that folder as /home/musicip. This stopped any export errors. Stopped headless MusicIP to save everything to default.m3lib before opening it in Windows. However that default.m3lib shows no ratings in windows MusicIP Mixer. Stumped again. But I know I'll get it working one way or another.

              Comment


                #8
                Originally posted by guptaas View Post
                Thank you so much for pointing out the obvious that I missed - The Windows version doesn't care that an m3lib file refers to song paths that lead nowhere as long as one doesn't do any operations on the music files themselves! I was able to make and save a filter back to the Synology headless MIP.

                Now I need to figure out why no ratings are visible in this file. They are an important part of desired Filters. Trackstat and Custom Scan plugins are installed and working. LMS Server log in debug mode for 'Custom Scan' revealed an inability to write to MusicIP. Made a musicip folder inside the LMS /config folder inheriting all permissions from the parent and then reinstalled MusicIP, mapping that folder as /home/musicip. This stopped any export errors. Stopped headless MusicIP to save everything to default.m3lib before opening it in Windows. However that default.m3lib shows no ratings in windows MusicIP Mixer. Stumped again. But I know I'll get it working one way or another.
                Success. The problems was with permissions to write to default.m3lib.

                Comment


                  #9
                  Good stuff, sounds an excellent result
                  www.spicefly.com - ** Spicefly SugarCube ** - A hassle free acoustic journey through your music library using MusicIP. Plus the finest MusicIP installation guides, enhanced MIP Interface and SpyGlass MIP the Windows Automated MusicIP Headless Installer.

                  Comment


                    #10
                    I have been using Sugarcube for over 10 years now and it is probably the main reason (together with Trackstat) why I have not followed the trend of abandoning my own music collection for some streaming service, so thank you for maintaining this awesome plugin!

                    My partner and I are again and again amazed by the the excellent play-sequences it creates. Of course, Trackstat also plays an important role in that (and it did take a while until we had most of our tracks rated, but even in that process, Sugarcube helped by preferring unrated or not recently played songs).

                    Anyway, I wanted to ask whether the Sugarcube Automix can be triggered via some URL. That would allow me to start it via my home automation system and/or Alexa. Alternatively, if I could achieve the same if I could save Autoplay as a Favourite or a Playlist.
                    Server: LMS 8.2 on an Ubuntu 18.04 virtual machine
                    Players: Radio, Touch, Duet (Receiver & Controller), 2 Booms, Google Nest Hub (via chromecast plugin)
                    Remote control apps: Material Skin (Web UI), but also SqueezePad (iOS), Squeezecontroller (Android)
                    Important plugins: Trackstat, Spicefly Sugarcube, Lazy Search Music, Custom Browse, Multi Library

                    Comment


                      #11
                      Originally posted by chaug View Post
                      Anyway, I wanted to ask whether the Sugarcube Automix can be triggered via some URL. That would allow me to start it via my home automation system and/or Alexa. Alternatively, if I could achieve the same if I could save Autoplay as a Favourite or a Playlist.
                      100% agree on the utility of SugarCube, which has been in constant use in this house for a similar amount of time - it's just great.

                      You can launch a Sugarcube mix with the following:

                      http://<ip-address-of-your-server>:9000/plugins/SugarCube/settings/quickplay.html?player=<MAC-address-of-your-player>

                      You should already see this as a menu item somewhere in LMS as 'SugarCube Automix', but the URL works fine when called from outside LMS - I use it in Home Assistant for example to use a voice command to start a SugarCube mix on a given player. Hope this helps.

                      Comment


                        #12
                        Originally posted by goharbourview123 View Post

                        http://<ip-address-of-your-server>:9000/plugins/SugarCube/settings/quickplay.html?player=<MAC-address-of-your-player>
                        What a great end-of-the-week treat! Will try it out right away (I'm using OpenHAB, but basically same usage as with Home Assistant).

                        So great to be part of this little (?) community of SugarCube users.

                        BTW: Are you using it with Trackstat? To me the ratings are an important part of my recipes, but I'm not sure how long Trackstat will remain functional since it is no longer maintained. There is an alternative ("Ratings light") which seems to be future proof, but which I haven't looked closer at because it doesn't help me with SugarCube. I wonder whether there is a chance that SugarCube will become compatible with the new plugin?
                        Server: LMS 8.2 on an Ubuntu 18.04 virtual machine
                        Players: Radio, Touch, Duet (Receiver & Controller), 2 Booms, Google Nest Hub (via chromecast plugin)
                        Remote control apps: Material Skin (Web UI), but also SqueezePad (iOS), Squeezecontroller (Android)
                        Important plugins: Trackstat, Spicefly Sugarcube, Lazy Search Music, Custom Browse, Multi Library

                        Comment


                          #13
                          I do use Trackstat, but for filtering by playcount rather than rating - I've never managed to get my head around rating my music, and it seems a bit late to start with nearly 60,000 tracks!

                          The play count filter still seems to work just fine with SugarCube, but I have recently decided to uninstall other plugins by Erland (CustomScan and CustomBrowse) as they seemed to be working less reliably in the very latest versions of LMS - I'm on the nightly betas, so currently 8.3.0.

                          With SugarCube in such heavy use, I was finding I directly browse through my library so much less anyway, so didn't really need the extra views that these plugins presented, and the library function of CustomBrowse that I used for separating out our children's music was replaced by the native Additional Browse Modes in any case.

                          Comment


                            #14
                            Queue Up All Tracks like the original MusicIP Mix Plugin and playlist ordering

                            I sometimes like to use the option to Queue Up All Tracks like the original MusicIP Mix Plugin and does anyone know if is it possible to have the resulting playlist keep the MusicIP response track order intact?

                            Currently Spicefly appears to sort the resulting MusicIP response.

                            Request to MusicIP and response received:

                            #### Built URL Request for MusicIP:

                            ####
                            Plugins::SugarCube::Plugin::ScalarLoop (448)
                            #### MusicIP Responded with ####
                            Z:\Rock\Lady GaGa\The Fame\03.Paparazzi.mp3
                            Z:\Rock\Muse\Black Holes and Revelations\02 - Starlight.mp3
                            Z:\Rock\Lady GaGa\The Fame\08.Money Honey.mp3
                            Z:\Rock\Melanie Fiona\The Bridge\08.Johnny.flac
                            Z:\Rock\Lady GaGa\The Fame\07.The Fame.mp3
                            Z:\Rock\Paper or Plastic\Don't Be Like That\07.Cheers Veronica.flac
                            Z:\Rock\Screaming Trees\Dust\05. Make My Mind.flac
                            Z:\Rock\Matt Boydston\Going Places\01.Cat Named Dwayne.flac
                            Z:\Rock\Good Charlotte\The Chronicles of Life and Death\15.Falling Away .flac


                            Spicefly then sorts by artist (truncated for illustration purposes)

                            Plugins::SugarCube::Plugin::ScalarLoop (518) Vintage Mode; Save History; file:////USPDXNAS01/Music/MusicCatalog/Rock/Amanda%20Marshall/Everybody%27s%20Got%20A%20Story/05.Double%20Agent.flac
                            Plugins::SugarCube::Plugin::ScalarLoop (518) Vintage Mode; Save History; file:////USPDXNAS01/Music/MusicCatalog/Rock/Amanda%20Marshall/Everybody%27s%20Got%20A%20Story/07.Sunday%20Morning%20After.flac
                            Plugins::SugarCube::Plugin::ScalarLoop (518) Vintage Mode; Save History; file:////USPDXNAS01/Music/MusicCatalog/Rock/Amanda%20Marshall/Everybody%27s%20Got%20A%20Story/09.Dizzy.flac
                            Plugins::SugarCube::Plugin::ScalarLoop (518) Vintage Mode; Save History; file:////USPDXNAS01/Music/MusicCatalog/Rock/Amy%20Winehouse/Back%20to%20Black/03.Me%20&%20Mr%20Jones.mp3
                            Plugins::SugarCube::Plugin::ScalarLoop (518) Vintage Mode; Save History; file:////USPDXNAS01/Music/MusicCatalog/Rock/Amy%20Winehouse/Back%20to%20Black/05.Back%20to%20Black.mp3
                            Plugins::SugarCube::Plugin::ScalarLoop (518) Vintage Mode; Save History; file:////USPDXNAS01/Music/MusicCatalog/Rock/Amy%20Winehouse/Back%20to%20Black/10.He%20Can%20Only%20Hold%20Her.mp3

                            Comment

                            Working...
                            X