epoch1970;519221 Wrote: 
> Gordon,
> I'm moving all my CLI stuff to Json. I use JSON::RPC::Client.
> Using SC 7.3.4 and Server Power Control (v20091017.22), I am able to
> set and delete blockers with Json same as with the CLI, except the
> 'viacli' special blockerid doesn't seem to work at all.
> 
> set a block (ok): my @query =
> ['',['srvrpowerctrl','setblock','REASON','BLOCKERID']];
> remove a block (ok): @query =
> ['',['srvrpowerctrl','clearblock',$sbblockid,'BLOCKERID']];
> remove a block (fails): @query =
> ['',['srvrpowerctrl','clearblock',$sbblockid,'viacli']];
> remove a block (fails): @query =
> ['',['srvrpowerctrl','clearblock','','viacli']];
> remove a block (fails): @query =
> ['',['srvrpowerctrl','clearblock','viacli']];
> 
> 
> Additionally, when I get an error no response seems returned at all,
> while my naive code expected to get an object with a value in the
> "is_error" method. mySB.com does return a proper $response->is_error in
> case of problem. I wouldn't know if this slight issue -easily cured with
> an extra check- is plugin or server dependent.
Something weird has been going on in this part of the SrvrPowerCtrl
code since the last update when I tweaked a lot of the block/unblock
code.  I'm finding that the srvrpowerctrl log seems to die after a
while.  Also, I'm wondering if some bug in srvrpowerctrl is interfering
with scanning. I'm spending most of my time this month ripping and
adding to my library the new CDs that represent my growing appreciation
for semi-obscure Romantic & Post-Romantic composers (Herzogenberg,
Kalliwoda, Lachner, Marschner, Rheinberger, Draeske, Klughardt,
Sgambati, Thuille).  I have a script that pushes my flacs from my
windows-based ripping machine to my linux based server, setting and
clearing a srvrpowerctrl block at the start and end of each
'transaction'.  I'm finding that after a dozen or so of these
transactions, a 'scan for new' with 7.3.4 fails.  I don't know if this
is SrvrPowerCtrl's fault or due to the fact that my 1T audio drive is
now 97% full.

Anyway, do you still see the same problems with your code when you try
running it right after you've restarted squeezecenter?  That's what I'm
seeing: the set/clear block works fine...for a while.  Then the log
seems to die...but the set/clear block commands continue to work...and
then eventually they die too.  I think this is going to take some
spelunking to sort out.


-- 
gharris999
------------------------------------------------------------------------
gharris999's Profile: http://forums.slimdevices.com/member.php?userid=115
View this thread: http://forums.slimdevices.com/showthread.php?t=48521

_______________________________________________
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins

Reply via email to