Dies ist eine alte Version des Dokuments!
23.shack
auf telnet.shack port 23/tcp laeuft ein service der diversen audio-foo per cmdline bereit stellt.
struktur
/root/noise/modules
- module
jedes modul stellt ein executable dar.
es sollte die option –help
erkennen und dann eine einzeilge hilfe ausgeben
interface
nc telnet.shack 23
/help
listet die vorhandenen module
/modulname (parameter)
startet das angegebene modul
module stand 2010-12-24:
type /chat to send text to everyone with @@ prepended type /espeak to say something with espeak type /join to set default_command to chat and join channel type /lang to set language or list available languages type /mpc to access mpd type /names to send text to everyone with @@ prepended type /nick to send text to everyone with @@ prepended type /part to leave chat mode type /play to play an audio file type /query to send a message to a specific user type /quit to exit type /sendmail to send an e-mail ( "TO(s)" "SUBJECT" [string instead of EOF]) type /set to set a variable type /sleep to pause for NUMBER seconds type /stream to play an audio stream type /test to do some test-module related stuff type /twitter to Bug Robert to implement Twitter-OAuth! type /unset to unset a variable type /vvs to query VVS type /zeit to say current time
/play
die durch /play
abrufbaren audio-clips liegen auf shack@shack:noise/samples/
/play
ohne optionen listet die aufrufbaren clips
/stream
die durch /stream
abrufbaren streams sind auf shack@shack:noise/streams/
konfgurierbar
/stream
ohne optionen listet die aufrufbaren streams
/stream off
schaltet das streaming ab.
sample config
fuer jeden stream wird unter shack@shack:noise/streams/
eine datei angelegt.
deren name ist ohne bedeutung und muss lediglich auf .xml
enden.
<?xml version="1.0"?> <station <!-- this will be displayed on /stream --> title="Secret Agent on SomaFM" <!-- how this will be called with /stream --> shortcut="secagent" <!-- this will be displayed on /stream --> topic="The soundtrack for your stylish, mysterious, dangerous life" <!-- the stream's url --> stream="http://somafm.com/startstream=secretagent.pls" <!-- the stream's website. informational --> website="http://somafm.com/" />