Home of the Squeezebox™ & Transporter® network music players.
Results 1 to 3 of 3
  1. #1

    LMS web interface update time lag

    Hi everyone,

    I am new to Squeezebox and am happy to have set up my first LMS with local Squeezelite on a RPi - with lots of help from your forum.

    Intended application:
    - run internet radio stations
    - user interface (with reduced user interaction)
    -- control playlist of preferred stations via Apple remote A1156 (play/pause, volume up/down, next/previous station)

    Setup:
    - RPi 3b+
    $ cat /etc/debian_version
    10.10
    $ cat /etc/os-release
    PRETTY_NAME="Raspbian GNU/Linux 10 (buster)"
    - LMS via mysqueezebox.com/download
    Version: 8.1.1
    Platform: Debian/Ubuntu Linux ARM
    File: logitechmediaserver_8.1.1_arm.deb
    - Squeezelite on same RPi via
    $ sudo apt install squeezelite
    squeezelite is already the newest version (1.8-4.1+b1).
    - LMS and Squeezelite startup on boot
    - lirc to receive A1156 data and python script to send commands to LMS via telnet

    Issue:
    - while LMS responds immediately (within 500ms), the web interface (e.g. status_header.html or material skin) is updated only after 2-3 seconds which is especially annoying when browsing

    Minimum working example:
    Code:
    $ telnet localhost 9090
    Trying ::1...
    Trying 127.0.0.1...
    Connected to localhost.
    Escape character is '^]'.
    playlist index -1
    00%3A00%3A00%3A00%3A00%3A00 playlist index -1   
    stop
    00%3A00%3A00%3A00%3A00%3A00 stop
    play
    00%3A00%3A00%3A00%3A00%3A00 play
    pause
    00%3A00%3A00%3A00%3A00%3A00 pause 
    play
    00%3A00%3A00%3A00%3A00%3A00 play
    mixer volume 0                
    00%3A00%3A00%3A00%3A00%3A00 mixer volume 0
    mixer volume +30
    00%3A00%3A00%3A00%3A00%3A00 mixer volume %2B30
    How can I make the web interface to update immediately to allow for interactive browsing?

    Thx in advance.

    Keep save, Jens

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

    LMS web interface update time lag

    > How can I make the web interface to update immediately to allow for
    > interactive browsing?


    Use the Material skin, which is much more up to date than the Default
    skin. Default still uses "polling": it checks with the server every few
    seconds for status updates. Whereas Material uses a persistent
    connection (cometd), which allows for status update pushes from the
    server side.

    And as you're in the developers forum, I might suggest you could add
    cometd support to the Default skin. I'd be happy to receive a pull
    request :-D.

  3. #3
    Quote Originally Posted by mherger View Post
    > I might suggest you could add
    cometd support to the Default skin. I'd be happy to receive a pull
    request :-D.
    Thx for your quick response.
    I will check that. Need to pick up some web development programming first...

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
  •