Home of the Squeezebox™ & Transporter® network music players.
Page 17 of 20 FirstFirst ... 71516171819 ... LastLast
Results 161 to 170 of 191
  1. #161
    Senior Member shunte88's Avatar
    Join Date
    Aug 2010
    Posts
    101

    0.4.57 - beaten into submission

    0.4.57 available, binary updated - once again any uglies let me know

    so lots of bashing on this to make it break

    wrote a mock that generated entries for 20 players - processed no issues

    forced the routine to process the json with a remediation regex, only gets called if the json library trips but I may at some point just use the regex - pretty clean

    one more set of tests on a Pi3 install and I'll push to the repo

    I'll ping back when that's done

    I'll also leave the extra debug in place so make troubleshooting a little easier, forced example

    Code:
    OLED Mode ...........: IIC
    This is lmsmonitor (0.4.57) - built Sep 17 2020 13:47:40.
    Platform ............: Raspberry Pi 4 Model B Rev 1.1
    Verbosity ...........: Maximum
    OLED Driver .........: (6) SH1106 I2C 128x64
    OLED Address ........: 0x3c
    Scrolling Mode ......: (0) Cylon (Default)
    OLED Clock Font .....: Roboto Thin
    2020-09-17 13:48:03 :: src/lmsmonitor.c-0781 : generalReset active
    LMS Discovery ........
    LMS server response .: Ok
    Server IP ...........: 192.168.1.25:3483
    Player Found ........: Yes
    Player Count ........: 3
    [lookupLMSPlayer] Failed to parse JSON, check adequate tokens allocated: -1
    
    payload: {"result":{"players_loop":[{"uuid":null,"model":"squeezelite","isplayer":1,"playerindex":"0","isplaying":0,"name":"koala","connected":1,"displaytype":"none","firmware":"v1.9.6-1206-pCP","playerid":"xx:xx:xx:xx:xx:xx","power":1,"ip":"192.168.1.129:50150","modelname":"SqueezeLite","canpoweroff":1,"seq_no":0},{"name":"caracara","isplaying":1,"playerindex":1,"isplayer":1,"model":"squeezelite","uuid":null,"seq_no":0,"canpoweroff":1,"modelname":"SqueezeLite","ip":"192.168.1.222:48644","power":1,"playerid":"xx:xx:xx:xx:xx:xx","firmware":"v1.9.6-1206-pCP","displaytype":"none","connected":1},{"isplayer":1,"model":"fab4","uuid":"hjgfngfhgfhfhgf","name":"livingroom","isplaying":0,"playerindex":2,"power":1,"displaytype":"none","firmware":"7.8.0-r16754","connected":1,"playerid":"xx:xx:xx:xx:xx:xx","seq_no":"3","canpoweroff":1,"ip":"192.168.1.101:54776","modelname":"Squeezebox Touch"}],"count":3},"method":"slim.request","id":1,"params":["-",["players","0","99"]]}
    length: 980
    allocated: 175
    2020-09-17 13:48:03 ::   src/sliminfo.c-0229 : remediateLkpMSPlayer
    2020-09-17 13:48:03 ::   src/sliminfo.c-0260 : remediateLkpMSPlayer tokenized
    (280) "uuid":null,"model":"squeezelite","isplayer":1,"playerindex":"0","isplaying":0,"name":"koala","connected":1,"displaytype":"none","firmware":"v1.9.6-1206-pCP","playerid":"xx:xx:xx:xx:xx:xx","power":1,"ip":"192.168.1.129:50150","modelname":"SqueezeLite","canpoweroff":1,"seq_no":0},
    Player Name .........: koala
    Player ID ...........: xx:xx:xx:xx:xx:xx
    Player IP ...........: 192.168.1.129
    LMS:Duration ........: 416.548
    LMS:Volume ..........: 10
    LMS:Playing .........: No
    LMS:Repeat ..........: 0
    LMS:Player Online ...: Yes
    LMS:Shuffle .........: 0
    LMS:Sample Size .....: 24
    LMS:Track Artist(s) .: Jah Wobble, Youth Meets Jah Wobble, Youth, Lara Smiles
    LMS:Album ...........: Acid Punk Dub Apocalypse [UK] [CADIZCD183]
    LMS:Title ...........: Blades (feat.Lara Smiles)
    LMS:Year ............: 2020
    LMS:Compilation .....: No
    LMS:Album ID ........: 75216
    LMS:Remote ..........: No
    LMS:Album Artist ....: Youth Meets Jah Wobble
    LMS:Track ID ........: 829403
    LMS:Artist ..........: Jah Wobble
    LMS:Sample Rate .....: 44.1
    LMS:Time Played .....: 0
    Provider IP .........: 66.31.43.194
    Reported TZ .........: America/New_York
    Longitude ...........:  -71.1134
    Latitude ............:   42.4178
    Sunrise .............: 09-17-2020 06:27:01
    Sunset ..............: 09-17-2020 18:49:42
    Set Display .........: Day Mode
    Visualization .......: Inactive
    Hostname ............: zebra001
    Interface ...........: eth0
    Address .............: 192.168.1.159
    Interface ...........: wlan0
    Address .............: 192.168.1.160
    GFX Font Width ......: 6 (px)
    GFX Font Height .....: 8 (px)
    2020-09-17 13:48:09 :: src/lmsmonitor.c-0984 : isRefreshed
    2020-09-17 13:48:09 :: src/lmsmonitor.c-1028 : activeScroller test
    2020-09-17 13:48:09 :: src/lmsmonitor.c-1033 : display clock test
    2020-09-17 13:48:09 :: src/lmsmonitor.c-1117 : clockPage
    2020-09-17 13:48:09 :: src/lmsmonitor.c-1124 : cpu Metrics?
    2020-09-17 13:48:09 :: src/lmsmonitor.c-0984 : isRefreshed
    2020-09-17 13:48:09 :: src/lmsmonitor.c-1028 : activeScroller test
    2020-09-17 13:48:09 :: src/lmsmonitor.c-1033 : display clock test
    2020-09-17 13:48:09 :: src/lmsmonitor.c-1117 : clockPage
    2020-09-17 13:48:09 :: src/lmsmonitor.c-1124 : cpu Metrics?
    Last edited by shunte88; 2020-09-17 at 11:06.
    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...

  2. #162
    After update it did works fine at first, thanks. False failure message about jason, a little verbose now :-) :

    Code:
    tc@pcTest61:~$ sudo /mnt/mmcblk0p2/tce/lmsmonitor -n ${PNAME} -c -z -f7 -s
    OLED Mode ...........: IIC
    This is lmsmonitor (0.4.57) - built Sep 17 2020 14:01:28.
    Platform ............: Raspberry Pi 3 Model B Plus Rev 1.3
    Verbosity ...........: Normal
    OLED Clock Font .....: Roboto Thin
    [lookupLMSPlayer] Failed to parse JSON, check adequate tokens allocated: -3
    LMS:Player Online ...: Yes
    LMS:Playing .........: No
    LMS:Remote ..........: Yes
    LMS:Time Played .....: 0
    LMS:Duration ........: 388.191
    LMS:Volume ..........: 14
    LMS:Repeat ..........: 0
    LMS:Shuffle .........: 0
    LMS:Remote ..........: Yes
    LMS:Track ID ........: -335361268
    LMS:Title ...........: Paths Of Life
    LMS:Album ...........: Mish Mash
    LMS:Artist ..........: Rockers Hi-Fi
    LMS:Remote ..........: Yes
    LMS:Sample Rate .....: 44.1
    LMS:Sample Size .....: 16
    LMS:Year ............: 1997
    Hostname ............: pcTest61
    Interface ...........: wlan0
    Address .............: 192.168.7.136
    LMS:Remote ..........: Yes
    LMS:Remote ..........: Yes
    LMS:Remote ..........: Yes
    LMS:Remote ..........: Yes
    LMS:Remote ..........: Yes
    LMS:Remote ..........: Yes
    LMS:Remote ..........: Yes
    LMS:Remote ..........: Yes
    LMS:Remote ..........: Yes
    LMS:Remote ..........: Yes
    LMS:Remote ..........: Yes
    LMS:Remote ..........: Yes
    LMS:Playing .........: Yes
    LMS:Remote ..........: Yes
    LMS:Remote ..........: Yes
    LMS:Remote ..........: Yes
    LMS:Remote ..........: Yes
    LMS:Time Played .....: 1.75628805923462
    LMS:Remote ..........: Yes
    LMS:Remote ..........: Yes
    ...
    But after 2nd or third start it shows new buggy behavior:

    Code:
    tc@pcTest61:~$ sudo /mnt/mmcblk0p2/tce/lmsmonitor -n ${PNAME} -c -z -f7 -V
    OLED Mode ...........: IIC
    This is lmsmonitor (0.4.57) - built Sep 17 2020 14:01:28.
    Platform ............: Raspberry Pi 3 Model B Plus Rev 1.3
    Verbosity ...........: Maximum
    OLED Driver .........: (6) SH1106 I2C 128x64
    OLED Address ........: 0x3c
    Scrolling Mode ......: (0) Cylon (Default)
    OLED Clock Font .....: Roboto Thin
    2020-09-18 19:55:31 :: src/lmsmonitor.c-0781 : generalReset active
    LMS Discovery ........
    LMS server response .: Ok
    Server IP ...........: 192.168.7.200:3483
    Player Found ........: Yes
    Player Count ........: 5
    [lookupLMSPlayer] Failed to parse JSON, check adequate tokens allocated: -3
    
    payload: {"params":["-",["players","0","99"]],"method":"slim.request","id":1,"result":{"count":5,"players_loop":[{"playerindex":"0","playerid":"b8:27:eb:54:27:0c","uuid":null,"ip":"192.168.7.136:60750","name":"pcTest61","seq_no":0,"model":"squeezelite","modelname":"SqueezeLite","power":1,"isplaying":0,"displaytype":"none","isplayer":1,"canpoweroff":1,"connected":1,"firmware":"v1.9.6-1206-pCP"},{"playerindex":1,"playerid":"b8:27:eb:90:f7:74","uuid":null,"ip":"192.168.7.150:40330","name":"pcKueche","seq_no":0,"model":"squeezelite","modelname":"SqueezeLite","power":0,"isplaying":0,"displaytype":"none","isplayer":1,"canpoweroff":1,"connected":1,"firmware":"v1.9.0-1121-pCP"},{"playerindex":2,"playerid":"fc:f5:c4:6d:f0:dc","uuid":null,"ip":"192.168.7.146:50262","name":"SqueezeAmp","seq_no":0,"model":"squeezeesp32","modelname":"SqueezeLite","power":0,"isplaying":0,"displaytype":"none","isplayer":1,"canpoweroff":1,"connected":1,"firmware":"v1.9.2-1145"},{"playerindex":3,"playerid":"70:85:c2:fc:3b:27","uuid":null,"ip":"192.168.7.201:51523","name":"PC-A_","seq_no":0,"model":"squeezelite","modelname":"Squeezelite-X","power":1,"isplaying":0,"displaytype":"none","isplayer":1,"canpoweroff":1,"connected":1,"firmware":"v1.9.7-1256"},{"playerindex":4,"playerid":"b8:27:eb:ca:fc:35","u
    length: 1278
    allocated: 265
    2020-09-18 19:55:31 ::   src/sliminfo.c-0229 : remediateLkpMSPlayer
    2020-09-18 19:55:31 ::   src/sliminfo.c-0260 : remediateLkpMSPlayer tokenized
    (283) "playerindex":"0","playerid":"b8:27:eb:54:27:0c","uuid":null,"ip":"192.168.7.136:60750","name":"pcTest61","seq_no":0,"model":"squeezelite","modelname":"SqueezeLite","power":1,"isplaying":0,"displaytype":"none","isplayer":1,"canpoweroff":1,"connected":1,"firmware":"v1.9.6-1206-pCP"},
    Player Name .........: pcTest61
    Player ID ...........: b8:27:eb:54:27:0c
    Player IP ...........: 192.168.7.136
    Visualization .......: Inactive
    [parseLMSResponse] Failed to parse JSON, check adequate tokens allocated: -3
    {"params":["b8:27:eb:54:27:0c",["status","-",1,"tags:lKeaArCckiqdxNTIzy"]],"method":"slim.request","id":1,"result":{"player_name":"pcTest61","player_connected":1,"player_ip":"192.168.7.136:60750","power":1,"signalstrength":0,"mode":"stop","remote":1,"current_title":"Cherchez La Lumiere [uk]","time":0,"rate":1,"duration":367.571,"can_seek":1,"sync_master":"b8:27:eb:54:27:0c","sync_slaves":"70:85:c2:fc:3b:27,fc:f5:c4:6d:f0:dc","mixer volume":14,"playlist repeat":0,"playlist shuffle":0,"playlist mode":"off","seq_no":0,"playlist_cur_index":"3","playlist_timestamp":1600451515.92909,"playlist_tracks":13,"digital_volume_control":1,"remoteMeta":{"id":"-198027364","title":"Cherchez La Lumiere [uk]","album":"BlackRock","artist":"Solar Quest","bitrate":"126kb/s CBR","coverid":"-198027364","comment":"Black Rock FM: From the Playa to the world, where every Saturday night is Burn Night [SomaFM]","duration":"367.571","remote":1,"samplerate":"22050","samplesize":"16","year":"0"},"playlist_loop":[{"bitrate":"126kb/s CBR","samplerate":"22050","playlist index":3,"duration":"367.571","samplesize":"16","remote":1,"album":"BlackRock","artist":"Solar Quest","coverid":"-198027364","comment":"Black Rock FM: From the Playa to the world, where every Saturday night is Burn Night [SomaF
    Hostname ............: pcTest61
    Interface ...........: wlan0
    Address .............: 192.168.7.136
    GFX Font Width ......: 6 (px)
    GFX Font Height .....: 8 (px)
    ...
    Restored old state from backup, restarted LMS, but same error. The display alternates between error message "Squeezelite player "Test61" is offline" and clock screen.
    Aki

  3. #163
    Senior Member shunte88's Avatar
    Join Date
    Aug 2010
    Posts
    101
    Hi @aki7 I'll check it out
    definitely something amiss there
    I did notice that the JSON that is returned is not in a constant order and you were getting broken JSON so maybe the player your looking to monitor has dropped off the end of the payload
    Thought I'd beaten this one into submission but it looks like you're really good at finding the buried treasure
    I'll hopefully have something shortly - hang tight

    Edit 18:44 EST
    I've gotten all the over enthusiastic messaging
    Looking at how you could be getting partial replies now - should be no issue as we're nowhere close to buffer limits
    Last edited by shunte88; 2020-09-19 at 15:44.
    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...

  4. #164
    Senior Member shunte88's Avatar
    Join Date
    Aug 2010
    Posts
    101

    0.4.58 build pushed

    0.4.58 pushed to the repo:

    mainly stability and aesthetics* :

    1. Removed Additional Debug Noise (*Quiet Mode)
    2. Buffered HTTP RESTful calls


    Hopefully no nasties, but you know the drill if you hit anything
    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. #165
    Thanks, seems to work fine now :-)

    If you want to sweep out the corners: When no -c (clock) parmeter is given, the play screen keeps saying "play" when pi is paused, should it be "pause"? Alway using the Clock screen, so does not matter for me.

    Recovering from LMS restart is also great! So lmsmonitor ist ready now for my in house "production systems" :-)

    Aki

  6. #166
    Junior Member
    Join Date
    Aug 2020
    Posts
    8

    New version works but...^^ and question

    The picture below is my DIY vacuum tube amps (45 SuperTriode, KT77 SE).
    At the far left is the picoreplayer (RPi3B+).

    Name:  2020-09-21 23.17.18.jpg
Views: 127
Size:  112.5 KB

    It is well displayed in Celsius in the weather information.

    Name:  2020-09-21 23.21.46.jpg
Views: 122
Size:  17.1 KB

    Thank you.


    I used the following command:

    Code:
    /mnt/mmcblk0p2/tce/lmsmonitor --name "pCP-PCM5122" -c -rix -v -mVU -o3 -d -f10 --weather "~~~~,si" --latlon "~~~~~~~"
    The VU-Meter also displays well as expected.
    But, After playing the music for about 10 minutes, the VU-Meter stops working and the screen is frozen.
    Even before the upgrade, I experienced these symptoms several times. I don't know if it has anything to do with the weather option.

    Name:  2020-09-21 23.22.32.jpg
Views: 122
Size:  13.9 KB

    As you know, the Korean is not displayed properly, so when I added the -E1 option, the "Easter Egg" displaying during music playback.
    However, VU Meter is not displayed.

    Name:  2020-09-21 23.24.03.jpg
Views: 122
Size:  14.8 KB

    When I check it in the terminal, it seems that visualization is deactivated with the -E1 option.
    In other words, it seems that the VU meter cannot be used.
    Is it the original design?
    Last edited by blackbird; 2020-09-21 at 08:08.

  7. #167
    Senior Member shunte88's Avatar
    Join Date
    Aug 2010
    Posts
    101
    @aki i'll chase down the status, the original 0.4.0 build had the state working correctly but that was 200 commits ago so could definitely have introduced something funky. The LMS piece also just got a top down rewrite so could have dropped a stitch there.

    @blackbird nice setup, looks fantastic and I bet it sound equally choice

    freezes are usually a result of memory issues, add threading into the mix and there's much fun to be had

    I've seen freezes on my pi3 build too and they do seem to be getting more frequent

    If you have a terminal open you'll see the monitor may keep on trucking in the background, just the screen is no longer being updated

    I tried running under valgrind which traces and monitors the executable and sniff out any memory leaks. Nothing specific popped up but the exercise is worth repeating.

    I've a pi4 setup for development and it runs 24/7 however I'm constantly running new build through it and its frequently rebooted and other than blowing the build due to development flubs I've not had a freeze problem on that device.

    I also have a pi4 in the new Audiophonics DAC but as I'm working on a display driver for that setup I'm not using the setup 100% of the time, I should move it to my main system rather than having it gather dust in the workspace.

    the additions of the fonts and the easter eggs will have chipped away at the available memory - which would be why the frequency has increased over time

    given pi4 have far more memory than the 3B I'm wondering if its time to go back to the original plan an provide builds for 3 and 4 with 3 stripping some of the memory sinks. an alternate is pulling out the graphics and other static memory resources into a separate library and dynamically loads if and when required.

    I'm thinking the latter approach is the way to go.

    the Easter eggs where implemented for devices that were unable to hook into the audio data and drive visualization. They're just a bit of eye-candy while a track is playing, they also allowed me to put my artists hat on and see how much I could squeeze out of the tiny screen. Throw in a bit of animation and rudimentary game AI and I was a happy camper

    so visualizations and the"eggs" are pretty much separate entities

    when we added all-in-one I took the same approach but brought them into the visualization "thread" as folks had requested

    I can certainly look at bringing the eggs into the visualization thread too
    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. #168
    Senior Member shunte88's Avatar
    Join Date
    Aug 2010
    Posts
    101

    play/pause/stop - without clock display

    all set on the display in pause or stop mode

    screen will update the volume and player state when in pause or stop mode

    if titles are scrolling they will continue to do so when in a pause or stop state

    repo updated including binary - no other updates in this deployment

    @blackbird I noticed that your clock read 11PM but the weather icon was a day mode variant

    I'm guessing you did not opt for automatic brightness control and the values that drive day/night weather graphics aren't being populated

    given weather provides sunset and sunrise I'll use those data to drive the icon logic

    update will be in the next release

    also, looking at memory management around the graphics to reduce footprint - that'll take a bit longer though
    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...

  9. #169
    Junior Member seekasoul's Avatar
    Join Date
    Jan 2020
    Location
    Italy
    Posts
    12

    SSE not supported, deactivating visualizer

    After last update i get blank screen and this message:

    tc@piCorePlayer:~$ cd /mnt/mmcblk0p2/tce
    tc@piCorePlayer:/mnt/mmcblk0p2/tce$ sudo /mnt/mmcblk0p2/tce/lmsmonitor -n "piCorePlayer" -m sa -x 0x3d -
    f 7 -z
    This is lmsmonitor (0.4.58) - built Sep 20 2020 09:57:04.
    SSE not supported, deactivating visualizer


    Running LMS 8.0.0 nightly.
    What is wrong?

  10. #170
    Senior Member shunte88's Avatar
    Join Date
    Aug 2010
    Posts
    101
    hi @seekasoul - chasing that down now - thought it may have been parameter sequence but I can easily reproduce
    I had dipped into that code on the last release so hopefully should be a quick turnaround

    Edit #1
    looks like its a case comparison of the MAC addresses, the new JSON flavor has the MAC in lower case and the hardware lookup has it in upper

    quick fix and repo will be updated shortly, will ping-back when done

    Edit #2
    update pushed inclusive of binary

    check it out and let me know if there any additional nasties
    Last edited by shunte88; 2020-09-24 at 20:10.
    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
  •