Home of the Squeezebox™ & Transporter® network music players.
Page 1 of 3 123 LastLast
Results 1 to 10 of 25
  1. #1
    Junior Member
    Join Date
    Jun 2020
    Posts
    10

    How to download detailed information about the currently played track via html

    I can get actual played song by sending to LMS http://server:9000/status

    Is it possible to get detailed information about bits, frequency, stream type (PCM, DSD, etc.) like this: 44.1 Hz, 16 bits, FLAC? And if so, how to do it using an html query with out javascript?

  2. #2
    Senior Member
    Join Date
    Feb 2011
    Location
    Cheshire, UK
    Posts
    5,448
    Try the material skin plugin

    To open in standard mode
    http://server:9000/material
    Configure it to display bit rate in Settings at top right

    Reopen into now-playing mode
    http://server:9000/material/now-playing

    To open a specific player you need to add the players MAC address. Look up how as I canĺt recall exactly the syntax.

    Material skin will work with any html5 compliant browser.
    VB2.4 storage QNAP TS419p (NFS)
    Living Room Joggler & Pi4/Khadas -> Onkyo TXNR686 -> Celestion F20s
    Office Joggler & Pi3 -> Denon RCD N8 -> Celestion F10s
    Dining Room SB Boom
    Kitchen UE Radio (upgraded to SB Radio)
    Bedroom (Bedside) Pi Zero+DAC ->ToppingTP21 ->AKG Headphones
    Bedroom (TV) & Bathroom SB Touch ->Denon AVR ->Mordaunt Short M10s + Kef ceiling speakers
    Guest Room Joggler > Topping Amp -> Wharfedale Modus Cubes
    Everything controlled by iPeng & Material on iOS

  3. #3
    Senior Member
    Join Date
    Jun 2017
    Posts
    375
    Quote Originally Posted by payong View Post
    I can get actual played song by sending to LMS http://server:9000/status

    Is it possible to get detailed information about bits, frequency, stream type (PCM, DSD, etc.) like this: 44.1 Hz, 16 bits, FLAC? And if so, how to do it using an html query with out javascript?
    I don't know if this is the sort of thing you have in mind, but since you specified that you want something without javascript, maybe the lynx command-line browser would do what you need, if it's available for the platform you're using.

    This command:

    Code:
    lynx http://[LMS URL]:9000/Classic/status_header.html
    takes me to a text-mode representation of the status frame. It may be necessary to select the correct player at the top of the page. After that, go the song title at the bottom of the page and follow that link. That goes to the Song Info screen with information like this

    Code:
       File Format: FLAC
       Duration: 2:35
       Volume Adjustment: -1.39 dB
       Bitrate: 261kbps VBR
       Sample Rate: 44.1 kHz
       Sample Size: 16Bits
    I hope this helps.
    LMS 8 nightly; 3 Squeezelite players connected by powerline ethernet; 5 wireless players connected via Airplay Bridge; 1 SqueezeAmp player
    no high-end or esoteric audio gear
    1 Squeezebox Radio (upgraded UE Smart Radio) now mostly retired

  4. #4
    Junior Member
    Join Date
    Jun 2020
    Posts
    10
    @d6jg - thx You for reply but this still needs a lot of javascript

    @RobbH - at the moment it looks that i can manage and that's it. Thank You. It works in c# VisualStudio now i'll take approach with esp32 and arduino.

  5. #5
    Senior Member
    Join Date
    Feb 2011
    Location
    Cheshire, UK
    Posts
    5,448
    Quote Originally Posted by payong View Post
    @d6jg - thx You for reply but this still needs a lot of javascript

    @RobbH - at the moment it looks that i can manage and that's it. Thank You. It works in c# VisualStudio now i'll take approach with esp32 and arduino.
    Sorry I thought you meant without having to write something yourself with JavaScript
    VB2.4 storage QNAP TS419p (NFS)
    Living Room Joggler & Pi4/Khadas -> Onkyo TXNR686 -> Celestion F20s
    Office Joggler & Pi3 -> Denon RCD N8 -> Celestion F10s
    Dining Room SB Boom
    Kitchen UE Radio (upgraded to SB Radio)
    Bedroom (Bedside) Pi Zero+DAC ->ToppingTP21 ->AKG Headphones
    Bedroom (TV) & Bathroom SB Touch ->Denon AVR ->Mordaunt Short M10s + Kef ceiling speakers
    Guest Room Joggler > Topping Amp -> Wharfedale Modus Cubes
    Everything controlled by iPeng & Material on iOS

  6. #6
    Junior Member
    Join Date
    Jun 2020
    Posts
    10
    @d6jg

    No problem

  7. #7
    Senior Member
    Join Date
    Aug 2009
    Posts
    393
    Quote Originally Posted by payong View Post
    I can get actual played song by sending to LMS http://server:9000/status

    Is it possible to get detailed information about bits, frequency, stream type (PCM, DSD, etc.) like this: 44.1 Hz, 16 bits, FLAC? And if so, how to do it using an html query with out javascript?
    Could you describe what you are trying to do?

    For html, I would suggest using the Fishbone skin, which allows you to see exactly what URLs are used (by hovering over a link or opening it in a new tab). For example, hovering over a track on the current playlist from the status page:

    http://192.168.0.XX:9000/Fishbone/so...3A00%3A00%3A00

    It is easier to parse things if you use the JSON interface (no screen scraping required):

    https://gist.github.com/samtherussel...d2470b8689d9f2

    I'm sure C# has some facility for parsing JSON.
    Last edited by Daverz; 2021-01-23 at 15:47.

  8. #8
    Senior Member
    Join Date
    Jun 2017
    Posts
    375
    Quote Originally Posted by payong View Post
    .... @RobbH - at the moment it looks that i can manage and that's it. Thank You. It works in c# VisualStudio now i'll take approach with esp32 and arduino.
    I'm glad that's working for you. Just for what it's worth, it might be worthwhile to check some of the other minimal web interfaces that come with LMS. Fishbone and Nokia770 produce results that are similar but not identical to Classic. It may be that the formatting of one of those would be easier to work with.
    LMS 8 nightly; 3 Squeezelite players connected by powerline ethernet; 5 wireless players connected via Airplay Bridge; 1 SqueezeAmp player
    no high-end or esoteric audio gear
    1 Squeezebox Radio (upgraded UE Smart Radio) now mostly retired

  9. #9
    Babelfish's Best Boy mherger's Avatar
    Join Date
    Apr 2005
    Location
    Switzerland
    Posts
    20,524

    How to download detailedinformation about the currently played track via html

    > I'm glad that's working for you. Just for what it's worth, it might be
    > worthwhile to check some of the other minimal web interfaces that come
    > with LMS. Fishbone and Nokia770 produce results that are similar but not
    > identical to Classic. It may be that the formatting of one of those
    > would be easier to work with.


    Fishbone?!?! Nokia770?!?! What ancient LMS version are you running?
    These skins have long gone... I'd say since LMS 7.6?

    To the OP: I'm not sure I understand what you're trying to do. But
    instead of trying to find an HTML page with the data you then have to
    extract, why don't you use the JSON/RPC mechanism with the "status"
    query? Would return well structured JSON data which should be much
    easier to parse (standard) than HTML.

    --

    Michael

  10. #10
    Junior Member
    Join Date
    Jun 2020
    Posts
    10
    @Daverz

    What I'm trying to do? I've build DAC and i can display on LCD display information form USB to I2S interface (amanero) about incoming form Daphile strem: stream type PCM/DSD and item sampling rate, DAC volume. This information are from output of Daphile which uses LMS. But I'm trying to get information about input stream to Daphile. Because sometimes I'have made some conversion of input stream.
    To get information from USB/I2S interface and set some DAC features I'm using ESP32 kit. There is a WiFi module to connect with Daphile

    @mherger

    I'll try with Json querry.


    I'am using Visual Studio for experiments and next I'll start with arduino on target platform. I'm familiar with VS so I can test more quickly then in arduino.
    Last edited by payong; 2021-01-24 at 08:05.

Posting Permissions

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