imported>Veyron No edit summary |
imported>Veyron No edit summary |
||
(12 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
= Meine Blinken "Skripte" = |
|||
== [[BlinkenOutput]] == |
|||
''/XXXX/[[BlinkenLib]]-0.5.2_2006-05-10/[[BlinkenOutput]] -l 2323 -f 18x8-1/16 -d /dev/[[lldrv]]'' |
|||
[[BlinkenOutput]] leitet den [[UDP]]-Stream von ''l''ocalhorst:''2323'' nach ''/dev/[[lldrv]]'' um. |
|||
Die Option ''-f 18x8-1/16'' skaliert den gesamten Stream auf ''18x8'' Pxl mit ''16'' Graustufen. |
|||
''/dev/[[lldrv]]'' ist das Ausgabegerät. |
|||
Diesen Aufruf habe ich auf dem Desktop platziert. |
|||
== [[BlCCC]] == |
|||
'''Bl'''inkenlights '''C'''haos '''C'''ontrol '''C'''enter |
|||
''[[blccc]] config.xml'' |
|||
''[[blccc]]'' sendet die in der ''config.xml'' definieren Steams. |
|||
Die mitgelieferte ''config.xml'' sieht wie Folgt aus: |
|||
<highlightSyntax language="xml"> |
|||
<?xml version="1.0"?> |
|||
<!-- Example blccc config (HDL Reloaded, Berlin, Germany) --> |
|||
<blccc> |
|||
<config> |
|||
<param key="width" value="18"/> |
|||
<param key="height" value="8"/> |
|||
<param key="aspect" value="0.5"/> |
|||
<param key="playlist" value="playlist.default.xml"/> |
|||
<param key="logfile" value="/var/tmp/blccc.log"/> |
|||
<param key="recipient" value="localhost:2323"/> |
|||
<param key="isdn-host" value="127.0.0.1"/> |
|||
<param key="isdn-port" value="1234"/> |
|||
<param key="isdn-listen" value="1236"/> |
|||
<!-- BlDispatch is the module of choice if only one phone line |
|||
is present. It starts with a default game or movie and allows |
|||
to change to other games or loveletters using *number#. --> |
|||
<application name="Dispatch" type="BlDispatch" |
|||
number="9876564" public="yes" soundloop="telekoma.alaw"> |
|||
<param key="loveletters" value="loveletters.xml"/> |
|||
</application> |
|||
<!-- If more numbers are available, applications can be preselect |
|||
by numbers. Below is a typical setup for such a setup. |
|||
<application name="Pong" type="BPong" |
|||
number="9876563" public="yes" wamp="telekoma.alaw"> |
|||
<param key="lifetime" value="120000"/> |
|||
</application> |
|||
<application name="Loveletters" type="BlOnDemand" |
|||
number="9876569" public="yes" wamp="telekoma.alaw"> |
|||
<param key="loveletters" value="loveletters.xml"/> |
|||
<param key="lifetime" value="24000"/> |
|||
</application> |
|||
--> |
|||
</config> |
|||
</blccc> |
|||
</highlightSyntax> |
|||
=== [[phonesim2]] === |
|||
Für den lokalen Betrieb kann man anstelle von ISDN den Quick-Hack [http://1stein.blinkenarea.org/phonesim2/ phonesim2] benutzen um mit [[blccc]] zu kommunizieren. |
|||
''phonesim2 <#channels> <client-bind-address> <caller-bind-address>'' |
|||
Um anzurufen gibt man einen Adresse ''caller-bin-address'' an, mit der man eine TCP-Verbindung aufbauen (z.B. mit netcat) kann. |
|||
== [[AMAROK]] BlinkenText.sh == |
|||
Erstelle eine Kopie des Skriptes in: ''~/.kde/share/apps/amarok/scripts/'' und betrachte Infos zum laufenden Titel auf dem [[BLP]]. Es wird neben der [[BlinkeLib]] auch [[blprint]] benutzt! |
|||
Die Zeile ''blprint 23 "$TEXT" >$DATAI'' erzeugt eine temporäre Datei mit Lauftext. Die Geschwindigkeit kann mit Hilfe der Zahl (''23'') gesteuert werden. |
|||
<highlightSyntax language="bash"> |
|||
#!/bin/bash |
|||
# bash play.sh |
|||
DATAI="ANS"$(date +%y%d%m%H%M%S).blm |
|||
/XXXX/BlinkenLib-0.5.2_2006-05-10/BlinkenOutput -l 2323 -f 18x8-1/16 -d /dev/lldrv & |
|||
PID_BO=$! |
|||
LIST=" album |
|||
artist |
|||
bitrate |
|||
comment |
|||
currentTime |
|||
encodedURL |
|||
engine |
|||
genre |
|||
lyrics |
|||
lastfmStation |
|||
nowPlaying |
|||
path |
|||
title |
|||
totalTime |
|||
track |
|||
type |
|||
year" |
|||
for ((;;)) |
|||
do |
|||
TEXT="" |
|||
for A in $LIST |
|||
do |
|||
STR=$(dcop amarok player $A ) |
|||
if [ -n "$STR" ] |
|||
then |
|||
TEXT=$(echo -e "$TEXT \n $STR") |
|||
fi |
|||
done |
|||
LIST=" album |
|||
artist |
|||
nowPlaying |
|||
title |
|||
track" |
|||
blprint 23 "$TEXT" >$DATAI |
|||
/XXXX/BlinkenLib-0.5.2_2006-05-10/BlinkenSend -d 127.0.0.1:2323 -i $DATAI |
|||
rm $DATAI |
|||
done |
|||
PID_BO=$(pidof BlinkenOutput) |
|||
kill $PID_BO |
|||
</highlightSyntax> |
|||
== [[Blinken_xmms]] == |
|||
Auch sehr hübsch;-) |
|||
== '''Veraltet!''' == |
|||
=== conv.sh === |
|||
Bevor ich die Skalierungsoption von [[BlinkenOutput]] entdeckte, schrieb ich diese Skript: |
|||
<highlightSyntax language="bash"> |
|||
#!/bin/bash |
|||
for i in $(ls ./*.bml) |
|||
do |
|||
WIDTH=$( cat $i | grep width= | cut -d '"' -f 2 ) |
|||
HEIGTH=$( cat $i | grep width= | cut -d '"' -f 4 ) |
|||
if [ $WIDTH -gt 18 ] && [ $HEIGTH -gt 8 ] |
|||
then |
|||
echo $WIDTH $HEIGTH |
|||
WIDTHN=$(( $WIDTH*8/$HEIGTH)) |
|||
echo " $WIDTHN x 8" |
|||
/XXXX/BlinkenLib-0.5.2_2006-05-10/BlinkenConv -i $i -s "$WIDTHN"x8 -o ./bmls_18x8/$i |
|||
fi |
|||
done |
|||
</highlightSyntax> |
|||
=== play.sh === |
|||
Bevor ich von [[blccc]] erfuhr, schrieb ich dieses Skript: |
|||
<highlightSyntax language="bash"> |
|||
#!/bin/bash |
|||
# bash play.sh |
|||
/XXXX/BlinkenLib-0.5.2_2006-05-10/BlinkenOutput -l 2323 -f 18x8-1/16 -d /dev/lldrv & |
|||
PID_NC=$! |
|||
read -t 1 |
|||
STRFOLD="bmls_18x8" |
|||
FOLD=$(ls ./$STRFOLD) |
|||
cd /XXX/$STRFOLD/ |
|||
echo -e $FOLD |
|||
for i in $FOLD |
|||
do |
|||
echo $(pwd)/$i |
|||
/XXXX/BlinkenLib-0.5.2_2006-05-10/BlinkenSend -d 127.0.0.1:2323 -i $i -l 1 |
|||
read -t 1 |
|||
done; |
|||
PID_NC=$(pidof BlinkenOutput) |
|||
kill $PID_NC |
|||
</highlightSyntax> |
|||
= Links = |
|||
*[http://blinkenlights.de/dist/blccc-1.999.tar.gz Download: blccc-1.999.tar.gz] |
|||
*[http://blinkenlights.de/download/blprint.tar.gz Download: blprint.tar.gz] |
|||
== Weitere Seiten == |
|||
[[BlinkenLEDsPro_1.1_engl#QuickHowTo]] |
|||
[http://1stein.blinkenarea.org/BlinkenLib/ BlinkenLib] |
|||
[http://1stein.blinkenarea.org/lldrv/ lldrv-xxx.tar.bz2] |
|||
[[Category:Blinkenlights]] |
|||
<!-- Alter Kram! |
|||
[[LaTeX]] test: |
[[LaTeX]] test: |
||
Line 7: | Line 211: | ||
<math>A \cdot x = b </math> |
<math>A \cdot x = b </math> |
||
< |
<math>A \cdot x = b : \left [\begin{matrix} 2 & 1 \\1 & -2 \end{matrix}\right ] \cdot \left [\begin{matrix} {\it x_1}\\{\it x_2}\end{matrix}\right ] = \left [\begin{matrix} 5\\0\end{matrix}\right ] </math> |
||
<tex> \mathbb{R} </tex> |
|||
<math> \mathbb{R} </math> |
|||
<tex> \Re </tex> |
|||
<math> \Re </math> |
|||
Line 22: | Line 239: | ||
<blinken delay=0.7 bgcolor="180,180,180" lamponcolor="255,255,255" lampoffcolor="0,0,0">-Test---Test--</blinken> |
<blinken delay=0.7 bgcolor="180,180,180" lamponcolor="255,255,255" lampoffcolor="0,0,0">-Test---Test--</blinken> |
||
<blinken delay=0.7 bgcolor="0,0,0" lamponcolor="0,0,0" lampoffcolor="255,255,255">st---</blinken> |
<blinken delay=0.7 bgcolor="0,0,0" lamponcolor="0,0,0" lampoffcolor="255,255,255">st---</blinken> |
||
---- |
|||
Exportfunktion von KFormula: |
|||
<tex> |
|||
\[ |
|||
\left[ \begin{array}{ c c c } 1 & 2 & 3 \\ 4 & 5 & 6 \\ 7 & 8 & 9 \end{array} \right] |
|||
\] |
|||
</tex> |
|||
xxx --> |
Latest revision as of 20:47, 6 October 2007
Meine Blinken "Skripte"[edit]
BlinkenOutput[edit]
/XXXX/BlinkenLib-0.5.2_2006-05-10/BlinkenOutput -l 2323 -f 18x8-1/16 -d /dev/lldrv
BlinkenOutput leitet den UDP-Stream von localhorst:2323 nach /dev/lldrv um.
Die Option -f 18x8-1/16 skaliert den gesamten Stream auf 18x8 Pxl mit 16 Graustufen.
/dev/lldrv ist das Ausgabegerät.
Diesen Aufruf habe ich auf dem Desktop platziert.
BlCCC[edit]
Blinkenlights Chaos Control Center
blccc config.xml
blccc sendet die in der config.xml definieren Steams.
Die mitgelieferte config.xml sieht wie Folgt aus:
<highlightSyntax language="xml"> <?xml version="1.0"?>
<blccc>
<config>
<param key="width" value="18"/> <param key="height" value="8"/> <param key="aspect" value="0.5"/> <param key="playlist" value="playlist.default.xml"/> <param key="logfile" value="/var/tmp/blccc.log"/> <param key="recipient" value="localhost:2323"/>
<param key="isdn-host" value="127.0.0.1"/> <param key="isdn-port" value="1234"/> <param key="isdn-listen" value="1236"/>
<application name="Dispatch" type="BlDispatch" number="9876564" public="yes" soundloop="telekoma.alaw"> <param key="loveletters" value="loveletters.xml"/> </application>
</config>
</blccc>
</highlightSyntax>
phonesim2[edit]
Für den lokalen Betrieb kann man anstelle von ISDN den Quick-Hack phonesim2 benutzen um mit blccc zu kommunizieren.
phonesim2 <#channels> <client-bind-address> <caller-bind-address>
Um anzurufen gibt man einen Adresse caller-bin-address an, mit der man eine TCP-Verbindung aufbauen (z.B. mit netcat) kann.
AMAROK BlinkenText.sh[edit]
Erstelle eine Kopie des Skriptes in: ~/.kde/share/apps/amarok/scripts/ und betrachte Infos zum laufenden Titel auf dem BLP. Es wird neben der BlinkeLib auch blprint benutzt!
Die Zeile blprint 23 "$TEXT" >$DATAI erzeugt eine temporäre Datei mit Lauftext. Die Geschwindigkeit kann mit Hilfe der Zahl (23) gesteuert werden.
<highlightSyntax language="bash">
- !/bin/bash
- bash play.sh
DATAI="ANS"$(date +%y%d%m%H%M%S).blm /XXXX/BlinkenLib-0.5.2_2006-05-10/BlinkenOutput -l 2323 -f 18x8-1/16 -d /dev/lldrv & PID_BO=$!
LIST=" album artist bitrate comment currentTime encodedURL engine genre lyrics lastfmStation nowPlaying path title totalTime track type year" for ((;;)) do TEXT=""
for A in $LIST do STR=$(dcop amarok player $A ) if [ -n "$STR" ] then TEXT=$(echo -e "$TEXT \n $STR") fi done
LIST=" album artist nowPlaying title track"
blprint 23 "$TEXT" >$DATAI
/XXXX/BlinkenLib-0.5.2_2006-05-10/BlinkenSend -d 127.0.0.1:2323 -i $DATAI rm $DATAI
done PID_BO=$(pidof BlinkenOutput) kill $PID_BO </highlightSyntax>
Blinken_xmms[edit]
Auch sehr hübsch;-)
Veraltet![edit]
conv.sh[edit]
Bevor ich die Skalierungsoption von BlinkenOutput entdeckte, schrieb ich diese Skript:
<highlightSyntax language="bash">
- !/bin/bash
for i in $(ls ./*.bml) do
WIDTH=$( cat $i | grep width= | cut -d '"' -f 2 ) HEIGTH=$( cat $i | grep width= | cut -d '"' -f 4 ) if [ $WIDTH -gt 18 ] && [ $HEIGTH -gt 8 ] then echo $WIDTH $HEIGTH WIDTHN=$(( $WIDTH*8/$HEIGTH)) echo " $WIDTHN x 8" /XXXX/BlinkenLib-0.5.2_2006-05-10/BlinkenConv -i $i -s "$WIDTHN"x8 -o ./bmls_18x8/$i fi
done </highlightSyntax>
play.sh[edit]
Bevor ich von blccc erfuhr, schrieb ich dieses Skript:
<highlightSyntax language="bash">
- !/bin/bash
- bash play.sh
/XXXX/BlinkenLib-0.5.2_2006-05-10/BlinkenOutput -l 2323 -f 18x8-1/16 -d /dev/lldrv & PID_NC=$! read -t 1
STRFOLD="bmls_18x8" FOLD=$(ls ./$STRFOLD) cd /XXX/$STRFOLD/ echo -e $FOLD for i in $FOLD do
echo $(pwd)/$i /XXXX/BlinkenLib-0.5.2_2006-05-10/BlinkenSend -d 127.0.0.1:2323 -i $i -l 1 read -t 1
done; PID_NC=$(pidof BlinkenOutput) kill $PID_NC </highlightSyntax>
Links[edit]
Weitere Seiten[edit]
BlinkenLEDsPro_1.1_engl#QuickHowTo