{"repo":"kenschneider18/rpi-metro-display","free":true,"listed":false,"github":"https://github.com/kenschneider18/rpi-metro-display","clone":"git clone https://github.com/kenschneider18/rpi-metro-display.git","description":"Code for Raspberry Pi based dot matrix DC Metro times display","language":"Python","stars":94,"topics":["raspberry-pi","wmata-api","dc-metro"],"license":"GPL-2.0","category":"self-hosted-apps","readme_excerpt":"rpi-metro-display Python code for DC metrorail times display. :warning: Users Prior to 11/12/2023: This project has been updated to use Python 3, see this doc for information on the sunsetting of Python 2. If your display is working fine with Python 2 and you don't wish to upgrade, be advised that pulling the latest code will break your display until you update to Python 3. If you've already pulled the latest code by mistake, please either use the branch v1.x or release v1.0.5 . A WMATA API Key is needed to get live train data. API keys are free and you can sign up for one here. In addition to displaying metro times it also displays alerts for the lines that run through the station being displayed. API This program exposes an API (Flask dev server). It can be used to change the station by name and terminal name while the display is running. You'll need to use an HTTP client on your computer like cURL or if you prefer a GUI client something like the free version of Postman. The API runs on port 5000. For example if your Pi's IP address is 192.168.1.2, your requests should start with http://192.168.1.2:5000 . GET /state State returns the name of the station being displayed set to as well as the terminal stations for the direction. For example, if your display is set to Metro Center on the Orange/Silver/Blue track toward Virginia: Request: Response: HTTP Status 200 PUT /station/name PUT /station/name changes the station and direction. This uses the WMATA stations API to get stat","default_branch":null,"files":null,"tree":[],"storefront":"/r/kenschneider18","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/kenschneider18/rpi-metro-display/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}