MTAPI
MTAPI copied to clipboard
TypeError
Hello, when I run the script it is giving me a type error:
Traceback (most recent call last):
File "app.py", line 62, in
I deleted the folder and re-did all the installation. Thanks for creating this, it really comes in handy!
This kinda looks like a problem with STATIONS_FILE in the config. What does your settings.cfg look like? (Don't share your MTA API key)
Hey there, here is what my settings.cfg looks:
MTA_KEY = '***************'
STATIONS_FILE = './data/stations.json'
CROSS_ORIGIN = ''
MAX_TRAINS=10
MAX_MINUTES=30
CACHE_SECONDS=60
THREADED=True
DEBUG = True
Should be fixed in https://github.com/jonthornton/MTAPI/commit/a0b421a929c6d232c711af3a6435de3df1dddf5f