Re: [SlimDevices: Plugins] Announce: Beta version of SvrPowerControl

2010-12-13 Thread gharris999

mrw;594520 Wrote: 
> This OSX sleep issue must have been bubbling away for a quite some time,
> I think.
What would you guess the demand would be for this sort of solution on
pre Leopard systems?  How many Tiger SBS systems are out there, do you
suppose?

I did run across some code this afternoon that uses the same api as
SleepWatcher...code that I think I could shoe-horn into a Tiger version
of my utility.  Basically, it would still operate the same, with a timer
killing the run loop in order to terminate the program.  But it could
also register for power management notification, just like SleepWacher
does, and the pm callback could deny the any sleep requests that come
in before the timer expires.  

Admittedly, this is a simplistic approach.  I'm just trying to avoid
having to write sockets code on OSX.  Having a full-blown power state
monitoring daemon that communicates with SBS via the cli would take
this work full circle.  This was the approach advocated by epoch1970 a
few years ago.  I resisted it then, and I guess I'm still resisting it
simply because I know I'll end up spending months trying to get the
sockets code right and portable between osx, windows & linux.  Also,
while I've got a code example for OSX now and I have a good idea about
how to accomplish the same thing in C on Windows, I don't have much of
a clue about how to write a power monitor daemon under linux.  I've
found the gnome session-manager documentation to be sketchy, without
many examples in C of utilities interacting with the session-manager.


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


Re: [SlimDevices: Plugins] MusicInfoScrn - Music Information Screen: why always crashing after scan?

2010-12-13 Thread SamS

Michael,

Have you had an opportunity to review the prefs file I sent to you?


-- 
SamS

SamS's Profile: http://forums.slimdevices.com/member.php?userid=9261
View this thread: http://forums.slimdevices.com/showthread.php?t=83514

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


Re: [SlimDevices: Plugins] Announce: Beta version of SvrPowerControl

2010-12-13 Thread mrw

gharris999;594434 Wrote: 
> I think I've managed to produce a universal binary.  But I have no
> access to a ppc machine to see if it runs on 10.5.  Anyway, it works on
> my intel mac-mini.  Do let me know if you try it and it fails on your
> ppc machine.

You must have got it right, it runs.

And, having clicked "Reset all settings back to default values" on the
plug-in settings page, I think the plug-in will find it !
I'll feedback any issues that come to light.

gharris999;594434 Wrote: 
> I'm just doing a system call to killall.  On OSX, since SBS runs under a
> user account, this is straight forward
> ... # killall -9 sleep-inhibit

So if I find myself using this tool outside the SBS context I'd better
rename it ? :)

Thanks for your ongoing effort. This OSX sleep issue must have been
bubbling away for a quite some time, I think.


-- 
mrw

mrw's Profile: http://forums.slimdevices.com/member.php?userid=38299
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


Re: [SlimDevices: Plugins] customscan and amarok

2010-12-13 Thread haschmich

I'm trying to get going with dynamically exporting statistics to Amarok.
Whenever SB Server is trying to update amarokdb, I get an error log like
the following, and amarok statistics don't seem to get updated:


Code:


  [10-12-14 00:52:06.0345] Slim::Utils::Misc::msg (1165) Warning: 
[00:52:06.0302] DBD::mysql::st execute failed: Table 'amarokdb.tags' doesn't 
exist at 
/volume1/@appstore/SqueezeCenter/Cache/InstalledPlugins/Plugins/TrackStat/Amarok/Export.pm
 line 220.
  [10-12-14 00:52:06.0407] Slim::Utils::Misc::msg (1165) Warning: 
[00:52:06.0366] Use of uninitialized value in string ne at 
/volume1/@appstore/SqueezeCenter/Cache/InstalledPlugins/Plugins/TrackStat/Amarok/Export.pm
 line 221.
  [10-12-14 00:52:06.0490] Slim::Utils::Misc::msg (1165) Warning: 
[00:52:06.0449] DBD::mysql::st execute failed: Table 'amarokdb.tags' doesn't 
exist at 
/volume1/@appstore/SqueezeCenter/Cache/InstalledPlugins/Plugins/TrackStat/Amarok/Export.pm
 line 234.
  



This is on Squeeze Server 7.5.1 on a Synology 207+ NAS, with MySQL
running on the same NAS.

Any idea what might have gone wrong here?


-- 
haschmich

haschmich's Profile: http://forums.slimdevices.com/member.php?userid=41882
View this thread: http://forums.slimdevices.com/showthread.php?t=51708

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


Re: [SlimDevices: Plugins] SqueezeIR Support Thread

2010-12-13 Thread indifference_engine


A poll associated with this post was created, to vote and see the
results, please visit http://forums.slimdevices.com/showthread.php?t=79524

Question: Are you interested in IR-over-IP?

- Yes, I'd like to have IRoIP.
- No, I don't care.


hcanning;594452 Wrote: 
> It doesn't work on my other controller either, and I'm reluctant to do a
> hard reset before exhausting every other avenue.. Is there perhaps a
> manual install method
Yes :) 
hcanning;594452 Wrote: 
> that doesn't require a degree in Computer Science to comprehend? ;)
No :)

Seriously,  you can install the applets manually, there's a wiki
article on it here
http://wiki.slimdevices.com/index.php/SqueezePlay_Applets and you'll
need the SqueezeIr files from the SqueezeIR website (Files page) and
possibly (depending on your os) some SCP software.  Win SCP (from the
link on the wiki) is fine for windows.  You may find that manually
removing SqueezeIR and restarting the controller may get it back on the
applet list without having to do a manual re-install.  I think the
Applet Installer may be getting confused by having the repo move??

I have updated the version number on the repo (but no actual change to
SqueezeIR) to try and trick the applet Installer into getting the
message so it may work for you now...


-- 
indifference_engine

indifference_engine's Profile: 
http://forums.slimdevices.com/member.php?userid=20698
View this thread: http://forums.slimdevices.com/showthread.php?t=79524

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


Re: [SlimDevices: Plugins] SqueezeIR Support Thread

2010-12-13 Thread hcanning


A poll associated with this post was created, to vote and see the
results, please visit http://forums.slimdevices.com/showthread.php?t=79524

Question: Are you interested in IR-over-IP?

- Yes, I'd like to have IRoIP.
- No, I don't care.


It doesn't work on my other controller either, and I'm reluctant to do a
hard reset before exhausting every other avenue.. Is there perhaps a
manual install method that doesn't require a degree in Computer Science
to comprehend? ;)


-- 
hcanning

hcanning's Profile: http://forums.slimdevices.com/member.php?userid=6172
View this thread: http://forums.slimdevices.com/showthread.php?t=79524

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


Re: [SlimDevices: Plugins] Solution: TrackStat data to iTunes export on Mac OS

2010-12-13 Thread -tm-

Two possible reasons for the error message you're seeing:
1) the manually created TrackStat history file has the wrong format
2) there is a general problem with date conversion in the app on
machines with a different localization than German language

I have attached a small utility to diagnose the source of error: Just
load the TrackStat history file and examine the output generated as
text file. Please report back with it.


+---+
|Filename: debug-TrackStatRatingExport.zip  |
|Download: http://forums.slimdevices.com/attachment.php?attachmentid=10968|
+---+

-- 
-tm-

-tm-'s Profile: http://forums.slimdevices.com/member.php?userid=37094
View this thread: http://forums.slimdevices.com/showthread.php?t=83307

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


Re: [SlimDevices: Plugins] Announce: Beta version of SvrPowerControl

2010-12-13 Thread gharris999

mrw;594404 Wrote: 
> Not quite. You can force the system to sleep manually. (Apple menu item,
> 'Sleep'). This will override any 'NoSleep' assertions in force.
> An alternative approach might be to catch the system has woken event,
> and end at that point.
> Agree doesn't seem to be a biggie.
> Have the tool write out its PID to a known file and have SBS kill it
> from that ?
> Alternatively have SBS execute the tool through a script, and let the
> script handle the killing of an existing instance. Not unlike a system
> daemon start-up script.
> I haven't examined how SBS launches the tool.
> 
> Example: SleepWatcher will write out its PID if asked - I have used
> that for a similar purpose in the past.
> Thanks. I'll explore this further in the New Year. I think I did pick
> up on the sudoers configuration.
I incorporated all your suggestions last night and committed them to
the beta repo.  Thanks for the ideas!

I think I've managed to produce a universal binary.  But I have no
access to a ppc machine to see if it runs on 10.5.  Anyway, it works on
my intel mac-mini.  Do let me know if you try it and it fails on your
ppc machine.

I created a _killInhibitCmd function in the plugin that attempts to
kill gsession-inhibit or sleep-inhibit on either resume or plugin
shutdown (i.e., when SBS itself shuts down).  That ought to solve both
the "orphaned sleep-inhibit" problem that you pointed out and the "how
to update the plugin" problem I was speculating about.  

I'm just doing a system call to killall.  On OSX, since SBS runs under
a user account, this is straight forward.  On linux/gnome, however,
while SBS runs under the 'squeezeboxserver' account, gsession-inhibit
runs under the account of the user logged into gdm.  This requires
/etc/sudoers entries to both allow squeezeboxserver to run
gsession-inhibit as another user and to kill gsession-inhibit as that
other user.  E.g.:


Code:


  squeezeboxserver ALL = (ALL) NOPASSWD: 
/var/lib/squeezeboxserver/cache/InstalledPlugins/Plugins/ReallyPreventStandby/bin/unix/gsession-inhibit*
  squeezeboxserver ALL = (ALL) NOPASSWD: /usr/bin/killall -9 gsession-inhibit
  



I keep seeing warnings in various killall documentation that one has to
be careful with the command as you can end up killing more than you
intend.

On OSX, I'm doing a simple:

# killall -9 sleep-inhibit

On gnome, it's:

# sudo -u $gnome_user killall -9 sleep-inhibit

Anyone see a problem with this approach?  I'm sure there must be a more
elegant and sure solution.


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


Re: [SlimDevices: Plugins] Announce: Beta version of SvrPowerControl

2010-12-13 Thread mrw

gharris999;594340 Wrote: 
> Presumably, the system won't sleep while the timer is waiting since the
> 'NoSleep' assertion isn't released until after the timer has fired.
Not quite. You can force the system to sleep manually. (Apple menu
item, 'Sleep'). This will override any 'NoSleep' assertions in force.
An alternative approach might be to catch the system has woken event,
and end at that point.
Agree doesn't seem to be a biggie.
gharris999;594340 Wrote: 
> A bigger problem, as I see it, involves updating the plugin.  I'm not
> sure exactly what happens when SBS tries to update the plugin while the
> "old" sleep-inhibit is executing.  I'm going to have to figure out an
> approach for this one.
> Have the tool write out its PID to a known file and have SBS kill it
from that ?
Alternatively have SBS execute the tool through a script, and let the
script handle the killing of an existing instance. Not unlike a system
daemon start-up script.
I haven't examined how SBS launches the tool.

Example: SleepWatcher will write out its PID if asked - I have used
that for a similar purpose in the past.
gharris999;594340 Wrote: 
> 
> SrvrPowerCtrl's EOD function needs will probably fill your needs. Thanks. 
> I'll explore this further in the New Year. I think I did pick
up on the sudoers configuration.


-- 
mrw

mrw's Profile: http://forums.slimdevices.com/member.php?userid=38299
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


Re: [SlimDevices: Plugins] Announce: Spotify Premium Plugin (Beta)

2010-12-13 Thread asdti

Was using Napster, which is now too slow at nights and weekends to use
at all, so I was looking for an alternative.

Thanks to Triode for this Spotify plugin - it loaded simply for me an
works well with my system and firewalls (Norton). Just wanted to say
that if any other forum user is uncertain, then give this a try.

Thanks again, Triode!


-- 
asdti

asdti's Profile: http://forums.slimdevices.com/member.php?userid=38467
View this thread: http://forums.slimdevices.com/showthread.php?t=79706

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


Re: [SlimDevices: Plugins] Napster working?

2010-12-13 Thread asdti

Hi Michael,

I didn't know you could increase the timeout (as opposed to the buffer)
for mysqueezebox.com.  Can you help me to find how to change this? If I
look under players in mysqueezebox.com I can change the buffer size,
but not the timeout to make a connection?

Mark


-- 
asdti

asdti's Profile: http://forums.slimdevices.com/member.php?userid=38467
View this thread: http://forums.slimdevices.com/showthread.php?t=83821

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