imported>Veyron No edit summary |
imported>Veyron No edit summary |
||
Line 250: | Line 250: | ||
</tex> |
</tex> |
||
xxx --> |
xxx --> |
||
= X3D VIEW = |
|||
= X3D DEMO = |
|||
<X3D> |
|||
#X3D V3.0 utf8 |
|||
PROFILE Interchange |
|||
WorldInfo |
|||
{ |
|||
info "S23" |
|||
title "S23 VRML World" |
|||
} |
|||
NavigationInfo |
|||
{ |
|||
avatarSize |
|||
[ |
|||
1.100000 |
|||
1.600000 |
|||
1.100000 |
|||
] |
|||
type "walk" |
|||
visibilityLimit 8e4 |
|||
} |
|||
DirectionalLight |
|||
{ |
|||
color 1 0.800000 0.699999 |
|||
direction 0.899999 -0.300000 -0.349999 |
|||
} |
|||
DirectionalLight |
|||
{ |
|||
direction 1 -2 1 |
|||
intensity 0.500000 |
|||
} |
|||
DirectionalLight |
|||
{ |
|||
direction 0 0 0 |
|||
} |
|||
DEF StartView Viewpoint |
|||
{ |
|||
description "Viewpoint" |
|||
jump FALSE |
|||
orientation 0 -1 0 1.570799 |
|||
position 0 5 0 |
|||
} |
|||
</X3D> |
Revision as of 20:48, 29 September 2007
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 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
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
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
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
Weitere Seiten
BlinkenLEDsPro_1.1_engl#QuickHowTo
X3D VIEW
X3D DEMO
<X3D>
- X3D V3.0 utf8
PROFILE Interchange
WorldInfo
{ info "S23" title "S23 VRML World" }
NavigationInfo
{ avatarSize [ 1.100000 1.600000 1.100000 ] type "walk" visibilityLimit 8e4 }
DirectionalLight
{ color 1 0.800000 0.699999 direction 0.899999 -0.300000 -0.349999 }
DirectionalLight
{ direction 1 -2 1 intensity 0.500000 }
DirectionalLight
{ direction 0 0 0 }
DEF StartView Viewpoint
{ description "Viewpoint" jump FALSE orientation 0 -1 0 1.570799 position 0 5 0 }
</X3D>