jantman / python-wifi-survey-heatmap

A Python application for Linux machines to perform WiFi site surveys and present the results as a heatmap overlayed on a floorplan
GNU Affero General Public License v3.0
370 stars 87 forks source link

Problem generating PNG's #23

Closed lau132 closed 2 years ago

lau132 commented 2 years ago

Hi Jason, I really appreciate ur app but maybe I'm doing something wrong; first I have to tell you that English is not my first language so I'm sorry if there is some writing errors.

Im running the program in Docker using the commands that you provide us:

server: docker run -it --rm -p 5201:5201/tcp -p 5201:5201/udp jantman/python-wifi-survey-heatmap iperf3 -s

survey:

docker run \                                                                                                   
  --net="host" \
  --privileged \
  --name survey \
  -it \
  --rm \
  -v $(pwd):/pwd \
  -w /pwd \
  -e DISPLAY=$DISPLAY \
  -v "$HOME/.Xauthority:/root/.Xauthority:ro" \
  jantman/python-wifi-survey-heatmap \
  wifi-survey -s 10.0.0.214:5201 -t TEST03

heatmap generate: docker run -it --rm -v $(pwd):/pwd -w /pwd jantman/python-wifi-survey-heatmap wifi-heatmap TEST03

I am actually running both of them(server and survey) in the same laptop, which is a Linux Mint 19 Tara using ZSH and the Docker version is the 20.10.14, build a224086.

The trouble is that when i run it, everything goes according to plan until y generate the heatmaps:

All of them are generated without data.

I attached example image: frequency_TEST03 json (copia)

jantman commented 2 years ago

@lau132 I'm sorry to hear that. The image that you attached looks to me like it may be correct. That's showing data, it's just showing that only one frequency was in use. I'd be more interested in seeing the TCP or UDP upload or download graphs.

I'll also say that I think that running the survey and the iperf server on the same machine will result in useless data, since it will never actually be sent over the network.

I can try and troubleshoot a bit more... do you think that you could please attach the full output of running:

docker run -it --rm -v $(pwd):/pwd -w /pwd jantman/python-wifi-survey-heatmap wifi-heatmap -vv TEST03

As well as the TEST03.json file?

lau132 commented 2 years ago

Hi again @jantman, this time i run the server in another machine as you told me, but i also think that actually it works the same, the TCP and UDP segments travel to the router back and forth twice for each one.

Anyways, I had not thought about the part that was generating data, but it was only ONE; in that case, it makes it more strange, because, for example, the signal quality or the TX power, stays the same in every measurement point:

signal_quality_TEST04 json

l attached all the output plus the log that u ask for: TEST04.tar.gz

This problem is not that urgent, so feel free in work in other proyects, fix other issues, or just watch a movie and relax. :)

I appreciate your help

jantman commented 2 years ago

@lau132 Those results look correct to me, for instance udp_upload_Mbps_TEST04.json.png:

udp_upload_Mbps_TEST04 json

and tcp_download_Mbps_TEST04.json.png:

tcp_download_Mbps_TEST04 json

I see that of the 11 graphs, 5 of them are all one color (a pale yellow). This shows that every survey point had the same value, and therefore it's all one color. This is reflected on the scale on the right side of the graphs.

lau132 commented 2 years ago

Hi again Jason,

after replying you, my boss and I take a look at the generated JSON and more or less, we came to the same conclusion as you, and all the errors seem on my part, not from the code.

Having said that, I'm going to close this issue. Thanks a lot for all the help.