neoterix / nyc-mta-arrival-notify Goto Github PK
View Code? Open in Web Editor NEWA basic python script that reads the NYC MTA realtime feed API for subway data and outputs when the next arrival is for a given station.
License: MIT License
A basic python script that reads the NYC MTA realtime feed API for subway data and outputs when the next arrival is for a given station.
License: MIT License
I've tried a few github projects using the mta api and am running into the same issue in multiple.
When running in normal configuration, nothing changed, I get this error:
Traceback (most recent call last):
File "mta_notification.py", line 46, in <module>
station_time_lookup(realtime_data, 'R36N')
File "mta_notification.py", line 37, in station_time_lookup
unique_arrival_times = unique_train_schedule['stop_time_update'] # arrival_times is a list of arrivals
KeyError: 'stop_time_update'
This is some sort of dictionary error, but I don't understand why it doesn't see this key when I can see it fine when printing that data.
Is it something to do with processing power? I'm running this on a Raspberry pi zero, quite low powered.
Hi!
I'm running into an error loading the .env
I get the following message:
Traceback (most recent call last):
File "mta_notification.py", line 10, in
api_key = os.environ['API_KEY']
File "/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib/python3.7/os.py", line 678, in getitem
raise KeyError(key) from None
KeyError: 'API_KEY'
Do you know what's the problem?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.