Skip to content

Instantly share code, notes, and snippets.

@lnaia
Last active October 8, 2015 22:17
Show Gist options
  • Save lnaia/3edeaa89a0e371c94e83 to your computer and use it in GitHub Desktop.
Save lnaia/3edeaa89a0e371c94e83 to your computer and use it in GitHub Desktop.
barebones task #1 IoT
#!/usr/bin/gnuplot
set terminal png
set xlabel "distance"
set ylabel "power"
set title "Power vs Distance"
set grid
set style data linespoints
plot "plot.dat" using 1:2
x:-34.5:y:0:MAC:00:00:00:00:00:02:Power[dBm]:-95.8329
Associated with AP
x:-34.5:y:0:MAC:00:00:00:00:00:02:Power[dBm]:-95.8329
x:-34.5:y:0:MAC:00:00:00:00:00:02:Power[dBm]:-95.8329
x:-34.5:y:0:MAC:00:00:00:00:00:02:Power[dBm]:-95.8329
x:-34.5:y:0:MAC:00:00:00:00:00:02:Power[dBm]:-95.8329
x:-34.5:y:0:MAC:00:00:00:00:00:02:Power[dBm]:-95.8329
x:-34.5:y:0:MAC:00:00:00:00:00:02:Power[dBm]:-95.8329
x:-34.5:y:0:MAC:00:00:00:00:00:02:Power[dBm]:-95.8329
x:-34.5:y:0:MAC:00:00:00:00:00:02:Power[dBm]:-95.8329
x:-34.5:y:0:MAC:00:00:00:00:00:02:Power[dBm]:-95.8329
x:-34:y:0:MAC:00:00:00:00:00:02:Power[dBm]:-95.6427
x:-34:y:0:MAC:00:00:00:00:00:02:Power[dBm]:-95.6427
x:-34:y:0:MAC:00:00:00:00:00:02:Power[dBm]:-95.6427
x:-34:y:0:MAC:00:00:00:00:00:02:Power[dBm]:-95.6427
x:-34:y:0:MAC:00:00:00:00:00:02:Power[dBm]:-95.6427
x:-34:y:0:MAC:00:00:00:00:00:02:Power[dBm]:-95.6427
x:-34:y:0:MAC:00:00:00:00:00:02:Power[dBm]:-95.6427
x:-34:y:0:MAC:00:00:00:00:00:02:Power[dBm]:-95.6427
x:-34:y:0:MAC:00:00:00:00:00:02:Power[dBm]:-95.6427
x:-34:y:0:MAC:00:00:00:00:00:02:Power[dBm]:-95.6427
x:-33.5:y:0:MAC:00:00:00:00:00:02:Power[dBm]:-95.4496
x:-33.5:y:0:MAC:00:00:00:00:00:02:Power[dBm]:-95.4496
x:-33.5:y:0:MAC:00:00:00:00:00:02:Power[dBm]:-95.4496
x:-33.5:y:0:MAC:00:00:00:00:00:02:Power[dBm]:-95.4496
x:-33.5:y:0:MAC:00:00:00:00:00:02:Power[dBm]:-95.4496
x:-33.5:y:0:MAC:00:00:00:00:00:02:Power[dBm]:-95.4496
x:-33.5:y:0:MAC:00:00:00:00:00:02:Power[dBm]:-95.4496
x:-33.5:y:0:MAC:00:00:00:00:00:02:Power[dBm]:-95.4496
x:-33.5:y:0:MAC:00:00:00:00:00:02:Power[dBm]:-95.4496
x:-33:y:0:MAC:00:00:00:00:00:02:Power[dBm]:-95.2537
x:-33:y:0:MAC:00:00:00:00:00:02:Power[dBm]:-95.2537
x:-33:y:0:MAC:00:00:00:00:00:02:Power[dBm]:-95.2537
x:-33:y:0:MAC:00:00:00:00:00:02:Power[dBm]:-95.2537
x:-33:y:0:MAC:00:00:00:00:00:02:Power[dBm]:-95.2537
x:-33:y:0:MAC:00:00:00:00:00:02:Power[dBm]:-95.2537
x:-33:y:0:MAC:00:00:00:00:00:02:Power[dBm]:-95.2537
x:-33:y:0:MAC:00:00:00:00:00:02:Power[dBm]:-95.2537
x:-33:y:0:MAC:00:00:00:00:00:02:Power[dBm]:-95.2537
x:-33:y:0:MAC:00:00:00:00:00:02:Power[dBm]:-95.2537
x:-32.5:y:0:MAC:00:00:00:00:00:02:Power[dBm]:-95.0548
x:-32.5:y:0:MAC:00:00:00:00:00:02:Power[dBm]:-95.0548
x:-32.5:y:0:MAC:00:00:00:00:00:02:Power[dBm]:-95.0548
x:-32.5:y:0:MAC:00:00:00:00:00:02:Power[dBm]:-95.0548
x:-32.5:y:0:MAC:00:00:00:00:00:02:Power[dBm]:-95.0548
x:-32.5:y:0:MAC:00:00:00:00:00:02:Power[dBm]:-95.0548
x:-32.5:y:0:MAC:00:00:00:00:00:02:Power[dBm]:-95.0548
x:-32.5:y:0:MAC:00:00:00:00:00:02:Power[dBm]:-95.0548
x:-32.5:y:0:MAC:00:00:00:00:00:02:Power[dBm]:-95.0548
x:-32.5:y:0:MAC:00:00:00:00:00:02:Power[dBm]:-95.0548
x:-32:y:0:MAC:00:00:00:00:00:02:Power[dBm]:-94.8528
x:-32:y:0:MAC:00:00:00:00:00:02:Power[dBm]:-94.8528
x:-32:y:0:MAC:00:00:00:00:00:02:Power[dBm]:-94.8528
x:-32:y:0:MAC:00:00:00:00:00:02:Power[dBm]:-94.8528
x:-32:y:0:MAC:00:00:00:00:00:02:Power[dBm]:-94.8528
x:-32:y:0:MAC:00:00:00:00:00:02:Power[dBm]:-94.8528
x:-32:y:0:MAC:00:00:00:00:00:02:Power[dBm]:-94.8528
x:-32:y:0:MAC:00:00:00:00:00:02:Power[dBm]:-94.8528
x:-32:y:0:MAC:00:00:00:00:00:02:Power[dBm]:-94.8528
x:-32:y:0:MAC:00:00:00:00:00:02:Power[dBm]:-94.8528
x:-31.5:y:0:MAC:00:00:00:00:00:02:Power[dBm]:-94.6476
x:-31.5:y:0:MAC:00:00:00:00:00:02:Power[dBm]:-94.6476
x:-31.5:y:0:MAC:00:00:00:00:00:02:Power[dBm]:-94.6476
x:-31.5:y:0:MAC:00:00:00:00:00:02:Power[dBm]:-94.6476
x:-31.5:y:0:MAC:00:00:00:00:00:02:Power[dBm]:-94.6476
x:-31.5:y:0:MAC:00:00:00:00:00:02:Power[dBm]:-94.6476
x:-31.5:y:0:MAC:00:00:00:00:00:02:Power[dBm]:-94.6476
x:-31.5:y:0:MAC:00:00:00:00:00:02:Power[dBm]:-94.6476
x:-31.5:y:0:MAC:00:00:00:00:00:02:Power[dBm]:-94.6476
x:-31:y:0:MAC:00:00:00:00:00:02:Power[dBm]:-94.4392
x:-31:y:0:MAC:00:00:00:00:00:02:Power[dBm]:-94.4392
x:-31:y:0:MAC:00:00:00:00:00:02:Power[dBm]:-94.4392
x:-31:y:0:MAC:00:00:00:00:00:02:Power[dBm]:-94.4392
x:-31:y:0:MAC:00:00:00:00:00:02:Power[dBm]:-94.4392
x:-31:y:0:MAC:00:00:00:00:00:02:Power[dBm]:-94.4392
x:-31:y:0:MAC:00:00:00:00:00:02:Power[dBm]:-94.4392
x:-31:y:0:MAC:00:00:00:00:00:02:Power[dBm]:-94.4392
x:-31:y:0:MAC:00:00:00:00:00:02:Power[dBm]:-94.4392
x:-31:y:0:MAC:00:00:00:00:00:02:Power[dBm]:-94.4392
x:-30.5:y:0:MAC:00:00:00:00:00:02:Power[dBm]:-94.2273
x:-30.5:y:0:MAC:00:00:00:00:00:02:Power[dBm]:-94.2273
x:-30.5:y:0:MAC:00:00:00:00:00:02:Power[dBm]:-94.2273
x:-30.5:y:0:MAC:00:00:00:00:00:02:Power[dBm]:-94.2273
x:-30.5:y:0:MAC:00:00:00:00:00:02:Power[dBm]:-94.2273
x:-30.5:y:0:MAC:00:00:00:00:00:02:Power[dBm]:-94.2273
x:-30.5:y:0:MAC:00:00:00:00:00:02:Power[dBm]:-94.2273
x:-30.5:y:0:MAC:00:00:00:00:00:02:Power[dBm]:-94.2273
x:-30.5:y:0:MAC:00:00:00:00:00:02:Power[dBm]:-94.2273
x:-30.5:y:0:MAC:00:00:00:00:00:02:Power[dBm]:-94.2273
x:-30:y:0:MAC:00:00:00:00:00:02:Power[dBm]:-94.0119
x:-30:y:0:MAC:00:00:00:00:00:02:Power[dBm]:-94.0119
x:-30:y:0:MAC:00:00:00:00:00:02:Power[dBm]:-94.0119
x:-30:y:0:MAC:00:00:00:00:00:02:Power[dBm]:-94.0119
x:-30:y:0:MAC:00:00:00:00:00:02:Power[dBm]:-94.0119
x:-30:y:0:MAC:00:00:00:00:00:02:Power[dBm]:-94.0119
x:-30:y:0:MAC:00:00:00:00:00:02:Power[dBm]:-94.0119
x:-30:y:0:MAC:00:00:00:00:00:02:Power[dBm]:-94.0119
x:-30:y:0:MAC:00:00:00:00:00:02:Power[dBm]:-94.0119
x:-30:y:0:MAC:00:00:00:00:00:02:Power[dBm]:-94.0119
x:-29.5:y:0:MAC:00:00:00:00:00:02:Power[dBm]:-93.793
x:-29.5:y:0:MAC:00:00:00:00:00:02:Power[dBm]:-93.793
x:-29.5:y:0:MAC:00:00:00:00:00:02:Power[dBm]:-93.793
x:-29.5:y:0:MAC:00:00:00:00:00:02:Power[dBm]:-93.793
x:-29.5:y:0:MAC:00:00:00:00:00:02:Power[dBm]:-93.793
x:-29.5:y:0:MAC:00:00:00:00:00:02:Power[dBm]:-93.793
x:-29.5:y:0:MAC:00:00:00:00:00:02:Power[dBm]:-93.793
x:-29.5:y:0:MAC:00:00:00:00:00:02:Power[dBm]:-93.793
x:-29.5:y:0:MAC:00:00:00:00:00:02:Power[dBm]:-93.793
x:-29.5:y:0:MAC:00:00:00:00:00:02:Power[dBm]:-93.793
x:-29:y:0:MAC:00:00:00:00:00:02:Power[dBm]:-93.5702
x:-29:y:0:MAC:00:00:00:00:00:02:Power[dBm]:-93.5702
x:-29:y:0:MAC:00:00:00:00:00:02:Power[dBm]:-93.5702
x:-29:y:0:MAC:00:00:00:00:00:02:Power[dBm]:-93.5702
x:-29:y:0:MAC:00:00:00:00:00:02:Power[dBm]:-93.5702
x:-29:y:0:MAC:00:00:00:00:00:02:Power[dBm]:-93.5702
x:-29:y:0:MAC:00:00:00:00:00:02:Power[dBm]:-93.5702
x:-29:y:0:MAC:00:00:00:00:00:02:Power[dBm]:-93.5702
x:-29:y:0:MAC:00:00:00:00:00:02:Power[dBm]:-93.5702
x:-28.5:y:0:MAC:00:00:00:00:00:02:Power[dBm]:-93.3436
x:-28.5:y:0:MAC:00:00:00:00:00:02:Power[dBm]:-93.3436
x:-28.5:y:0:MAC:00:00:00:00:00:02:Power[dBm]:-93.3436
x:-28.5:y:0:MAC:00:00:00:00:00:02:Power[dBm]:-93.3436
x:-28.5:y:0:MAC:00:00:00:00:00:02:Power[dBm]:-93.3436
x:-28.5:y:0:MAC:00:00:00:00:00:02:Power[dBm]:-93.3436
x:-28.5:y:0:MAC:00:00:00:00:00:02:Power[dBm]:-93.3436
x:-28.5:y:0:MAC:00:00:00:00:00:02:Power[dBm]:-93.3436
x:-28.5:y:0:MAC:00:00:00:00:00:02:Power[dBm]:-93.3436
x:-28.5:y:0:MAC:00:00:00:00:00:02:Power[dBm]:-93.3436
x:-28:y:0:MAC:00:00:00:00:00:02:Power[dBm]:-93.113
x:-28:y:0:MAC:00:00:00:00:00:02:Power[dBm]:-93.113
x:-28:y:0:MAC:00:00:00:00:00:02:Power[dBm]:-93.113
x:-28:y:0:MAC:00:00:00:00:00:02:Power[dBm]:-93.113
x:-28:y:0:MAC:00:00:00:00:00:02:Power[dBm]:-93.113
x:-28:y:0:MAC:00:00:00:00:00:02:Power[dBm]:-93.113
x:-28:y:0:MAC:00:00:00:00:00:02:Power[dBm]:-93.113
x:-28:y:0:MAC:00:00:00:00:00:02:Power[dBm]:-93.113
x:-28:y:0:MAC:00:00:00:00:00:02:Power[dBm]:-93.113
x:-28:y:0:MAC:00:00:00:00:00:02:Power[dBm]:-93.113
x:-27.5:y:0:MAC:00:00:00:00:00:02:Power[dBm]:-92.8783
x:-27.5:y:0:MAC:00:00:00:00:00:02:Power[dBm]:-92.8783
x:-27.5:y:0:MAC:00:00:00:00:00:02:Power[dBm]:-92.8783
x:-27.5:y:0:MAC:00:00:00:00:00:02:Power[dBm]:-92.8783
x:-27.5:y:0:MAC:00:00:00:00:00:02:Power[dBm]:-92.8783
x:-27.5:y:0:MAC:00:00:00:00:00:02:Power[dBm]:-92.8783
x:-27.5:y:0:MAC:00:00:00:00:00:02:Power[dBm]:-92.8783
x:-27.5:y:0:MAC:00:00:00:00:00:02:Power[dBm]:-92.8783
x:-27.5:y:0:MAC:00:00:00:00:00:02:Power[dBm]:-92.8783
x:-27.5:y:0:MAC:00:00:00:00:00:02:Power[dBm]:-92.8783
x:-27:y:0:MAC:00:00:00:00:00:02:Power[dBm]:-92.6392
x:-27:y:0:MAC:00:00:00:00:00:02:Power[dBm]:-92.6392
x:-27:y:0:MAC:00:00:00:00:00:02:Power[dBm]:-92.6392
x:-27:y:0:MAC:00:00:00:00:00:02:Power[dBm]:-92.6392
x:-27:y:0:MAC:00:00:00:00:00:02:Power[dBm]:-92.6392
x:-27:y:0:MAC:00:00:00:00:00:02:Power[dBm]:-92.6392
x:-27:y:0:MAC:00:00:00:00:00:02:Power[dBm]:-92.6392
x:-27:y:0:MAC:00:00:00:00:00:02:Power[dBm]:-92.6392
x:-27:y:0:MAC:00:00:00:00:00:02:Power[dBm]:-92.6392
x:-26.5:y:0:MAC:00:00:00:00:00:02:Power[dBm]:-92.3957
x:-26.5:y:0:MAC:00:00:00:00:00:02:Power[dBm]:-92.3957
x:-26.5:y:0:MAC:00:00:00:00:00:02:Power[dBm]:-92.3957
x:-26.5:y:0:MAC:00:00:00:00:00:02:Power[dBm]:-92.3957
x:-26.5:y:0:MAC:00:00:00:00:00:02:Power[dBm]:-92.3957
x:-26.5:y:0:MAC:00:00:00:00:00:02:Power[dBm]:-92.3957
x:-26.5:y:0:MAC:00:00:00:00:00:02:Power[dBm]:-92.3957
x:-26.5:y:0:MAC:00:00:00:00:00:02:Power[dBm]:-92.3957
x:-26.5:y:0:MAC:00:00:00:00:00:02:Power[dBm]:-92.3957
x:-26.5:y:0:MAC:00:00:00:00:00:02:Power[dBm]:-92.3957
x:-26:y:0:MAC:00:00:00:00:00:02:Power[dBm]:-92.1475
x:-26:y:0:MAC:00:00:00:00:00:02:Power[dBm]:-92.1475
-34.5 -95.8329
-34.5 -95.8329
-34.5 -95.8329
-34.5 -95.8329
-34.5 -95.8329
-34.5 -95.8329
-34.5 -95.8329
-34.5 -95.8329
-34.5 -95.8329
-34 -95.6427
-34 -95.6427
-34 -95.6427
-34 -95.6427
-34 -95.6427
-34 -95.6427
-34 -95.6427
-34 -95.6427
-34 -95.6427
-34 -95.6427
-33.5 -95.4496
-33.5 -95.4496
-33.5 -95.4496
-33.5 -95.4496
-33.5 -95.4496
-33.5 -95.4496
-33.5 -95.4496
-33.5 -95.4496
-33.5 -95.4496
-33 -95.2537
-33 -95.2537
-33 -95.2537
-33 -95.2537
-33 -95.2537
-33 -95.2537
-33 -95.2537
-33 -95.2537
-33 -95.2537
-33 -95.2537
-32.5 -95.0548
-32.5 -95.0548
-32.5 -95.0548
-32.5 -95.0548
-32.5 -95.0548
-32.5 -95.0548
-32.5 -95.0548
-32.5 -95.0548
-32.5 -95.0548
-32.5 -95.0548
-32 -94.8528
-32 -94.8528
-32 -94.8528
-32 -94.8528
-32 -94.8528
-32 -94.8528
-32 -94.8528
-32 -94.8528
-32 -94.8528
-32 -94.8528
-31.5 -94.6476
-31.5 -94.6476
-31.5 -94.6476
-31.5 -94.6476
-31.5 -94.6476
-31.5 -94.6476
-31.5 -94.6476
-31.5 -94.6476
-31.5 -94.6476
-31 -94.4392
-31 -94.4392
-31 -94.4392
-31 -94.4392
-31 -94.4392
-31 -94.4392
-31 -94.4392
-31 -94.4392
-31 -94.4392
-31 -94.4392
-30.5 -94.2273
-30.5 -94.2273
-30.5 -94.2273
-30.5 -94.2273
-30.5 -94.2273
-30.5 -94.2273
-30.5 -94.2273
-30.5 -94.2273
-30.5 -94.2273
-30.5 -94.2273
-30 -94.0119
-30 -94.0119
-30 -94.0119
-30 -94.0119
-30 -94.0119
-30 -94.0119
-30 -94.0119
-30 -94.0119
-30 -94.0119
-30 -94.0119
-29.5 -93.793
-29.5 -93.793
-29.5 -93.793
-29.5 -93.793
-29.5 -93.793
-29.5 -93.793
-29.5 -93.793
-29.5 -93.793
-29.5 -93.793
-29.5 -93.793
-29 -93.5702
-29 -93.5702
-29 -93.5702
-29 -93.5702
-29 -93.5702
-29 -93.5702
-29 -93.5702
-29 -93.5702
-29 -93.5702
-28.5 -93.3436
-28.5 -93.3436
-28.5 -93.3436
-28.5 -93.3436
-28.5 -93.3436
-28.5 -93.3436
-28.5 -93.3436
-28.5 -93.3436
-28.5 -93.3436
-28.5 -93.3436
-28 -93.113
-28 -93.113
-28 -93.113
-28 -93.113
-28 -93.113
-28 -93.113
-28 -93.113
-28 -93.113
-28 -93.113
-28 -93.113
-27.5 -92.8783
-27.5 -92.8783
-27.5 -92.8783
-27.5 -92.8783
-27.5 -92.8783
-27.5 -92.8783
-27.5 -92.8783
-27.5 -92.8783
-27.5 -92.8783
-27.5 -92.8783
-27 -92.6392
-27 -92.6392
-27 -92.6392
-27 -92.6392
-27 -92.6392
-27 -92.6392
-27 -92.6392
-27 -92.6392
-27 -92.6392
-26.5 -92.3957
-26.5 -92.3957
-26.5 -92.3957
-26.5 -92.3957
-26.5 -92.3957
-26.5 -92.3957
-26.5 -92.3957
-26.5 -92.3957
-26.5 -92.3957
-26.5 -92.3957
-26 -92.1475
-26 -92.1475
#!/bin/bash
cat output.log |cut -d':' -f 2,13 | sed "s/:/ /g" > plot.dat
./draw-plot > teste.png
# result: http://i.imgur.com/wEF6IIu.png
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment