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?
  
--------------------



As of 2020/09/15

*Total Tracks: 152,720
Total Albums: 14,085
Total Artists: 19,859
Total Genres: 712
Total Playing Time: 24428:46:00*
------------------------------------------------------------------------
shunte88's Profile: http://forums.slimdevices.com/member.php?userid=40185
View this thread: http://forums.slimdevices.com/showthread.php?t=111790

_______________________________________________
unix mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/unix

Reply via email to