Giter VIP home page Giter VIP logo

drist's Introduction

DRIST

Driving Route Internet Speed Test: Created something hacky with python, iperf and AWS EC2 Machine. Essentially Macbook runs iperf to AWS EC2 Machine every 10s. While phone logs location through SensorLog app. All this time Macbook is tethered to phone's cellular network (e.g. AT&T).

Example output

  • Green is mbps
  • Yellow is kbps
  • Black is no connectivity

drist output

Prerequisits

Runbook

Step 1

Run iperf server on AWS EC2 Machine, e.g.

ssh ubuntu@EC2_PUBLIC_DNS
tmux
iperf -s | ts "%Y-%m-%d %H:%M:%.S %z" | tee iperf_server.log

Step 2

On Macbook, run iperf every 10s to AWS EC2 Machine attempting to push 15mbps traffic for 1s, e.g.:

while : ; do sleep 10; iperf -t 1 -b 15M -c EC2_PUBLIC_DNS; done

Might need to run e.g. Amphetamine app to force Macbook not go to sleep.

Step 3

In SensorLog app go to settings (tap gear), use logging format json, recording rate 1Hz, HTTP disabled and log data to file. Tap Done. Tap REC

Step 4

Drive to places, while logs gets collected.

Step 5

When done. Stop logging SensorLog (tap X). Copy the generated log file.

Step 6

Stop iperf on Macbook, and scp logs from AWS EC2 Machine.

Step 7

Open create_map.py and set values of constants. Run python3 create_map.py to generate output_map.html.

drist's People

Contributors

anubhavs avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.