Monitorear las redes
Primero para poder ver que redes me llegaban y con qué potencia, usé el programa wavemon:
Para instalarlo y correrlo en ubuntu es simple:
La primer pantalla que vemos es la siguiente, con la información de la red que estás usando actualmente:
Para escanear las redes que llegan a tu computadora presionas F3, y te lanza la siguiente pantalla:
Donde nos está mostrando el nombre de cada red, seguido de su dirección MAC, después la intensidad de la señal , entre otros datos.
Pintar señales en Google Maps
Elegí 5 de las redes para pintarlas en un mapa, mostrando aproximadamente la intensidad de cada una de ellas. El código que estoy usando no fue hecho por mi, fue hecho por la Doctora Elisa Schaeffer y yo solo lo he modificado ajustándolo a lo que necesito.
El git del código es este: https://gist.github.com/Esteban-Sifuentes/ae42abf3f8b4689894f0
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html> | |
<head> | |
<meta name="viewport" content="initial-scale=1.0, user-scalable=no" /> | |
<meta http-equiv="content-type" content="text/html; charset=UTF-8"/> | |
<title>Prueba</title> | |
<style> | |
html, body { | |
height: 100%; | |
margin: 0; | |
padding: 0; | |
} | |
#mapa { | |
height: 100%; | |
} | |
@media print { | |
html, body { | |
height: auto; | |
} | |
#mapa { | |
height: 650px; | |
} | |
} | |
</style> | |
<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script> | |
<script type="text/javascript"> | |
var m; | |
function init() { | |
m = new google.maps.Map(document.getElementById("mapa")); | |
m.setZoom(19); | |
m.setMapTypeId(google.maps.MapTypeId.HYBRID); | |
//Coordenadas (x= latitud, y = longitud) | |
var x = 25.735707 | |
var y = -100.355704 | |
var pos = new google.maps.LatLng(x, y); | |
m.setCenter(pos); | |
var conf = { //Intercable90014 | |
strokeColor: "#FFFF00", | |
strokeOpacity: 0.9, | |
strokeWeight: 3, | |
fillColor: "#0000FF", | |
fillOpacity: 0.7, | |
map: m, | |
center: new google.maps.LatLng(25.735784,-100.355599), | |
radius: 25 | |
}; | |
c2 = new google.maps.Circle(conf); | |
var area2 = { //Intercable233386 | |
strokeColor: "#46ED3E", | |
strokeOpacity: 0.6, | |
strokeWeight: 3, | |
fillColor: "#AAAAAA", | |
fillOpacity: 0.4, | |
map: m, | |
center: new google.maps.LatLng(25.735636,-100.355411), | |
radius: 23 | |
}; | |
c2 = new google.maps.Circle(area2); | |
var area3 = { //Intercable389744 | |
strokeColor: "#FF3700", | |
strokeOpacity: 0.9, | |
strokeWeight: 3, | |
fillColor: "#AAAAAA", | |
fillOpacity: 0.4, | |
map: m, | |
center: new google.maps.LatLng(25.73583,-100.355706), | |
radius: 18 | |
}; | |
c2 = new google.maps.Circle(area3); | |
var area4 = { //KEEBOX W15ONR | |
strokeColor: "#00D0FF", | |
strokeOpacity: 0.9, | |
strokeWeight: 3, | |
fillColor: "#a0dbe8", | |
fillOpacity: 0.4, | |
map: m, | |
center: new google.maps.LatLng(25.735644,-100.355714), | |
radius: 22 | |
}; | |
c2 = new google.maps.Circle(area4); | |
var area5 = { //Intercable7B351 | |
strokeColor: "#9b61ff", | |
strokeOpacity: 0.9, | |
strokeWeight: 3, | |
fillColor: "#b0a8bd", | |
fillOpacity: 0.4, | |
map: m, | |
center: new google.maps.LatLng(25.735697,-100.355945), | |
radius: 17 | |
}; | |
c2 = new google.maps.Circle(area5); | |
<!--google.maps.event.addListener(m, "click", function(event) { alert("Hola"); });--> | |
} | |
</script> | |
</head> | |
<body onload="init()"> | |
<div id="mapa" width="600" height="400"></div> | |
</body> | |
</html> |
http://www.linuxhispano.net/2012/09/24/wavemon-monitorizando-la-calidad-de-las-redes-wifi-con-ubuntu/
Hubiera quedado más con madre automatizando algo del proceso. Van 6 pts.
ResponderEliminar