Hirdetés

Új hozzászólás Aktív témák

  • chros

    őstag

    válasz siddis #58130 üzenetére

    :D Kis is probaltam, kezzel illesztve be ezeket.
    A letoltott wifianalyzer.sh fajlbol kikommenteztem a vegen levo fajl torlest : #rm ${FILE_GNUPLOT} , igy a /tmp konyvtarban lesz 2 tmp fajl a szukseges adatokkal.
    A data.txt reszhez egy az egyben a data tmp fajl tartalmat kell bemasolni:
    -1 0 "SKYE9D12"
    1 14 "SKYE9D12"
    3 0 "SKYE9D12"

    4 0 "BTWifi-with-FON"
    6 55 "BTWifi-with-FON"
    8 0 "BTWifi-with-FON"

    4 0 "BTWifi-X"
    6 53 "BTWifi-X"
    8 0 "BTWifi-X"

    4 0 "BTHub3-8M36"
    6 55 "BTHub3-8M36"
    8 0 "BTHub3-8M36"

    4 0 "virginmedia3517648"
    6 12 "virginmedia3517648"
    8 0 "virginmedia3517648"

    9 0 "BTWifi-X"
    11 7 "BTWifi-X"
    13 0 "BTWifi-X"

    8 0 "HP83D8C7"
    10 9 "HP83D8C7"
    12 0 "HP83D8C7"

    9 0 "BTWifi-X"
    11 12 "BTWifi-X"
    13 0 "BTWifi-X"

    6 0 "SKY45945"
    8 14 "SKY45945"
    10 0 "SKY45945"

    7 0 "Airport"
    9 14 "Airport"
    11 0 "Airport"

    9 0 "BTWifi-with-FON"
    11 8 "BTWifi-with-FON"
    13 0 "BTWifi-with-FON"

    A script reszbe pedi ezt raktam a masik ${FILE_GNUPLOT} fajlbol (a sortoreseket szedtem ki csupan a tmp fajlbol):
    # Scale font and line width (dpi) by changing the size! It will always display stretched.
    set terminal svg size 400,300 enhanced fname 'arial' fsize 10 butt solid
    set output 'out.svg'

    # Key means label...
    #plot "data.txt" using 1:2 title 'Col-Force' with lines, "data.txt" using 1:3 title 'Beam-Force' with linespoints

    #set terminal png small size 640,640
    #set output '/mnt/downloads/wifi.png.t'
    set xlabel "WiFi channels"
    set ylabel "Signal strength [dBm]"
    set grid
    set key left
    set xrange [ -1 : 16 ] noreverse nowriteback
    set xtics 1,1,14
    set yrange [ 0 : 100 ]
    set ytics ("-100" 0, "-90" 10, "-80" 20, "-70" 30, "-60" 40, "-50" 50, "-40" 60, "-30" 70, "-20" 80, "-10" 90, "0" 100)
    plot 'data.txt' ind 0:0 using 1:2 noti w filledcurve smooth csplines, 'data.txt' ind 1:1 using 1:2 noti w filledcurve smooth csplines,'data.txt' ind 2:2 using 1:2 noti w filledcurve smooth csplines,'data.txt' ind 3:3 using 1:2 noti w filledcurve smooth csplines,'data.txt' ind 4:4 using 1:2 noti w filledcurve smooth csplines,'data.txt' ind 5:5 using 1:2 noti w filledcurve smooth csplines,'data.txt' ind 6:6 using 1:2 noti w filledcurve smooth csplines,'data.txt' ind 7:7 using 1:2 noti w filledcurve smooth csplines,'data.txt' ind 8:8 using 1:2 noti w filledcurve smooth csplines,'data.txt' every ::1::1 using 1:2:3 w labels center offset 0,1 notitle

    Mar csak az automatizalas van hatra :) Ha van kedve valakinek, akkor eljatszhat vele. :)

Új hozzászólás Aktív témák