Home of the Squeezebox™ & Transporter® network music players.
Page 19 of 20 FirstFirst ... 917181920 LastLast
Results 181 to 190 of 191
  1. #181
    Junior Member
    Join Date
    Aug 2020
    Posts
    8
    Quote Originally Posted by shunte88 View Post
    Hi @blackbird

    I'll take a look at that

    the streaming format shouldn't affect the monitor but maybe there's something amiss in the tags payload and we hit a null pointer or buffer overflow - either would potentially cause a freeze,same if visualization is active and we're getting something odd in the shared memory data

    there were no "leaks" the last timeI ran the solution under valgrind, been a while so I'll repeat that exercise.

    If you have example of a stream that has the exhibit could you post

    As a sidebar I'm working on reducing the memory foot print of the monitor

    All of the clock fonts are now rendered to memory dynamically, er... statically?!?, that reduced memory by a factor of 12. A selected font is only loaded if you specifically request it.

    I've done the same for the weather graphics, weather icons are only loaded if you specifically request weather.

    I'll round out this exercise with the visualization graphics and the easter egg graphics

    source updated as I go, but holding out on updating the binary

    Still a WIP but definitely heading in the right direction
    Hi Shunte88

    My RPi3B+ Configuration

    /mnt/mmcblk0p2/tce/lmsmonitor --name "pCP-PCM5122" -c -rix -o3 -v -mVU -d

    Radio Station Address

    http://serpent0.duckdns.org:8088/kbsfm.pls

  2. #182
    Senior Member shunte88's Avatar
    Join Date
    Aug 2010
    Posts
    101
    @blackbird, I'll spin up a debug run with the provide URI

    hopefully digs up some useful data and leads to a solution

    I'll keep you posted

    Edit #1

    with the stream the Pi3 build keeps going, no hangs thus far. needs the plugin before the play bit is set. With vinyl "egg"

    with your command line we keep going but the VU Is not displayed, track "details" are -but pretty light as there's minimal info on the payload

    I can see the tags payload reflects a remote stream and there's a little work to do; again nothing that would cause us to hang. but empty time signatures, bitrate, etc can only open us up for problems. Need to harden the JSON unmarshal so its robust for incomplete/unexpected payloads

    Edit #2

    I beefed up the logic around remote processing, fixed all the zero exhibits and ran the stream for a couple of hours - thought it was repeating itself until I realized it was the station ident at the top of the hour

    visualization works without issue, a little unexciting when the source is purely dialog

    binary is pushed - includes the memory footprint WIP - only half way through the eggs collection

    there's also logic in play that triggers animation events at the close of a track. given the duration is 0 on these streams I've patched the time attributes to keep the percent complete and event triggers happy. that said I've only fudged it for an hour playback so there may be an additional tweak. I've a test running now which will hit the boundary shortly - if its ugly an additional patch will be pushed - likely only affects the"eggs" so you should be good to go
    Last edited by shunte88; 2020-09-30 at 19:25.
    As of 2020/10/20

    Total Albums: 14,283
    Total Artists: 20,134
    Total Genres: 721
    Total Playing Time: 24571:45:48

    With another ~2000 yet to be ripped...

  3. #183

    working? but no Visualations!

    Hi

    I have just installed your 2020 LMS monitor, following your guide in Git hub.

    From boot up, my 2.4" I2C Oled display, (pi 3b, picoreplayer v6.1,) trying these commands in Tweeks in picoreplayer :- /mnt/mmcblk0p2/tce/gomonitor rn or /mnt/mmcblk0p2/tce/gomonitor vu,sa,pk,st -o6 -x 0x3c -db

    The display shows 1. The splash screen, 2. the IP address, if slimserver not playing then 3) I see the large digital clock and date.

    If slimserver is playing then 3), I see the song information page with song and artist information stepping left and right, the timer decrementing etc, after the start up logo. and IP pages. There is a letter "H" shownp permanently on the top right hand corner that I do not understand the significance.

    Whilst showing playing information, after some seconds the screen goes blank and stays blank until I restart the lms monitor.
    Although though I asked for Visualization (VU) in the command line, I never see the vu (or any other visualization ) displayed However I can ask for any of the Egg displays in the command line and these are displayed OK.

    Since I have only just installed your monitor, I am in a learning curve, I have read all the previous replies to this thread but I cannot see why I cannot see Vu meters displayed.

    I would be very grateful if you could suggest the best fault finding method to solve this problem

    Although I set -V in the command line, I have not found any error output, Where is this recorded?

    many thanks

    Patrick

    Edit I have just noticed, that when displaying slimserver in use playing music, that the display is ON for about 2 minutes, then it goes blank for about 2 minutes, then the display reappears at the same point, ir no initial logo or ip. This cycle then repeats infinitely.
    Last edited by superpat999; 2020-10-17 at 06:51. Reason: extra observation

  4. #184
    Senior Member shunte88's Avatar
    Join Date
    Aug 2010
    Posts
    101
    hi @superpat999, apologies for the late reply - something whack going on with my email and I didn't get a notification of your post

    Not sure whats going on with your install, sounds like a couple of issues

    I've been working on reducing the memory foot print of the monitor and increasing stability. Code has been pushed to the repo but I've not updated the binary as yet. I'm hoping to get that done today.

    There's no logging per say other than the verbose mode which can be redirected to a text file

    I your install is on the same pCP setup you'll get visualization

    If its a standalone install on an external device then visualization is not possible without adding the streaming data service

    Try the following:

    Code:
    /mnt/mmcblk0p2/tce/lmsmonitor -V -v -mVU -d -c | tee -a lmsmon.log
    tee will display output but also append it to the file you specify, in this case lmsmon.log

    The first couple of lines of instrumentation will tell you visualization is active and what modes to expect.

    This should display the downmix VU when visualization is triggered. Note that it cycles between track details and the visualization mode. When not playing you'll get the default clock.

    You'll see lots of output when visualization is active, and it'll tell you if inactive


    Squeezebox Touch - example no visualization:

    forecast:Conditions .: cloudy : Cloudy (2)
    forecast:Time .......: 2020-10-18
    forecast:Min Temp ...: 44.42 F
    forecast:Max Temp ...: 62.69 F
    forecast:Precip Prob : 0%
    forecast:Conditions .: cloudy : Cloudy (2)
    forecast:Time .......: 2020-10-19
    Visualization .......: Inactive
    Show Warnings .......: No
    Hostname ............: zebra001
    let me know if you make progress, I'll post when the new build is pushed
    As of 2020/10/20

    Total Albums: 14,283
    Total Artists: 20,134
    Total Genres: 721
    Total Playing Time: 24571:45:48

    With another ~2000 yet to be ripped...

  5. #185

    progress!

    Hi,

    I tried your suggested command, I needed to mod it a bit:- add sudo and name:- mnt/mmcblk0p2/tce$ sudo ./lmsmonitor --name "piCorePlayer"
    -V -v -mVU -o4 -c | tee -a lmsmon.log.

    I tried all the flavours of the oled (-o) and with and without -d.

    The same fault occurred; that is:- when the visualiser toggles on, the display goes completely blank and when it toggles off the display returns again.

    Here are the pertinent log entries, I have marked with <<<<< where the visualiser toggles I have also omitted the numerous time stamps for brevity:-


    tc@piCorePlayer:/mnt/mmcblk0p2/tce$ more lmsmon.log
    OLED Mode ...........: IIC
    This is lmsmonitor (0.4.61) - built Sep 30 2020 22:00:25.
    Platform ............: Raspberry Pi 3 Model B Plus Rev 1.3
    Verbosity ...........: Maximum
    OLED Driver .........: (4) Seeed I2C 128x64
    OLED Address ........: 0x3c
    Scrolling Mode ......: (0) Cylon (Default)
    OLED Clock Font .....: Classic LCD Clock Font
    2020-10-18 15:28:49 :: src/lmsmonitor.c-0804 : generalReset active
    LMS Discovery ........
    LMS server response .: Ok
    Server IP ...........: 192.168.2.154:3483
    Player Found ........: Yes
    hack
    Player Found ........: Yes
    *00 SqueezeLite piCorePlayer b8:27:eb:a8:ce:a1 192.168.2.154
    Player Name .........: piCorePlayer
    Player ID ...........: b8:27:eb:a8:ce:a1
    Player IP ...........: 192.168.2.154
    Visualization .......: VU
    2020-10-18 15:28:49 :: src/lmsmonitor.c-0932 : activate visualization cycling
    Downmix VU+SA .......: No
    Initializing SHMEM ...
    SHMEM Actively Monitoring ...
    LMSuration ........: 505.951
    LMS:Playing .........: Yes
    LMS:Player Online ...: Yes
    LMS:Shuffle .........: 0
    LMS:Volume ..........: 100
    LMS:Sample Size .....: 24
    LMS:Album Artist ....: David Chesky
    LMS:Year ............: 2013
    LMS:Artist ..........: David Chesky
    LMS:Track ID ........: 271
    LMS:Title ...........: Jazz In the New Harmonic
    LMS:Track Artist(s) .: David Chesky
    LMS:Compilation .....: No
    LMS:Remote ..........: No remote 0
    LMS:Album ...........: Jazz In The New Harmonic
    LMS:Sample Rate .....: 192.0
    LMS:Album ID ........: 16
    LMS:Time Played .....: 437.93671503067
    LMS:Repeat ..........: 0
    Hostname ............: piCorePlayer
    Interface ...........: eth0
    Address .............: 192.168.2.154
    GFX Font Width ......: 6 (px)
    GFX Font Height .....: 8 (px)
    2020-10-18 15:28:54 :: src/lmsmonitor.c-1007 : isRefreshed
    2020-10-18 15:28:54 :: src/lmsmonitor.c-1021 : isPlaying
    LMS:Time Played .....: 442.947641111374
    2020-10-18 15:28:54 :: src/lmsmonitor.c-1007 : isRefreshed
    2020-10-18 15:28:54 :: src/lmsmonitor.c-1021 : isPlaying
    LMS:Time Played .....: 443.960641195297
    2020-10-18 15:28:55 :: src/lmsmonitor.c-1007 : isRefreshed
    2020-10-18 15:28:55 :: src/lmsmonitor.c-1021 : isPlaying
    :::::::::::::::::::::::
    2020-10-18 15:30:47 :: src/lmsmonitor.c-1007 : isRefreshed
    2020-10-18 15:30:47 :: src/lmsmonitor.c-1021 : isPlaying
    LMS:Time Played .....: 51.4095499973297
    2020-10-18 15:30:48 :: src/lmsmonitor.c-1007 : isRefreshed
    2020-10-18 15:30:48 :: src/lmsmonitor.c-1021 : isPlaying
    2020-10-18 15:30:49 :: src/lmsmonitor.c-0488 : toggleVisualize
    2020-10-18 15:30:49 :: src/lmsmonitor.c-0492 : test Visualize
    2020-10-18 15:30:49 :: src/lmsmonitor.c-0497 : scroller pause
    2020-10-18 15:30:49 :: src/lmsmonitor.c-0501 : activate Visualize <<<<<<<<<<<<
    2020-10-18 15:30:49 :: src/visualize.c-0045 : Visualize On ->
    2020-10-18 15:30:49 :: src/visualize.c-0048 : Visualize On <-
    LMS:Time Played .....: 52.4194852104187
    2020-10-18 15:30:49 :: src/lmsmonitor.c-1007 : isRefreshed
    2020-10-18 15:30:49 :: src/lmsmonitor.c-1012 : Softly Softly <-
    2020-10-18 15:30:49 :: src/lmsmonitor.c-1021 : isPlaying
    LMS:Time Played .....: 53.4320742607117
    2020-10-18 15:30:50 :: src/lmsmonitor.c-1007 : isRefreshed
    2020-10-18 15:30:50 :: src/lmsmonitor.c-1021 : isPlaying
    LMS:Time Played .....: 54.4463520298004
    :::::::::::::::
    2020-10-18 15:32:48 :: src/lmsmonitor.c-1007 : isRefreshed
    2020-10-18 15:32:48 :: src/lmsmonitor.c-1021 : isPlaying
    LMS:Time Played .....: 171.84514717865
    2020-10-18 15:32:49 :: src/lmsmonitor.c-1007 : isRefreshed
    2020-10-18 15:32:49 :: src/lmsmonitor.c-1021 : isPlaying
    2020-10-18 15:32:49 :: src/lmsmonitor.c-0488 : toggleVisualize
    2020-10-18 15:32:49 :: src/lmsmonitor.c-0492 : test Visualize
    2020-10-18 15:32:49 :: src/lmsmonitor.c-0494 : deactivate Visualize <<<<<<<<<<<<<<<<<
    2020-10-18 15:32:49 :: src/visualize.c-0075 : ->Visualize Off
    LMS:Time Played .....: 172.855023097992
    2020-10-18 15:32:50 :: src/lmsmonitor.c-1007 : isRefreshed
    2020-10-18 15:32:50 :: src/lmsmonitor.c-1012 : Softly Softly <-
    2020-10-18 15:32:50 :: src/lmsmonitor.c-1021 : isPlaying
    LMS:Time Played .....: 173.864651062012
    2020-10-18 15:32:51 :: src/lmsmonitor.c-1007 : isRefreshed
    2020-10-18 15:32:51 :: src/lmsmonitor.c-1021 : isPlaying
    :::::::::::::::::::::::::::::
    2020-10-18 15:33:00 :: src/lmsmonitor.c-1007 : isRefreshed
    2020-10-18 15:33:00 :: src/lmsmonitor.c-1021 : isPlaying
    LMS:Time Played .....: 184.002285121918
    2020-10-18 15:33:01 :: src/lmsmonitor.c-1007 : isRefreshed
    2020-10-18 15:33:01 :: src/lmsmonitor.c-1021 : isPlaying
    LMS:Time Played .....: 185.014798116684
    2020-10-18 15:33:02 :: src/lmsmonitor.c-1007 : isRefreshed
    2020-10-18 15:33:02 :: src/lmsmonitor.c-1021 : isPlaying
    2020-10-18 15:33:03 :: src/lmsmonitor.c-0607 : cycleVisualize
    2020-10-18 15:33:03 :: src/lmsmonitor.c-0609 : Visualize Is On <<<<<<<<<<<
    2020-10-18 15:33:03 :: src/lmsmonitor.c-0611 : isPlaying
    Active Visualizer ...: VU <<<<<<<<<<<
    LMS:Time Played .....: 186.027776857376
    2020-10-18 15:33:03 :: src/lmsmonitor.c-1007 : isRefreshed
    2020-10-18 15:33:03 :: src/lmsmonitor.c-1021 : isPlaying
    LMS:Time Played .....: 187.040611001968
    2020-10-18 15:33:04 :: src/lmsmonitor.c-1007 : isRefreshed
    2020-10-18 15:33:04 :: src/lmsmonitor.c-1021 : isPlaying
    LMS:Time Played .....: 188.054787204742
    When the visualiser is activated the display blanks completely, when it is deactivated the display returns with correct info, times and song etc !! It is the same with or without -d


    regards


    Patrick
    Last edited by superpat999; 2020-10-18 at 08:25. Reason: spelling

  6. #186
    Senior Member shunte88's Avatar
    Join Date
    Aug 2010
    Posts
    101
    did you add the switches to expose the audio data through squeeze player

    From the Squeezlite page of the pCP web frontend type 1 in the "m" ALSA parameter section

    And, in the Various Options add -v

    See the squeezelite page for more details
    you can see its entering the visualizer mode but I don't see any visualization data resources being processed, as I said earlier when its processing visualization data it spews lots of debug messages

    here you can see lots of interaction, note I hit control-C to break out which is why the exit message is output

    Code:
    2020-10-20 13:31:28 ::  src/visualize.c-0237 : ->Visualize PK
    1) test 42.000000 -> 0.362069
    2) pct  4.525862
    2020-10-20 13:31:28 ::  src/visualize.c-0239 : <-Visualize PK
    2020-10-20 13:31:28 ::  src/visualize.c-0237 : ->Visualize PK
    1) test 42.000000 -> 0.362069
    2020-10-20 13:31:28 ::  src/visualize.c-0239 : <-Visualize PK
    2020-10-20 13:31:28 ::  src/visualize.c-0237 : ->Visualize PK
    1) test 42.000000 -> 0.362069
    2020-10-20 13:31:28 ::  src/visualize.c-0239 : <-Visualize PK
    2020-10-20 13:31:28 ::  src/visualize.c-0237 : ->Visualize PK
    1) test 57.000000 -> 0.491379
    2020-10-20 13:31:28 ::  src/visualize.c-0239 : <-Visualize PK
    2020-10-20 13:31:28 ::  src/visualize.c-0237 : ->Visualize PK
    1) test 57.000000 -> 0.491379
    2020-10-20 13:31:28 ::  src/visualize.c-0239 : <-Visualize PK
    2020-10-20 13:31:28 ::  src/visualize.c-0237 : ->Visualize PK
    1) test 57.000000 -> 0.491379
    2020-10-20 13:31:28 ::  src/visualize.c-0239 : <-Visualize PK
    2020-10-20 13:31:28 ::  src/visualize.c-0237 : ->Visualize PK
    1) test 53.000000 -> 0.456897
    2020-10-20 13:31:28 ::  src/visualize.c-0239 : <-Visualize PK
    2020-10-20 13:31:28 ::  src/visualize.c-0237 : ->Visualize PK
    1) test 53.000000 -> 0.456897
    2020-10-20 13:31:28 ::  src/visualize.c-0239 : <-Visualize PK
    2020-10-20 13:31:28 ::  src/visualize.c-0237 : ->Visualize PK
    1) test 53.000000 -> 0.456897
    2020-10-20 13:31:28 ::  src/visualize.c-0239 : <-Visualize PK
    2020-10-20 13:31:28 ::  src/visualize.c-0237 : ->Visualize PK
    1) test 249.000000 -> 2.146552
    2) pct  26.831897
    
    Cleanup and shutdown
    All Done
    Bye Bye.
    
    tc@koala:/mnt/mmcblk0p2/tce$
    I'll be pushing the new release today, I got a bit tied up with other works so its been slow going on the monitor front
    Last edited by shunte88; 2020-10-20 at 10:38.
    As of 2020/10/20

    Total Albums: 14,283
    Total Artists: 20,134
    Total Genres: 721
    Total Playing Time: 24571:45:48

    With another ~2000 yet to be ripped...

  7. #187
    Senior Member shunte88's Avatar
    Join Date
    Aug 2010
    Posts
    101

    0.4.62 LMS Monitor Release

    0.4.62 is now "live" on github including an updated binary; same install/update procedure as before

    this release is mainly aimed at a reduced memory foot-print and stability

    all "PROGMEM style" resources have been removed and replaced with define on call implementations. This leads to much improved stability especially on limited resource Pi platforms.

    Several minor layout changes have been made, very minor and likely you'll noteven notice; one change that weather consumers will see is the inclusion of a 3 day rolling forecast. This will be displayed at 30 minute intervals from the weather "page".

    A new downmix meter has been added to the Peak Meter visualization, I'll be swapping out the current stereo PK to use the infrastructure developed for the downmix meter. The graphics of the current meter aren't great and use define on call resources, mentioned above. The new meter is drawn with graphics primitives, cleaner and very lightweight. A couple of conditional statements will easily convert it to a stereo impl. - it'll be in the next update.

    SSD1322 128x64 is a WIP but hopefully 100% and ready for inclusion soon.

    I had this version burn-in a good while so hopefully no surprises, that said should you find any nasties please post to the thread
    As of 2020/10/20

    Total Albums: 14,283
    Total Artists: 20,134
    Total Genres: 721
    Total Playing Time: 24571:45:48

    With another ~2000 yet to be ripped...

  8. #188

    Fixed!

    Hi

    From the Squeezlite page of the pCP web frontend type 1 in the "m" ALSA parameter section

    And, in the Various Options add -v
    I did not Know about the "-v" I added the "1" though! Adding -v worked wonders.

    many thanks

    regards

    P

  9. #189

    SSD1322 128x64 ??

    Hi,

    Always after more!

    I have a spare player case with an already front panel mounted SSD1322 Oled display, however this is a 3.12" 256 x 64 SPI Oled. It looks very similar to the one sold by Audiophonics for their Dual evo dac player. I had got it working under luma, but not with pcp. I like the extra visual area so the display does not need to scroll so far!

    I have a couple of questions,

    1 ) When you release the SSD1322 support, will it support 256 x 64 as well as 128 x 64? ( I have not seen a SSD1322 for 128 x 64 is this a typo by you? )
    2 ) Will your driver support SPI? If so what are the GPI/O pins you have designated?

    many thanks

    Patrick

  10. #190
    Senior Member shunte88's Avatar
    Join Date
    Aug 2010
    Posts
    101
    the SSD1322 can operate in both SPI and IIC modes, moving a couple of 0R resistors on the driver board sets the mode

    I have SPI functional on a standalone device and I'm working to get the code into the Adafruit library, actually code is in there but not tied in 100%

    GPIO configuration is already supported via the command line; both hardware, out of the box SPI0/SPI1 GPIO mapping, and bit bashing will be supported. SPI0 is the canned configuration. EVO DAC is not a standard - details will be in the readme when the supported version its released.

    There are other drivers available that support many more devices and would really make the monitor a flexible solution, the "c" equivalent of luma. These are mostly Arduino libraries so there's a bit of work to convert.

    I flip-flop between the benefits/ease of implementation, thus far Adafruit is winning out

    The full 256x64 will be used for the SSD1322, which means a bit of rework for all the canned graphics so that's a big hit - even more so if gray scale is supported

    I wrote a graphics scaler for the 12/24 clock mode but I'm a bit of a pixel jockey and giving up control is tough - hence the move to more programmatic graphics. My RGB panel I had the ability to use SVG for the graphics but not so lucky with "c" as no small tight libraries available - and they don't talk to the Adafruit library either.

    I have the EVO DAC sitting on my bench and given the investment that needs to be addressed.

    So slow going but on the horizon.
    As of 2020/10/20

    Total Albums: 14,283
    Total Artists: 20,134
    Total Genres: 721
    Total Playing Time: 24571:45:48

    With another ~2000 yet to be ripped...

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
  •