Home of the Squeezebox™ & Transporter® network music players.
Page 673 of 764 FirstFirst ... 173573623663671672673674675683723 ... LastLast
Results 6,721 to 6,730 of 7635
  1. #6721
    Senior Member
    Join Date
    Mar 2017
    Posts
    2,945
    Quote Originally Posted by SpiderJon View Post
    Thanks for that jeroen2 Ś very useful to know.
    If you create actions.json with the following, then you will get 'Server settings' in the main menu:

    Code:
    {
      "system":[
        {
          "title":"Server settings",
          "script":"bus.$emit('dlg.open', 'iframe', '/material/settings/server/basic.html', 'Server settings')",
          "icon":"dns"
        }
      ]
    }
    Material debug: 1. Launch via http: //SERVER:9000/material/?debug=json (Use http: //SERVER:9000/material/?debug=json,cometd to also see update messages, e.g. play queue) 2. Open browser's developer tools 3. Open console tab in developer tools 4. REQ/RESP messages sent to/from LMS will be logged here.

  2. #6722
    Senior Member SpiderJon's Avatar
    Join Date
    Dec 2008
    Location
    Cardiff, Wales, UK
    Posts
    221
    Quote Originally Posted by cpd73 View Post
    If you create actions.json with the following, then you will get 'Server settings' in the main menu:

    Code:
    {
      "system":[
        {
          "title":"Server settings",
          "script":"bus.$emit('dlg.open', 'iframe', '/material/settings/server/basic.html', 'Server settings')",
          "icon":"dns"
        }
      ]
    }
    Thanks for that cpd73 Ś much appreciated (and now live on my system).
    Duet x 3, via various hi-fi. LMS on Raspberry Pi OS (Debian 10) on a Pi4.

  3. #6723
    Senior Member
    Join Date
    Jul 2007
    Location
    Boston, MA, USA
    Posts
    171
    Quote Originally Posted by cpd73 View Post
    If you create actions.json with the following, then you will get 'Server settings' in the main menu:

    Code:
    {
      "system":[
        {
          "title":"Server settings",
          "script":"bus.$emit('dlg.open', 'iframe', '/material/settings/server/basic.html', 'Server settings')",
          "icon":"dns"
        }
      ]
    }
    That's very cool.

    Sorry for asking, but is there a few lines for actions.json that will add the player settings? I can see the icon should be music_note, but I can't figure out what the URL should be for the iframe (or what the call should be). Sadly I'm not a knowledgeable js programmer, but definitely know enough to break things.

    TomS
    SB3(1), Boom(2), Radio(3), piCorePlayer (1)

  4. #6724
    Senior Member
    Join Date
    Jan 2013
    Posts
    327
    Quote Originally Posted by cpd73 View Post
    If you create actions.json with the following, then you will get 'Server settings' in the main menu:

    Code:
    {
      "system":[
        {
          "title":"Server settings",
          "script":"bus.$emit('dlg.open', 'iframe', '/material/settings/server/basic.html', 'Server settings')",
          "icon":"dns"
        }
      ]
    }
    Hi Craig

    I have created a folder called material-skin within prefs and placed the actions.json file made up of the above code, restarted the server but cannot see Server Settings in the menu. Is there anything else I should be doing?
    Last edited by Shozzer; 2021-03-04 at 13:44.

  5. #6725
    Senior Member
    Join Date
    Mar 2017
    Posts
    2,945
    Quote Originally Posted by TomS View Post
    That's very cool.

    Sorry for asking, but is there a few lines for actions.json that will add the player settings? I can see the icon should be music_note, but I can't figure out what the URL should be for the iframe (or what the call should be). Sadly I'm not a knowledgeable js programmer, but definitely know enough to break things.

    TomS
    Server & player settings:

    Code:
    {
      "system":[
        {
          "title":"Server settings",
          "script":"bus.$emit('dlg.open', 'iframe', '/material/settings/server/basic.html', 'Server settings')",
          "icon":"dns"
        },
        {
          "title":"Player settings",
          "script":"bus.$emit('dlg.open', 'playersettings')",
          "icon":"music_note"
        }
      ]
    }
    Note: 2.3.2 will have better icons for server and player settings...
    Material debug: 1. Launch via http: //SERVER:9000/material/?debug=json (Use http: //SERVER:9000/material/?debug=json,cometd to also see update messages, e.g. play queue) 2. Open browser's developer tools 3. Open console tab in developer tools 4. REQ/RESP messages sent to/from LMS will be logged here.

  6. #6726
    Senior Member
    Join Date
    Mar 2017
    Posts
    2,945
    Quote Originally Posted by Shozzer View Post
    I have created a folder called material-skin within prefs and placed the actions.json file made up of the above code, restarted the server but cannot see Server Settings in the menu. Is there anything else I should be doing?
    Might need to refresh your browser's cache (hard reload?). Also, ensure the file is 100% valid JSON - check via https://duckduckgo.com/?q=json+parser&t=h_&ia=answer
    Material debug: 1. Launch via http: //SERVER:9000/material/?debug=json (Use http: //SERVER:9000/material/?debug=json,cometd to also see update messages, e.g. play queue) 2. Open browser's developer tools 3. Open console tab in developer tools 4. REQ/RESP messages sent to/from LMS will be logged here.

  7. #6727
    Senior Member
    Join Date
    Jul 2007
    Location
    Boston, MA, USA
    Posts
    171
    Quote Originally Posted by cpd73 View Post
    Server & player settings:

    Code:
    {
      "system":[
        {
          "title":"Server settings",
          "script":"bus.$emit('dlg.open', 'iframe', '/material/settings/server/basic.html', 'Server settings')",
          "icon":"dns"
        },
        {
          "title":"Player settings",
          "script":"bus.$emit('dlg.open', 'playersettings')",
          "icon":"music_note"
        }
      ]
    }
    Note: 2.3.2 will have better icons for server and player settings...
    Thanks very much!
    SB3(1), Boom(2), Radio(3), piCorePlayer (1)

  8. #6728
    Senior Member
    Join Date
    Mar 2017
    Posts
    2,945
    Quote Originally Posted by TomS View Post
    That's very cool.

    Sorry for asking, but is there a few lines for actions.json that will add the player settings? I can see the icon should be music_note, but I can't figure out what the URL should be for the iframe (or what the call should be). Sadly I'm not a knowledgeable js programmer, but definitely know enough to break things.

    TomS
    Ah! If you mean directly into LMS's player settings, then:

    Code:
    {
      "system":[
        {
          "title":"Server settings",
          "script":"bus.$emit('dlg.open', 'iframe', '/material/settings/server/basic.html', 'Server settings')",
          "icon":"dns"
        },
        {
          "title":"Player settings",
          "script":"bus.$emit('dlg.open', 'iframe', '/material/settings/player/basic.html?player=$ID', 'Player settings');",
          "icon":"music_note"
        }
      ]
    }
    Material debug: 1. Launch via http: //SERVER:9000/material/?debug=json (Use http: //SERVER:9000/material/?debug=json,cometd to also see update messages, e.g. play queue) 2. Open browser's developer tools 3. Open console tab in developer tools 4. REQ/RESP messages sent to/from LMS will be logged here.

  9. #6729
    Senior Member
    Join Date
    Jan 2013
    Posts
    327
    Quote Originally Posted by cpd73 View Post
    Might need to refresh your browser's cache (hard reload?). Also, ensure the file is 100% valid JSON - check via https://duckduckgo.com/?q=json+parser&t=h_&ia=answer
    All good now, thanks.

  10. #6730
    Senior Member
    Join Date
    Jul 2007
    Location
    Boston, MA, USA
    Posts
    171
    Quote Originally Posted by cpd73 View Post
    Ah! If you mean directly into LMS's player settings, then:

    Code:
    {
      "system":[
        {
          "title":"Server settings",
          "script":"bus.$emit('dlg.open', 'iframe', '/material/settings/server/basic.html', 'Server settings')",
          "icon":"dns"
        },
        {
          "title":"Player settings",
          "script":"bus.$emit('dlg.open', 'iframe', '/material/settings/player/basic.html?player=$ID', 'Player settings');",
          "icon":"music_note"
        }
      ]
    }

    thanks for double responding - I appreciate having the options! I actually meant the first version, Material's player screen (just want a quick way to get to the sleep timer for a player).
    SB3(1), Boom(2), Radio(3), piCorePlayer (1)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •