Results 861 to 870 of 951
Thread: Announce: piCorePlayer 8.0.0
-
2022-05-26, 05:08 #861| LMS 8.3.0 @ QLMS 2.25.2 | 2 SB Radio | SB Duet | SB 3 | SqueezeLite-ESP32 | Pioneer VSX-S310 |
-
2022-05-26, 05:54 #862
- 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
-
2022-05-27, 18:30 #863
- 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)
Code:httpResponse.status=200, httpResponse.reason=OK b'[{"successful":false,"error":"no bayeux message found"}]'
TerryLast edited by TerryS; 2022-05-27 at 18:34.
-
2022-05-27, 22:38 #864
- 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-CometDPaul 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
-
2022-05-28, 06:45 #865
- Join Date
- Oct 2010
- Posts
- 190
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
-
2022-05-28, 21:24 #866
- 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
-
2022-05-29, 19:48 #867
- Join Date
- Oct 2010
- Posts
- 190
-
2022-06-03, 05:33 #868
- 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
-
2022-06-03, 05:47 #869
- 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
-
2022-06-03, 05:48 #870
- Join Date
- Jan 2011
- Location
- Staffordshire. UK
- Posts
- 5,083