Bug 9355 - SC alarm CLI does not cover new alarm functionality
: SC alarm CLI does not cover new alarm functionality
Status: RESOLVED INVALID
Product: Logitech Media Server
Classification: Unclassified
Component: CLI
: 7.2
: All Other
: -- normal (vote)
: ---
Assigned To: Unassigned bug - please assign me!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-09-01 08:48 UTC by Joerg Schwieder
Modified: 2008-09-15 02:20 UTC (History)
1 user (show)

See Also:
Category: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Joerg Schwieder 2008-09-01 08:48:10 UTC
1. There does not seem to be a way to set the "Fade In", "Timeout" and "Snooze Length" parameters through the CLI or at least they are not documented

2. The alarm CLI only provides an interface to set a playlist URL for an alarm. But the default web UI offers also functionality to use Favorites, Random Mixes, the current playlist and Sounds. These are not available through the CLI or at least not documented.
Comment 1 Max Spicer 2008-09-01 10:51:04 UTC
1)  Fade in, timeout and snooze length are all preferences so can be set using the pref and playerpref commands.  See Slim::Utils::Alarm for info.  You want alarmfadeseconds, alarmTimeoutSeconds and alarmSnoozeSeconds.

2)  All alarm playlists are now urls, so you can set any playlist through the cli that you could set using the ui.  An easy way to get the urls would be to have a look at the html source for the alarm web settings ui.  e.g. randomplay://track.

Comment 2 Barry Gordon 2008-09-01 12:00:15 UTC
That helps and answers the questions regarding the fade, snooze, etc.  May I suggest that when such a change is made that it be placed in the CLI document as part of the change notice. That would help a lot.  I did not know where to look for the changes.  A note that would have said "... the fade parameter has been removed from the alarm command and is available as part of playerprefrences along with Timeout and Snooze.  See SLIM::Utils::Alarm" would have allowed a resolution with out a submission.

Now where do I find "Slimm::Utilities::Alarm" so I can look at it ? 

That still leaves the Bug/issue that the alarms command does not return a dow value.  It always returns dow: with no value.  That is in bug report 9354

Thank you for your assistance
Comment 3 Barry Gordon 2008-09-01 12:14:55 UTC
Okay I figured Slim::Utils::Alarm  should be somewhere in the squeezecenter app I installed on my PC 

I was able to locate a Slim::Utils folder but no subfolder called alarm.  I am obviously looking in the wrong place.  A hint would help

TIA
Comment 4 Joerg Schwieder 2008-09-15 02:20:06 UTC
BTW, what do you mean by "in the appropriate settings pages"?
Maybe this is a principal thing:

My understanding is: the primary means of controlling SC these days is the CLI or the JSON/RPC IF. If you plan to use that, it's very inappropriate to have developer documentation in perl or html or js source files since these don't apply. 
Apart from source files generally not being appropriate as a means of documentation.