Skip to content

enkur/ATT-Fiber-Check

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

80 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ATT-Fiber-Check

program to check where Fiber is available

Credit to MTdoyle for the original Century Link speed checker https://github.com/mtdoyle/cl_speedcheck

Requires Python 3.6 (3.5 WILL WORK)
requires pygeocoder package (pip install splinter or pip3 install splinter)

This script has been modified to handle LARGE swaths of land. It has been coded to work in a defined API Limit and to stop on the hit. Google has a limit of 2,500 hits per IP. The script (address.py) HITS TWICE FOR EACH SUCCESSFUL MATCH First to get a general address, then to get the "accurate" address. When the API is hit, OR the API Limit you specify is hit it will write the changes and addresses to workdone (the Geocords) and addresses (the file that speedcheck uses).

Ubuntu 16.04 Install Process (tested on FRESH install of ubuntu 16.04 Installed PYTHON3.5, Pip3 and below)

git clone the repository and cd into it  

sudo apt install python3.5  

Sudo apt install python3-pip  

pip3 install pygeocoder  #(MAY NEED to use sudo -H pip3 install pygeocoder)  

Running the Program

In the directory this was cloned to.

screen python3.5 address.py (recommended to use screen based off the NEW functionality)

IF CONTINUING WORK hit y or YES Will be explained later

Starting Address in Quotes "1600 Pennsylvania Ave NW, Washington, DC 20006"

It will ask a range, Valid answers are 100-*(I do not know have tested 3200+) (Meters: 1600 Meters is 1 Mile **A Duh Moment but This is why you use screen for LARGE areas)

It then calculates the Coords based off the "math" TM

It then asks whats the API Limit (I recommend 1000)

It then runs. When it completes it creates the workdone and address files.

CONTINUING WORK

Run screen python3.5 address.py

type Y or Yes

It again asks for API Limit. For a new day, new 1000.

The rest follows the normal path

CRONJOB Argument If you want to schedule this you can in Ubuntu an Example job could be @daily /usr/bin/screen /usr/bin/python3.5 /home/(yourusername)/ATT-Fiber-Check/address.py -r 1000
The Number can be changed to whatever your api limit is.

python3.5 speedcheck.py

It will ask for the state. Type in the 2 Letter State

use http://www.easymapmaker.com to create the map from the results file

The code probably needs lots of clean up. I have never programmed in Python until yesterday so forgive me for inaccuracies. I am just glad I was able to port this over from the Century Link folks on dslr.

Anyone is welcome to modify and improve the code.

FAQ
by ze Budman

  1. Why no Proxy or socks I see it in Previous commits.
  • I looked into it, It appears difficult to get a routine list, and I felt that it was bad form to skirt the limits by google. I like to call this working within the restraints.
  1. Why?
  • I wanted to learn python I enjoyed learning it, either going to work with another user on the Java phantom js or fix up the speedtest.py next.

Windows step by step instructions (tested on Windows 10 and 7)

  1. Install python (select option to add to PATH) download client from here https://www.python.org/ftp/python/3.6.3/python-3.6.3-amd64.exe

  2. Open command line prompt (cmd.exe) type "python" to make sure its working... type "exit ()"

  3. install pygeocoder by running pip3 install pygeocoder

  4. Download GIT zip file from this address click on clone/Download https://github.com/enkur/ATT-Fiber-Check

  5. Unzip in any directory

  6. on the command prompt change to the script directory where you unzipped in step 5

  7. run the address.py as python address.py

  8. Type no for new run and enter information as requested.

  9. Once 8 completes there will be a new file called "addresses"

  10. run speedcheck.py python speedcheck.py

  11. Once step 10 finishes it will create a file called "results_" open it in excel as a csv file

  12. go to www.easymapmaker.com and paste the excel worksheet. click on "Set Options" and in the "Group" option select "Speed" click make map and you are done.

About

script to check where Fiber is available

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published