Webapp for LMS ?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dbarnum1976
    Junior Member
    • Mar 2017
    • 2

    #31
    Can you explain this forum a little easier for me to understand but I do use Firefox and this seamed very interesting

    Sent from my LG-K540 using Tapatalk

    Comment

    • Jeff07971
      Senior Member
      • Aug 2011
      • 1899

      #32
      Originally posted by dbarnum1976
      Can you explain this forum a little easier for me to understand but I do use Firefox and this seamed very interesting

      Sent from my LG-K540 using Tapatalk
      I'm afraid this will not work with firefox, only Chrome.

      Jeff
      sigpic
      Want a webapp ? Get SqueezeLite-X ! https://forums.slimdevices.com/showt...l=1#post903953

      Comment

      • bobertuk
        Senior Member
        • May 2009
        • 717

        #33
        Originally posted by UZI
        Thank you for this useful tip!

        I checked this out and created the same "shortcut" in Mac OSx
        1. First open Apple script editor
        2. create a script with content "do shell script "/Applications/Google\\ Chrome.app/Contents/MacOS/Google\\ Chrome --app=http://linuxserver:9000"
        3. save script
        4. export script as program
        5. open and enjoy your app ;-)

        Regards
        UZI
        Can do the same on Ubuntu as follows...

        Right click on Desktop and 'Create Launcher'

        Type: Application
        Name: Open LMS
        Command: chromium-browser --app=http://192.168.1.110:9000
        Description: Open LMS as Web App

        Click on icon and change to, for example...

        /usr/share/icons/matefaenza/apps/64/soundconverter.png


        Bob
        2 x Touch
        2 x Radio
        2 x Boom
        1 x Intel-NUC server/squeezelite running LMS 8.20 (from nightlies) on Windows 10
        1 X Odroid-XU4 server/squeezelite running LMS 7.91 on Ubuntu 16.04
        1 x iMac server running macOS Big Sur
        WaveIO USB into Lavry DA-10 DAC
        Starfish Pre-amp : Based on NAIM NAC 72
        Heavily modified NAIM NAP 250 Power-amp
        Focal Electra 1027 Be II Speakers

        Comment

        • indifference_engine
          Senior Member
          • Oct 2008
          • 597

          #34
          Beta Web App Wrapper

          Hi All,

          This thread has prompted me to develop a little VB.Net application to do what is being asked here. It uses the dotNET framework's WebBrowser control to render the pages using whichever version of Internet Explorer that happens to be installed on your system. It appears to work ok using the recently release stable v7.9.0 version of LMS until you go onto the View Albums page when all hell breaks loose (usually but not always). I don't see this behaviour when using IE11, only when using the embedded WebBrowser control. A second gotcha is that clicking the 'close' button at the bottom of the settings screen causes things to lock up so you have to close it the "normal" way by using the red X in the title bar.

          If you want to give it a go to see if you have better luck than me then the binary is downloadable from here: https://drive.google.com/file/d/0B3F...ew?usp=sharing

          To use it, just run it with a command line argument that specifies the url. There is also a a second, optional argument to hide the status bar:
          Code:
          usage: WebAppWrapper.exe url [NOTSTATUS]
          
          eg:  WebAppWrapper.exe "http://127.0.0.1:9000"
          or:  WebAppWrapper.exe "http://127.0.0.1:9000" NOSTATUS
          If anyone wants to see if they can work out why it crashes when viewing albums then the source code is available on request (pm me for it) but there isn't much to it really. I suspect the problem is with the WebBrowser control's internal rendering engine (which should be the same as ie11 in my case but obviously isn't!).
          Attached Files
          1xRadio, 2xReceiver, 2xController, 1xSB3, 1xSqueezeLite (on Rpi3/Jessie), SBS 7.9.2 (on Rpi3/Jessie)
          Creator of SqueezeIR applet for the Controller.
          Creator of LineInButton applet for the Radio.

          Comment

          • Wirrunna
            Senior Member
            • Jan 2006
            • 1309

            #35
            See http://forums.slimdevices.com/showth...from-Tray-Icon
            A camel is a racehorse designed by a committee.

            Seen sprayed on the outside wall of the local library -
            Three things I hate in life :
            1. Vandalism
            2. Irony
            3. Lists

            Comment

            • rgdawson
              Senior Member
              • Jan 2016
              • 1241

              #36
              When you use the built in Windows web browser, you need to control which version of IE it emulates by creating a registry setting for your app. Otherwise, it will default to a very old emulation (IE 7).
              So you would need to create a registry entry for your app at :

              Computer\HKEY_CURRENT_USER\Software\Microsoft\Inte rnet Explorer\Main\FeatureControl\FEATURE_BROWSER_EMULA TION

              Click image for larger version

Name:	FEATURE_BROWSER_EMULATION.PNG
Views:	1
Size:	30.0 KB
ID:	1563903

              Create an entry [yourapp.exe] REG_DWORD 0x00002711.

              Then it will run using IE11 emulation. That should solve your problem.

              Googling FEATURE_BROWSER_EMULATION will give you more detail.

              R Greg Dawson
              Last edited by rgdawson; 2018-01-11, 18:02.
              Squeezelite-X

              Comment

              • deckeda
                Junior Member
                • Sep 2012
                • 17

                #37
                Originally posted by UZI
                Thank you for this useful tip!

                I checked this out and created the same "shortcut" in Mac OSx
                1. First open Apple script editor
                2. create a script with content "do shell script "/Applications/Google\\ Chrome.app/Contents/MacOS/Google\\ Chrome --app=http://linuxserver:9000"
                3. save script
                4. export script as program
                5. open and enjoy your app ;-)

                Regards
                UZI
                Mine is a variation upon that, using the Epic web browser (based off of Chrome) and substituted Automator to create both a Finder Service as well as an application from shell script. The picture shows the Automator flow settings.

                Click image for larger version

Name:	automator_workflow.png
Views:	1
Size:	78.8 KB
ID:	1563945

                Code:
                /Applications/Epic.app/Contents/MacOS/Epic --app=http://192.168.1.101:9002 &> /dev/null 2>&1 &
                I have LMS running on a Synology NAS located at a fixed IP in my LAN ... (LMS is at 9002 for me.)

                In my experience, testing/running the flow within Automator will not reveal the actual environment experience. When I first did this I did not include " &> /dev/null 2>&1 &" and everything seemed fine until I tried to run the application I'd made or the Service. Automator's gear icon in the menubar would not stop, because the script was waiting in eternity for something to happen next.

                Code:
                 &> /dev/null 2>&1 &
                Including that code at the end allows the script's output and any errors to be shunted and so the script ceases upon execution (successful or not?). It also allows the resulting target (Epic web browser) to stay running if/when Automator is quit.

                And that's the entirely of what I know about scripting!

                Comment

                • markm9999
                  Senior Member
                  • Nov 2015
                  • 204

                  #38
                  I know this is an older post/thread, but figured I'd post something more 2018 for folks that stumble in here...

                  As nice as this all is, the newly released Squeezelite-X is great, and is probably what you're looking for nowadays - in the Windows world at least.

                  Having said that, I would highly recommend looking into devices. I use both of these excellent apps - iPeng & Squeeze Ctrl (Angry Goat Software).

                  Since iPeng is for Apple DEVICES only, I would also recommend looking at Squeeze Ctrl/Control (Angry Goat Software), which is available in the Windows 10 app store (24hr trial/$4.49 to purchase).

                  I run Squeeze Ctrl on my Amazon Fire 7" tablets I got at Christmas time (3-pack 7" $75!, 8" $120!).
                  Both of these will obviously work with any player, I also bought their 'SB Player' because it 'auto-launches' with the app.

                  This solution results in a complete, portable tablet controller/player solution for a pretty damn cheap price!

                  I do wish iPeng would come out with an implementation for Android, because it is my 'first love' of these apps, but the Android infrastructure is just to damn inexpensive to ignore anymore.

                  Just my 2 cents...
                  Player: 1 x Transporter w/Trans-knob, 2 x Touch (Active, 3 x Spares), 4 x Boom (Active, 9 x Spares)
                  Server: 1 x Win Server (ESXi 6.x) w/LMS, 1 x HP 24" Touch Screen PC w/LMS & SqueezePlay
                  Control: 4 x w/iPeng, 1 x Samsung Note 4, 3ea x Fire 7", 8” tablets, 1 x 10" all w/SqueezeCtrl & Player (Angry Goat)
                  Audio: Mark Levinson 23.5 Amp, 380s Pre, 390s CD, B&W 801 II, Acoustic Energy AE-2 signature, SOTA Sapphire table

                  Computer geek/tech hoarder(!), and DAMN I love the LMS/Squeeze infrastructure!

                  Comment

                  • merlinus
                    Member
                    • Jan 2017
                    • 80

                    #39
                    Originally posted by bobertuk
                    Can do the same on Ubuntu as follows...

                    Right click on Desktop and 'Create Launcher'

                    Type: Application
                    Name: Open LMS
                    Command: chromium-browser --app=http://192.168.1.110:9000
                    Description: Open LMS as Web App

                    Click on icon and change to, for example...

                    /usr/share/icons/matefaenza/apps/64/soundconverter.png


                    Bob
                    In Ubuntu 18.04 (and probably beyond), the correct command is now:

                    google-chrome --app=http://192.168.1.110:9000 (change the IP address to yours).
                    Last edited by merlinus; 2019-01-09, 07:40.
                    -merlin

                    RPi 3B HiFiBerry digi-plus running pCP 4.10 and LMS

                    Comment

                    Working...