Home of the Squeezebox™ & Transporter® network music players.
Page 87 of 96 FirstFirst ... 37778586878889 ... LastLast
Results 861 to 870 of 951
  1. #861
    Member networx's Avatar
    Join Date
    Dec 2018
    Location
    Germany
    Posts
    47
    Quote Originally Posted by Paul Webster View Post
    Given that you are in line of sight ... how about experimenting with an infra-red remote control?
    You can add an IR receiver to GPOI pins on the RPi for very little money and then configure it to work with a spare remote control.
    Or, for more money, you could get a USB remote that emulates a keyboard and send a left square bracket (I think) to go to now playing view and then again to switch views.
    As told, I use regularly use no IR remote to control SB. We use our mobiles but I wondering if there is no function to switch from LMS so this can also be done from material skin?
    | LMS 8.3.0 @ QLMS 2.25.2 | 2 SB Radio | SB Duet | SB 3 | SqueezeLite-ESP32 | Pioneer VSX-S310 |

  2. #862
    Senior Member
    Join Date
    Apr 2005
    Location
    UK/London
    Posts
    5,726
    I donĺt think LMS can tell a controller (like Jivelite) to do anything.
    Paul Webster
    Author of "Now Playing" plugins covering Radio France (FIP etc), PlanetRadio (Bauer - Kiss, Absolute, Scala, JazzFM etc), KCRW, ABC Australia and CBC/Radio-Canada
    and, via the extra "Radio Now Playing" plugin lots more - see https://forums.slimdevices.com/showt...Playing-plugin

  3. #863
    Senior Member
    Join Date
    Oct 2010
    Posts
    190

    Does pCP support cometd for subscriptions?

    I'm trying to use cometd to get subscription updates from lms in pCP. I'm having zero success even setting up the handshake for the cometd channel.

    Code:
    import sys
    import http.client
    import json
    
    server = "10.0.0.111:9000"
    
    # This provides http 1.1 keep alive so preventing DNS lookup 
    # For each request.
    conn = http.client.HTTPConnection(server)
    
    #Make a python dictionary for the request.
    
    data = {
        "channel": "/meta/handshake",
        "supportedConnectionTypes":["long-polling","streaming"]
            }
    
    # So now we convert the dictionary data to a string
    params = json.dumps(data, sort_keys=True, indent=4)
    # Make the keep alive request
    conn.request("POST", "/cometd", params)
    httpResponse = conn.getresponse()
    print("httpResponse.status=%s, httpResponse.reason=%s" % (httpResponse.status, httpResponse.reason))
    data = httpResponse.read()
    print(data)
    Results in:
    Code:
    httpResponse.status=200, httpResponse.reason=OK
    b'[{"successful":false,"error":"no bayeux message found"}]'
    Am I doing this wrong, or is cometd not supported in the lms used in pCP?

    Terry
    Last edited by TerryS; 2022-05-27 at 18:34.

  4. #864
    Senior Member
    Join Date
    Apr 2005
    Location
    UK/London
    Posts
    5,726
    See this old thread with a recent update - it might be the same issue
    https://forums.slimdevices.com/showt...?109788-CometD
    Paul Webster
    Author of "Now Playing" plugins covering Radio France (FIP etc), PlanetRadio (Bauer - Kiss, Absolute, Scala, JazzFM etc), KCRW, ABC Australia and CBC/Radio-Canada
    and, via the extra "Radio Now Playing" plugin lots more - see https://forums.slimdevices.com/showt...Playing-plugin

  5. #865
    Senior Member
    Join Date
    Oct 2010
    Posts
    190
    Quote Originally Posted by Paul Webster View Post
    See this old thread with a recent update - it might be the same issue
    https://forums.slimdevices.com/showt...?109788-CometD
    Thanks,
    I read that and I'm not seeing anything that helps with the issue I'm having.
    I realize it was stupid of me to suggest that maybe cometd isn't supported since my iPeng apps work fine and Pippen says that he uses cometd for that.
    So obviously I'm doing something wrong (as is usually the case). Usually I can find the answer on the web but there is very little in the way of info out there about cometd, especially using Python. Even the requests on stackoverflow go unanswered.

    Not a huge deal. I currently have an album art display using a 64 x64 led matrix that is working great using the LMS CLI interface (under telnet with python). But I want to convert it to using JSON and cometd mainly because I read that would be a better approach and I want to learn something new.

    Terry

  6. #866
    Senior Member
    Join Date
    Apr 2005
    Location
    UK/London
    Posts
    5,726
    You might have to dig around the cometd code to see how it is getting there
    https://github.com/Logitech/slimserv...Cometd.pm#L121

    It looks like it did not receive the content.
    Can you get a dump/trace of what was really sent/received over the http connection?
    Paul Webster
    Author of "Now Playing" plugins covering Radio France (FIP etc), PlanetRadio (Bauer - Kiss, Absolute, Scala, JazzFM etc), KCRW, ABC Australia and CBC/Radio-Canada
    and, via the extra "Radio Now Playing" plugin lots more - see https://forums.slimdevices.com/showt...Playing-plugin

  7. #867
    Senior Member
    Join Date
    Oct 2010
    Posts
    190
    Quote Originally Posted by Paul Webster View Post
    You might have to dig around the cometd code to see how it is getting there
    https://github.com/Logitech/slimserv...Cometd.pm#L121

    It looks like it did not receive the content.
    Can you get a dump/trace of what was really sent/received over the http connection?
    Thanks. I turned on server logging and that helped me dial in the message (and the headers) until I finally have a success response to the handshake request. Next step is to subscribe.

  8. #868
    Senior Member
    Join Date
    Mar 2012
    Posts
    101

    Issues with Crucial X8 2TB SSD HD

    I have a Raspberry Pi 4 which I use as a server . I decided to switch from the Max2play distro I was using and use Picoreplayer 8.1 . Using the online instructions I downloaded the latest version to a 32GB SD card and flashed using Balena Etcher .

    As per the instructions I plugged in the ethernet cable from my Cisco 8 switch and the SSD HD and then powered up the Pi . Installation went as per the instructions and I then installed the LMS in the order given . I did have a little issue mounting the HD as I was a little bit stupid the instructions gave the format a /mnt/USB and of course being of very literal mind that is exactly what I typed in the space but the prefix is already there and all you need to type is either USB or like I did Root then enable it and mount .

    All of the above then worked and I was able to set up LMS and direct it to the music on my SSD HD . As normal it did a full rescan which as my Library is quite large (over 61,000 tracks) as always on first set up this took quite a while . Once it finished I started off playing but for some reason the LMS started another rescan and this time it got stuck at the Pre Cache Artwork . The instructions did mention this so as per I did a reboot and then a rescan . However for some reason the Mont Point had been lost and the SSD HD was not found so LMS started to delete the files .

    I stopped this and went back and removed the original mount point and then did a mount of the SSD HD again . This worked and LMS was again able to find the SSD HD files . Rescan continued again which takes a long time and then I was able to play music. However now if for any reason I have to stop the LMS and reboot the Picoreplayer when it returns it has again lost the SSD HD mountpoint and I have to do this again and this starts a further rescan which again takes quite a while.

    This is not a disaster as I now know what is happening and just make sure that the SSD HD is mounted before I continue . In general the LMS is left on 24/7 and is not stopped or rebooted very often but would it be possible to advise if this is a known issue and if there is any patch or solution to fix it .
    System - Raspberry Pi 4 8gb LMS Server - Allo Digione Signature Player - MiniDSP DDRC 22D - MiniDSP 10 x 10 HD - 2 x NVA P20 Power Amps 1 x NVA P30 Power Amp - 4 x KEF 103 Reference Stacked two per side

  9. #869
    Senior Member
    Join Date
    May 2008
    Location
    United States, Florida
    Posts
    12,703
    I have no useful suggestions but want to note this is definitely not normal. I have a 4TB USB HDD (not SSD) attached to rPi4B and Iĺve never lost the mounting when rebooting. HDD holds my ~120,000 mostly FLAC files.
    Home: Pi4B-8GB/pCP8.x/4TB>LMS 8.2.x>Transporter, Touch, Boom, Radio (all ethernet)
    Cottage: rPi4B-4GB/pCP8.x/4TB>LMS 8.2.x>Touch>Benchmark DAC I, Boom, Radio w/Battery (Radio WIFI)
    Office: Win10(64)>foobar2000
    The Wild: rPi3B+/pCP7.x/4TB>LMS 8.1.x>hifiberry Dac+Pro (LMS & Squeezelite)
    Controllers: iPhone11 & iPadAir3 (iPeng), CONTROLLER, Material Skin, or SqueezePlay 7.8 on Win10(64)
    Files: Ripping: dBpoweramp > FLAC; Post-rip: mp3tag, PerfectTunes, TuneFusion; Streaming: Spotify

  10. #870
    Senior Member
    Join Date
    Jan 2011
    Location
    Staffordshire. UK
    Posts
    5,083
    Quote Originally Posted by bencat View Post
    I have a Raspberry Pi 4 which I use as a server . I decided to switch from the Max2play distro I was using and use Picoreplayer 8.1 . Using the online instructions I downloaded the latest version to a 32GB SD card and flashed using Balena Etcher .





    This is not a disaster as I now know what is happening and just make sure that the SSD HD is mounted before I continue . In general the LMS is left on 24/7 and is not stopped or rebooted very often but would it be possible to advise if this is a known issue and if there is any patch or solution to fix it .

    Hi Andrew

    When you installed LMS, to what size did you expand the file system ?

    ronnie

    Edit: maybe call it something different than Root
    Last edited by Man in a van; 2022-06-03 at 05:52.

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
  •