×
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

    User talk:Veyron: Difference between revisions

    Content added Content deleted
    imported>Veyron
    No edit summary
    imported>Veyron
    No edit summary
    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>


    == '''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]
    *[http://1stein.blinkenarea.org/BlinkenLib/ BlinkenLib]
    *[http://1stein.blinkenarea.org/lldrv/ lldrv-xxx.tar.bz2]

    <!-- Alter Kram!
    [[LaTeX]] test:
    [[LaTeX]] test:


    Line 45: Line 177:
    \]
    \]
    </tex>
    </tex>
    xxx -->

    Revision as of 21:52, 13 May 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>


    Veraltet!

    conv.sh

    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

    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


    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.