imported>Veyron No edit summary |
imported>Veyron No edit summary |
||
Line 250: | Line 250: | ||
</tex> |
</tex> |
||
xxx --> |
xxx --> |
||
= X3D VIEW = |
|||
<X3D>http://s23.org/w/index.php?title=User_talk:Veyron?action=raw</X3D> |
|||
= X3D_DEMO = |
|||
<pre> |
|||
#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 |
|||
} |
|||
</pre> |
|||
= VRML = |
|||
<X3D>http://s23.org/w/index.php?title=User_talk:Veyron/S23Vrml?action=raw</X3D> |
|||
= S23Vrml = |
|||
<pre> |
|||
#VRML V2.0 utf8 |
|||
WorldInfo { |
|||
title "S23 VRML World" |
|||
info "S23" |
|||
} |
|||
NavigationInfo { |
|||
type "ANY" |
|||
avatarSize [ 1.1 1.6 1.1 ] |
|||
headlight TRUE |
|||
visibilityLimit 80000 |
|||
} |
|||
DirectionalLight { |
|||
color 1 0.8 0.7 |
|||
direction 0.9 -0.3 -0.35 |
|||
intensity 1 |
|||
} |
|||
DirectionalLight { |
|||
direction 1 -2 1 |
|||
intensity 0.5 |
|||
} |
|||
DirectionalLight { |
|||
direction 0 0 0 |
|||
intensity 1 |
|||
} |
|||
DEF StartView Viewpoint { |
|||
jump TRUE |
|||
description "Viewpoint" |
|||
orientation 0 1 0 0 |
|||
position 1 0 2 |
|||
} |
|||
Background { |
|||
skyColor [ |
|||
0.2 0.2 0.9, |
|||
0.0 0.5 1.0, |
|||
1.0 1.0 1.0 |
|||
] |
|||
skyAngle [0.785, 1.571] |
|||
groundColor [ |
|||
0.0 0.3 0.0, |
|||
0.0 0.6 0.0, |
|||
0.0 0.9 0.0 |
|||
] |
|||
groundAngle [0.785, 1.571] |
|||
frontUrl ["http://s23.org/w/skins/monobook/headbg.jpg"] |
|||
backUrl ["http://s23.org/w/skins/monobook/headbg.jpg"] |
|||
bottomUrl ["http://s23.org/w/skins/monobook/headbg.jpg"] |
|||
leftUrl ["http://s23.org/w/skins/monobook/headbg.jpg"] |
|||
rightUrl ["http://s23.org/w/skins/monobook/headbg.jpg"] |
|||
topUrl ["http://s23.org/w/skins/monobook/headbg.jpg"] |
|||
} |
|||
Transform { |
|||
children Shape { |
|||
appearance Appearance { |
|||
material Material { |
|||
} |
|||
} |
|||
geometry DEF MYTEXT Text { |
|||
string "S23" |
|||
} |
|||
} |
|||
} |
|||
Shape{ |
|||
appearance Appearance { |
|||
texture ImageTexture { |
|||
url "http://s23.org/w/skins/common/images/wiki.png" |
|||
repeatS FALSE |
|||
repeatT FALSE |
|||
} |
|||
textureTransform TextureTransform { scale 1 1 } |
|||
} |
|||
geometry IndexedFaceSet { |
|||
coord Coordinate { point [ -3 -3 1, |
|||
2 -2 1, |
|||
2 2 1, |
|||
-2 2 1 |
|||
] } |
|||
coordIndex [0,1,2,3] |
|||
texCoord TextureCoordinate {point [0 0,1 0,1 1,0 1]} |
|||
} |
|||
} |
|||
</pre> |
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