[Slim-Checkins] r8854 - /trunk/server/HTML/EN/html/docs/cli-api.html

fred at svn.slimdevices.com fred at svn.slimdevices.com
Mon Aug 7 17:42:16 PDT 2006


Author: fred
Date: Mon Aug  7 17:42:14 2006
New Revision: 8854

URL: http://svn.slimdevices.com?rev=8854&view=rev
Log:
Bug: N/A
Description: CLI docs precisions and improvements


Modified:
    trunk/server/HTML/EN/html/docs/cli-api.html

Modified: trunk/server/HTML/EN/html/docs/cli-api.html
URL: http://svn.slimdevices.com/trunk/server/HTML/EN/html/docs/cli-api.html?rev=8854&r1=8853&r2=8854&view=diff
==============================================================================
--- trunk/server/HTML/EN/html/docs/cli-api.html (original)
+++ trunk/server/HTML/EN/html/docs/cli-api.html Mon Aug  7 17:42:14 2006
@@ -79,12 +79,12 @@
 		playlist information if appropriate.
 	</li>
 	<li>
-		Command &quot;<a href="#dc_mode">mode &lt;play|pause|stop&gt;</a>&quot;
+		Command &quot;<a href="#mode">mode &lt;play|pause|stop&gt;</a>&quot;
 		is deprecated. Please use commands 
 		&quot;<a href="#play">play</a>&quot;, 
 		&quot;<a href="#stop">stop</a>&quot; and
 		&quot;<a href="#pause">pause</a>&quot;. The query 
-		&quot;<a href="#mode">mode ?</a>&quot; is not affected by this change.
+		&quot;<a href="#mode ?">mode ?</a>&quot; is not affected by this change.
 	</li>
 	<li>
 		Query &quot;<a href="#playlisttracks">playlisttracks</a>&quot; is
@@ -1005,10 +1005,31 @@
 	<li>
 		<strong><code><a href="#player model ?">player model ?</a></code></strong>
 	</li>
+	<li>
+		<strong><code><a href="#player displaytype ?">player displaytype ?</a></code></strong>
+	</li>
+	<li>
+		<strong><code><a href="#signalstrength ?">signalstrength ?</a></code></strong>
+	</li>
+	<li>
+		<strong><code><a href="#connected ?">connected ?</a></code></strong>
+	</li>
+	<li>
+		<strong><code><a href="#sleep">sleep</a></code></strong>
+	</li>
+	<li>
+		<strong><code><a href="#sync">sync</a></code></strong>
+	</li>
+	<li>
+		<strong><code><a href="#power">power</a></code></strong>
+	</li>
+	<li>
+		<strong><code><a href="#mixer volume">mixer volume</a></code></strong>
+	</li>
+	<li>
+		<strong><code><a href="#show">show</a></code></strong>
+	</li>
 <!-- MISSING COMMANDS HERE ! -->
-	<li>
-		<strong><code><a href="#connected ?">connected ?</a></code></strong>
-	</li>
 </ul>
 
 <p id="player count ?">
@@ -1144,47 +1165,156 @@
 	</p>
 </blockquote>
 
-
-<br><p><strong><code>player displaytype &lt;playerindex|playerid&gt; ?</code></strong></p>
-<p>The &quot;player displaytype&quot; command returns the display model of the player. Graphical 
-display types start with &quot;graphic-&quot;, non-graphical display type with &quot;noritake-&quot;.</p>
-<blockquote> 
-  <p> Request: &quot;player displaytype 0 ?&lt;LF&gt;&quot;<br>
-     Response: &quot;player displaytype 0 noritake-katakana&lt;LF&gt;&quot;</p>
-</blockquote>
-
-<br><p><strong><code>&lt;playerid&gt; sleep &lt;number|?&gt;</code></strong></p>
-<p>The &quot;sleep&quot; command specifies a number of seconds to continue playing 
-  before powering off the player. You may query the amount of time until the player 
-  sleeps by passing in a &quot;?&quot; parameter.</p>
-<p>Examples: </p>
-<blockquote> 
-  <p>Request: &quot;04:20:00:12:23:45 sleep ?&lt;LF&gt;&quot;<br>Response: &quot;04:20:00:12:23:45 sleep 105.3&lt;LF&gt;&quot;</p>
-  <p>Request: &quot;04:20:00:12:23:45 sleep 300&lt;LF&gt;&quot;<br>Response: &quot;04:20:00:12:23:45 sleep 300&lt;LF&gt;&quot;</p>
-</blockquote>
-
-<br><p id="sync">
-	<strong>
-		<code>&lt;playerid&gt; sync &lt;playerindex|playerid|-|?&gt;</code>
-	</strong>
-</p>
-<p>The &quot;sync&quot; command specifies the player to synchronise with the
-   given playerid. You may query which players are already synced with this
-   player by passing in a &quot;?&quot; parameter.  Multiple playerids are 
-   separated by a comma. If the player is not synced, &quot;-&quot; is returned.
-   To unsync a player, use the &quot;-&quot; parameter.</p>
-<p>Examples: </p>
-<blockquote> 
-  <p>Request: &quot;04:20:00:12:23:45 sync 1&lt;LF&gt;&quot;
-  	<br>Response: &quot;04:20:00:12:23:45 sync 1&lt;LF&gt;&quot;</p>
-  <p>Request: &quot;04:20:00:12:23:45 sync ?&lt;LF&gt;&quot;
-  	<br>Response: &quot;04:20:00:12:23:45 sync 04:20:00:12:23:21&lt;LF&gt;&quot;</p>
-  <p>Request: &quot;04:20:00:12:23:45 sync -&lt;LF&gt;&quot;
-  	<br>Response: &quot;04:20:00:12:23:45 sync -&lt;LF&gt;&quot;</p>
-</blockquote>
-
-<br>
-<p>
+<br>
+<p id="player displaytype ?">
+	<strong>
+		<code>
+			player
+			displaytype
+			&lt;playerindex|playerid&gt;
+			?
+		</code>
+	</strong>
+</p>
+<p>
+	The &quot;player displaytype ?&quot; query returns the display model of the
+	player. Graphical display types start with &quot;graphic-&quot;, 
+	non-graphical display type with &quot;noritake-&quot;.
+</p>
+<p>
+	Example:
+</p>
+<blockquote>
+	<p>
+		Request: &quot;player displaytype 0 ?&lt;LF&gt;&quot;
+		<br>
+		Response: &quot;player displaytype 0 noritake-katakana&lt;LF&gt;&quot;
+	</p>
+</blockquote>
+
+<br>
+<p id="signalstrength ?">
+	<strong>
+		<code>
+			&lt;playerid&gt;
+			signalstrength
+			?
+		</code>
+	</strong>
+</p>
+<p>
+	Returns the wireless signal strength for the player, range is 1 to 100.  
+	Returns 0 if not connected wirelessly.
+</p>
+<p>
+	Example:
+</p>
+<blockquote> 
+	<p>
+		Request: &quot;04:20:00:12:23:45 signalstrength ?&lt;LF&gt;&quot;
+		<br>
+		Response: &quot;04:20:00:12:23:45 signalstrength 76&lt;LF&gt;&quot;
+	</p>
+</blockquote>
+
+<br>
+<p id="connected ?">
+	<strong>
+		<code>
+			&lt;playerid&gt;
+			connected
+			?
+		</code>
+	</strong>
+</p>
+<p>
+	Returns the connected state of the player, 1 or 0 depending on the state of
+	the TCP connection to the player. SLIMP3 players, since they use UDP, 
+	always return 1.
+</p>
+<p>
+	Examples:
+</p>
+<blockquote> 
+	<p>
+		Request: &quot;04:20:00:12:23:45 connected ?&lt;LF&gt;&quot;
+		<br>
+		Response: &quot;04:20:00:12:23:45 connected 1&lt;LF&gt;&quot;
+	</p>
+</blockquote>
+
+<br>
+<p id="sleep">
+	<strong>
+		<code>
+			&lt;playerid&gt;
+			sleep
+			&lt;number|?&gt;
+		</code>
+	</strong>
+</p>
+<p>
+	The &quot;sleep&quot; command specifies a number of seconds to continue 
+	playing before powering off the player. You may query the amount of time 
+	until the player sleeps by passing in &quot;?&quot;.</p>
+<p>
+	Examples:
+</p>
+<blockquote> 
+	<p>
+		Request: &quot;04:20:00:12:23:45 sleep ?&lt;LF&gt;&quot;
+		<br>
+		Response: &quot;04:20:00:12:23:45 sleep 105.3&lt;LF&gt;&quot;
+	</p>
+	<p>
+		Request: &quot;04:20:00:12:23:45 sleep 300&lt;LF&gt;&quot;
+		<br>
+		Response: &quot;04:20:00:12:23:45 sleep 300&lt;LF&gt;&quot;
+	</p>
+</blockquote>
+
+<br>
+<p id="sync">
+	<strong>
+		<code>
+			&lt;playerid&gt;
+			sync 
+			&lt;playerindex|playerid|-|?&gt;
+		</code>
+	</strong>
+</p>
+<p>
+	The &quot;sync&quot; command specifies the player to synchronise with the 
+	given playerid. The command accepts only one playerindex or playerid. 
+	To unsync the player, use the &quot;-&quot; parameter.
+	<br>
+	You may query which players are already synced with this player by passing 
+	in a &quot;?&quot; parameter.  Multiple playerids are separated by a comma. 
+	If the player is not synced, &quot;-&quot; is returned.
+</p>
+<p>
+	Examples:
+</p>
+<blockquote>
+	<p>
+		Request: &quot;04:20:00:12:23:45 sync 1&lt;LF&gt;&quot;
+		<br>
+		Response: &quot;04:20:00:12:23:45 sync 1&lt;LF&gt;&quot;
+	</p>
+	<p>
+		Request: &quot;04:20:00:12:23:45 sync ?&lt;LF&gt;&quot;
+		<br>
+		Response: &quot;04:20:00:12:23:45 sync 04:20:00:12:23:21&lt;LF&gt;&quot;
+	</p>
+	<p>
+		Request: &quot;04:20:00:12:23:45 sync -&lt;LF&gt;&quot;
+		<br>
+		Response: &quot;04:20:00:12:23:45 sync -&lt;LF&gt;&quot;
+	</p>
+</blockquote>
+
+<br>
+<p id="power">
 	<strong>
 		<code>
 			&lt;playerid&gt;
@@ -1197,6 +1327,7 @@
 	The &quot;power&quot; command turns the player on or off. Use 0 to turn off, 
 	1 to turn on, ? to query and no parameter to toggle the power state of the 
 	player.
+	<br>
 	For remote streaming connections, the command does nothing and the query 
 	always returns 1.
 </p>
@@ -1217,71 +1348,29 @@
 </blockquote>
 
 <br>
-<p>
+<p id="mixer volume">
 	<strong>
 		<code>
 			&lt;playerid&gt;
-			signalstrength
-			?
-		</code>
-	</strong>
-</p>
-<p>
-	Returns the wireless signal strength for the player, range is 1 to 100.  
-	Returns 0 if not connected wirelessly.
-</p>
-<p>
-	Examples:
-</p>
-<blockquote> 
-	<p>
-		Request: &quot;04:20:00:12:23:45 signalstrength ?&lt;LF&gt;&quot;
-		<br>
-		Response: &quot;04:20:00:12:23:45 signalstrength 76&lt;LF&gt;&quot;
-	</p>
-</blockquote>
-
-<br>
-<p id="connected ?">
-	<strong>
-		<code>
-			&lt;playerid&gt;
-			connected
-			?
-		</code>
-	</strong>
-</p>
-<p>
-	Returns the connected state of the player, 1 or 0 depending on the state of
-	the TCP connection to the player. SLIMP3 players, since they use UDP, 
-	always return 1.
-</p>
-<p>
-	Examples:
-</p>
-<blockquote> 
-	<p>
-		Request: &quot;04:20:00:12:23:45 connected ?&lt;LF&gt;&quot;
-		<br>
-		Response: &quot;04:20:00:12:23:45 connected 1&lt;LF&gt;&quot;
-	</p>
-</blockquote>
-
-<br>
-	<p id="volume">
-		<strong>
-	<code>&lt;playerid&gt; mixer volume &lt;0 .. 100|-100 .. +100|?&gt;</code>
-		</strong>
-	</p>
-<p>The &quot;mixer volume&quot; command returns or sets the current volume 
+			mixer
+			volume
+			&lt;0 .. 100|-100 .. +100|?&gt;
+		</code>
+	</strong>
+</p>
+<p>
+	The &quot;mixer volume&quot; command returns or sets the current volume 
 	setting for the player. The scale is 0 to 100, in real numbers (i.e. 34.5 
 	is valid). If the player is muted, the volume is returned as a negative
 	value. Note that players display a 0 to 40 scale, that is, the 0..100 
 	volume divided by 2,5. Likewise, using the 
-	&quot;<a href="#button">button</a>&quot;command with &quot;volume_up&quot;
+	&quot;<a href="#button">button</a>&quot; command with &quot;volume_up&quot;
 	or &quot;volume_down&quot; parameters increases or decreases the volume by
-	2,5.</p>
-<p> Example: </p>
+	2,5.
+</p>
+<p>
+	Examples:
+</p>
 <blockquote> 
 	<p>
 		Request: &quot;04:20:00:12:23:45 mixer volume ?&lt;LF&gt;&quot;
@@ -1304,7 +1393,7 @@
 	<strong><code>&lt;playerid&gt; mixer muting &lt;0|1|?|&gt;</code></strong></p>
 <p>The &quot;mixer muting&quot; command mutes or unmutes the player. Use 0 to 
 	unmute, 1 to mute, ? to query and no parameter to toggle the muting state 
-	of the player. Note also the &quot;<a href="#volume">mixer volume</a>&quot;
+	of the player. Note also the &quot;<a href="#mixer volume">mixer volume</a>&quot;
 	command returns a negative value if the player is muted.</p>
 <p> Example: </p>
 <blockquote> 
@@ -1326,7 +1415,7 @@
 	The &quot;mixer bass&quot; command returns or sets the current bass setting 
 	for the player. This is only supported by SliMP3 and SqueezeBox (SB1) 
 	players. For more information on the 0 to 100 scale, please refer to 
-	the &quot;<a href="#volume">mixer volume</a>&quot; command.
+	the &quot;<a href="#mixer volume">mixer volume</a>&quot; command.
 </p>
 <p>
 	Example:
@@ -1355,7 +1444,7 @@
 <p>The &quot;mixer treble&quot; command returns or sets the current treble 
    setting for the player. This is only supported by SliMP3 and SqueezeBox (SB1) 
    players. For more information on the 0 to 100 scale, please refer to 
-   the &quot;<a href="#volume">mixer volume</a>&quot; command. </p>
+   the &quot;<a href="#mixer volume">mixer volume</a>&quot; command. </p>
 <p> Example: </p><p> Example: </p>
 <blockquote> 
   <p>Request: &quot;04:20:00:12:23:45 mixer treble ?&lt;LF&gt;&quot;
@@ -4124,7 +4213,58 @@
 <h2 id="PL">
 	Playlist commands and queries
 </h2>
-
+<ul>
+	<li>
+		<strong><code><a href="#play">play</a></code></strong>
+	</li>
+	<li>
+		<strong><code><a href="#stop">stop</a></code></strong>
+	</li>
+	<li>
+		<strong><code><a href="#pause">pause</a></code></strong>
+	</li>
+	<li>
+		<strong><code><a href="#mode ?">mode ?</a></code></strong>
+	</li>
+	<li>
+		<strong><code><a href="#time">time</a></code></strong>
+	</li>
+	<li>
+		<strong><code><a href="#cursonginfo">genre ?</a></code></strong>
+	</li>
+	<li>
+		<strong><code><a href="#cursonginfo">artist ?</a></code></strong>
+	</li>
+	<li>
+		<strong><code><a href="#cursonginfo">album ?</a></code></strong>
+	</li>
+	<li>
+		<strong><code><a href="#cursonginfo">title ?</a></code></strong>
+	</li>
+	<li>
+		<strong><code><a href="#cursonginfo">duration ?</a></code></strong>
+	</li>
+	<li>
+		<strong><code><a href="#cursonginfo">remote ?</a></code></strong>
+	</li>
+	<li>
+		<strong><code><a href="#cursonginfo">current_title ?</a></code></strong>
+	</li>
+	<li>
+		<strong><code><a href="#cursonginfo">path ?</a></code></strong>
+	</li>
+	<li>
+		<strong><code><a href="#playlist play">playlist play</a></code></strong>
+	</li>
+	<li>
+		<strong><code><a href="#playlist add">playlist add</a></code></strong>
+	</li>
+	<li>
+		<strong><code><a href="#playlist insert">playlist insert</a></code></strong>
+	</li>
+</ul>
+
+<br>
 <p id="play">
 	<strong>
 		<code>
@@ -4136,6 +4276,9 @@
 <p>
 	The &quot;play&quot; command allows to start playing the current playlist.
 </p>
+<p>
+	Example:
+</p>
 <blockquote> 
 	<p>
 		Request:  &quot;04:20:00:12:23:45 play&lt;LF&gt;&quot;
@@ -4155,6 +4298,9 @@
 </p>
 <p>
 	The &quot;stop&quot; command allows to stop playing the current playlist.
+</p>
+<p>
+	Example:
 </p>
 <blockquote> 
 	<p>
@@ -4175,6 +4321,9 @@
 	</strong>
 </p>
 <p>
+	Example:
+</p>
+<p>
 	You may use &quot;pause 1&quot; to force the player to pause, 
 	&quot;pause 0&quot; to force the player to unpause and &quot;pause&quot; to
 	toggle the pause state.
@@ -4188,7 +4337,7 @@
 </blockquote>
 
 <br>
-<p id="mode">
+<p id="mode ?">
 	<strong>
 		<code>
 			&lt;playerid&gt;
@@ -4201,6 +4350,9 @@
 	The &quot;mode&quot; command allows to query the player state and returns
 	one of &quot;play&quot;, &quot;stop&quot; or &quot;pause&quot;. If the
 	player is off, &quot;mode ?&quot; returned value is undefined.
+</p>
+<p>
+	Example:
 </p>
 <blockquote> 
  	<p>
@@ -4211,7 +4363,7 @@
 </blockquote>
 
 <br>
-<p>
+<p id="time">
 	<strong>
 		<code>
 			&lt;playerid&gt; 
@@ -4355,7 +4507,7 @@
 	</p>
 </blockquote>
 
-<br><p><strong><code>&lt;playerid&gt; playlist add &lt;item&gt;</code></strong></p>
+<br><p id="playlist add"><strong><code>&lt;playerid&gt; playlist add &lt;item&gt;</code></strong></p>
 <p>The &quot;playlist add&quot; command adds the specified song URL, playlist or directory contents to the end of the current playlist. 
 Songs currently playing or already on the playlist are not affected.</p>
 <p>Examples:</p>
@@ -4364,7 +4516,7 @@
 	<p>Request: &quot;04:20:00:12:23:45 playlist add /playlists/abba.m3u&lt;LF&gt;&quot;<br>Response: &quot;04:20:00:12:23:45 playlist add /playlists/abba.m3u&lt;LF&gt;&quot;</p>
 </blockquote>
 
-<br><p><strong><code>&lt;playerid&gt; playlist insert &lt;item&gt;</code></strong></p>
+<br><p id="playlist insert"><strong><code>&lt;playerid&gt; playlist insert &lt;item&gt;</code></strong></p>
 <p>The &quot;playlist insert&quot; command inserts the specified song URL, playlist or directory contents to be played immediately after the current song in the current playlist. 
 Any songs currently playing or already on the playlist are not affected.</p>
 <p>Examples:</p>



More information about the checkins mailing list