Skip to content

George Washington Bridge operational dashboard to track whether to take upper or lower level based on on/off ramp points and real-time traffic.

License

Notifications You must be signed in to change notification settings

andrewwong97/gwb-routes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GWB Commute Operational Dashboard

This script fetches current driving times (with traffic) from your origin to the George Washington Bridge, comparing Upper Level and Lower Level routes.

image

Getting an API key

Visit the following Google Cloud console and create a project with API access. Restrict the API key to only use Directions API. https://console.cloud.google.com/welcome

Save the API key somewhere secure, you'll use it later.

Usage

Set up a python virtualenv and activate it:

  1. python -m venv venv
  2. source venv/bin/activate
  3. pip install -r requirements.txt

Commands:

  1. To run the fastapi server locally: GOOGLE_MAPS_API_KEY=<the key> python app/index.py
  2. To just run the core lookup: python app/run_inline.py <the key>

TidByt

Included in the root level directory is a Starlark .star file that can be compiled and rendered to a .webp executable for TidByt devices. It's not complete, but it is a start. For more docs, check out: https://tidbyt.dev/docs/build/build-for-tidbyt

How to use right now

Invoke https://gwb-routes.vercel.app via Siri shortcuts or as a browser favorite.

Or visit https://gwb-routes.vercel.app/dashboard.

About

George Washington Bridge operational dashboard to track whether to take upper or lower level based on on/off ramp points and real-time traffic.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published