Your search query "linkto:"Script/olsr-topology-view.sh"" didn't return any results. Please change some terms and refer to HelpOnSearching for more information.
(!) Consider performing a full-text search with your search terms.

Clear message
Italiano English
Edit History Actions

Script/olsr-topology-view.sh

Visualizza la topologia in tempo reale. E' un'alternativa bash+python allo script in perl di meshcube (copia locale).

orangetopology.png

Requisiti:

TMPFILE="/tmp/new.dot"
IMAGEFILE="/tmp/new.png"
IMAGEFORMAT="png"
STYLE="-Gbgcolor=orange -Nstyle=filled -Nfillcolor=white -Nfontname=monospace -Nfontsize=10 -Efontname=monospace -Efontsize=9 -Earrowhead=normal"
DELAY="5"

DISPLAYED="0"

while ./dumpolsrdot.py > $TMPFILE; do
        [ "$?" -eq "0" ] || exit 1
        echo "-------------------------"
        echo `date`
        cat $TMPFILE
        dot $STYLE -T$IMAGEFORMAT $TMPFILE -o $IMAGEFILE
        if [ "$DISPLAYED" -eq "0" ] && [ "$?" -eq "0" ];then
               display -update $DELAY $IMAGEFILE &
               DISPLAYED="1"
        fi
        sleep $DELAY;
done