Begin Restructure

-main file is now __main__.py
This commit is contained in:
Jack Sweeney 2021-02-19 00:28:37 +00:00 committed by GitHub
parent d7a812a672
commit 073e8f9feb
3 changed files with 6 additions and 2 deletions

View File

@ -120,13 +120,13 @@ screen -R <name screen whatever you want>
### Start Program
```bash
python3 NotifyBotMulti.py
python3 plane-notify
```
### TODO
- General Cleanup
- Restructure project to make it proper currently random files because I didn't know how to properly structure a project before.
- Restructure project to make it proper currently random files because I didn't know how to properly structure a project before. (in progress)
- Add requirments.txt file from pip freeze to create easy dependencies install
- On data loss/gain calculate AGL ft above nearest airport and use that altitude instead of just using baro/geo alt from ADS-B which is MSL.

0
__init__.py Normal file
View File

View File

@ -10,6 +10,10 @@ from planeClass import Plane
from datetime import datetime
import pytz
import os
if 'plane-notify' not in os.getcwd():
os.chdir('./plane-notify')
import sys
sys.path.extend([os.getcwd()])
required_files = [("Roboto-Regular.ttf", 'https://github.com/google/fonts/raw/master/apache/roboto/static/Roboto-Regular.ttf'), ('airports.csv', 'https://ourairports.com/data/airports.csv'), ('regions.csv', 'https://ourairports.com/data/regions.csv')]
for file in required_files:
file_name = file[0]