×
Create a new article
Write your page title here:
We currently have 3,189 articles on s23. Type your article name above or create one of the articles listed here!



    s23
    3,189Articles

    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">

    1. !/bin/bash
    2. 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">

    1. !/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">

    1. !/bin/bash
    2. 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

    BlinkenLib

    lldrv-xxx.tar.bz2


    Cookies help us deliver our services. By using our services, you agree to our use of cookies.
    Cookies help us deliver our services. By using our services, you agree to our use of cookies.