Skip to content

Marcusk19/PathFinder

Repository files navigation

Pathfinder

Code for fetching and displaying directions and obd2 metrics


Structure

Breakdown of file structure:

  • docs - contains documentation for codebase
  • docsrc - for using sphinx to autogenerate docs
  • src - most important directory, contains code for PathFinder
  • tests - contains code for testing (no longer in use)

Getting Started

Download this repo by running git clone https://github.com/Marcusk19/Pathfinder.git or alternatively download from GitHub as zipfile and unpack it.

Main code for HUD and directions can be found in src

To run code first enter working directory: cd pathfinder
Install dependencies with: pip install -r requirements.txt
or...
make init
Then execute binary: make run
Navigate to http://pfnder.ddns.net
website From there you can enter a source and destination
Go back to console and observe output:
output

Running in a container

NOTE: this information is deprecated as it was written at initialization of the project.
Due to differences in local environments, it may be necessary to run the code in a container
In order to do so you must have docker installed on your machine - follow the instructions here to get started
Download the Docker Desktop and build the image by running: docker build -t pathfinder .
Check that the image has been created: docker images
Run the program by using: docker run -it pathfinder python3 src/HUD.py
Changes in code can be pushed to the container through: docker build -t pathfinder:latest .

Setting up your API key

Follow this guide here to get setup with a Google developer account and obtain your api key.
View the example.env file to see how you should set up your .env file and replace my_api_key with the api key you received from Google.

Messaging System

Code uses MQTT messaging protocol to send and receive information. Depicted below is the flow of data for the PathFinder:
diagram
Code for our client can be found here

Writing the docs

Change working directory to docsrc cd docsrc
Run make github - html documentation can be found in docs directory.

[TODO]

External Links

About

Code for senior design project

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published