Hi folks,

the 0.4.54 release of LMS Monitor 2020 is now available in the 'repo'
(https://github.com/shunte88/LMSMonitor), inclusive source and binary
updates

apologies this took longer than I'd originally indicated but a large
chunk of the code was modified to switch out the telnet client for the
more robust JSON/RPC flavor.

given the extensive modifications there was a lot of testing to ensure
nothing was broken in the process.

the main benefit of the JSON/RPC  approach is given its a set of HTTP
calls it inherits all of the features of a modern RESTful set of API's. 
We no longer hang on to a connection and poll.  And given its RESTful we
don't maintain state so there's nothing that can silently die behind the
scenes requiring a full restart.  This could have been done in code but
hardly modern nor elegant.

bonus is the code is more streamlined and reusable across several
functions in the solution, and we also shed a good bit of code - less is
always more

so you can bounce your player, bounce your server, bounce them both
whether a track is playing or not the monitor simply keeps on trucking.

if its a player bounce mid track a warning will be displayed and as soon
as the track resumes we transition to play mode

if a server bounce its a little more interesting, if a track is playing
we'll momentarily display the warning then drop into the non-playback
mode

bouncing the server does not maintain state, so if a track where playing
playback does not continue/restart like it does with the player

irrespective when the server comes back up we're back on the green path,
seamlessly

31530

not too exciting but its a lot better than zero recovery

if you guys find any nasties let me know; I'll check back later today -
burnt the midnight oil to close this out so its time for a little nap
:cool:

note if you turn on verbose mode the new code is heavily instrumented so
its a lot more "chatty" - hopefully helps if you need to dig into any
problems on your own.


+-------------------------------------------------------------------+
|Filename: IMG_0820.PNG                                             |
|Download: http://forums.slimdevices.com/attachment.php?attachmentid=31530|
+-------------------------------------------------------------------+


As of 2020/09/11

*Total Tracks: 152,573
Total Albums: 14,063
Total Artists: 19,846
Total Genres: 712
Total Playing Time: 24417:05:11
*
------------------------------------------------------------------------
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