{"id":26495143,"url":"https://github.com/annenkovdmitrii/nyc-app","last_synced_at":"2026-04-16T10:32:10.966Z","repository":{"id":281394488,"uuid":"945132550","full_name":"annenkovdmitrii/nyc-app","owner":"annenkovdmitrii","description":"My Streamlit App has some everyday data that is useful for New Yorkers. ","archived":false,"fork":false,"pushed_at":"2025-03-10T00:26:49.000Z","size":112,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-26T11:48:05.224Z","etag":null,"topics":["docker","python","streamlit"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/annenkovdmitrii.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-03-08T18:24:06.000Z","updated_at":"2025-03-10T00:26:54.000Z","dependencies_parsed_at":"2025-07-26T07:42:00.241Z","dependency_job_id":"9ca21f16-2883-4fee-9db0-444e1c60224c","html_url":"https://github.com/annenkovdmitrii/nyc-app","commit_stats":null,"previous_names":["annenkovdmitrii/nyc-app"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/annenkovdmitrii/nyc-app","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/annenkovdmitrii%2Fnyc-app","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/annenkovdmitrii%2Fnyc-app/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/annenkovdmitrii%2Fnyc-app/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/annenkovdmitrii%2Fnyc-app/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/annenkovdmitrii","download_url":"https://codeload.github.com/annenkovdmitrii/nyc-app/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/annenkovdmitrii%2Fnyc-app/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31882065,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-16T09:23:21.276Z","status":"ssl_error","status_checked_at":"2026-04-16T09:23:15.028Z","response_time":69,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["docker","python","streamlit"],"created_at":"2025-03-20T10:36:24.336Z","updated_at":"2026-04-16T10:32:10.947Z","avatar_url":"https://github.com/annenkovdmitrii.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NYC Local Dashboard\n\nA streamlined Raspberry Pi-friendly dashboard for New York City weather and subway information. This application provides real-time updates on weather conditions and upcoming subway train arrivals for your favorite stations.\n\n![NYC Dashboard Screenshot](app/assets/nyc_icon.png)\n\n## Features\n\n- **Current Weather**: Display current conditions, temperature, wind, humidity, and UV index for NYC\n- **Weather Forecast**: Show upcoming 3-hour forecast\n- **Subway Arrivals**: Monitor train arrivals at three configurable stations\n- **Auto-Refresh**: Keep data updated with built-in auto-refresh functionality\n- **Station Search**: Find any subway station in the MTA system\n- **Detailed Weather**: Access comprehensive weather information including air quality\n- **Customizable**: Configure your default stations and preferences\n\n## Installation\n\n### Prerequisites\n\n- Python 3.9+\n- Raspberry Pi (recommended) or any computer that can run Python\n- Internet connection\n\n### Setup\n\n1. Clone the repository:\n   ```bash\n   git clone https://github.com/dmitriiannenkov/nyc-dashboard.git\n   cd nyc-dashboard\n   ```\n\n2. Create a virtual environment:\n   ```bash\n   python -m venv nyc-app\n   source nyc-app/bin/activate  # On Windows: nyc-app\\Scripts\\activate\n   ```\n\n3. Install dependencies:\n   ```bash\n   pip install -r requirements.txt\n   ```\n\n4. Create a `.env` file with your API key:\n   ```\n   WEATHER_API_KEY=your_weatherapi_com_key\n   ```\n\n### Running the Dashboard\n\n```bash\ncd app\nstreamlit run main.py\n```\n\nThe dashboard will open in your web browser at http://localhost:8501\n\n## Project Structure\n\n```\nnyc-app/\n├── app/                       # Application code\n│   ├── assets/                # Static assets\n│   │   ├── styles.css         # Custom styling\n│   │   └── nyc_icon.png       # App icon\n│   ├── main.py                # Main Streamlit UI and page logic\n│   ├── nyc_weather.py         # NYCWeather class for weather data\n│   ├── mta_client.py          # MTAClient class for subway data\n│   └── utils.py               # Utility functions\n├── data/                      # Data cache directories\n│   ├── mta_cache/             # MTA data cache\n│   └── weather_cache/         # Weather data cache\n├── tests/                     # Test files\n├── docker-compose.yml         # Docker configuration\n├── Dockerfile                 # Docker build file\n└── requirements.txt           # Python dependencies\n```\n\n## Docker Deployment\n\nYou can also run the application using Docker:\n\n```bash\ndocker-compose up\n```\n\nThis will build and start the container with the application running on port 8501.\n\n## API Usage\n\nThis application uses:\n\n1. **WeatherAPI.com**: For real-time weather data and forecasts. You'll need to [sign up](https://www.weatherapi.com/signup.aspx) for a free API key.\n\n2. **MTA GTFS Realtime Feed**: For subway arrival information. This is publicly available and doesn't require an API key.\n\n## Performance Considerations\n\nThe application is optimized for Raspberry Pi usage:\n\n- Efficient caching system to reduce API calls\n- Lazy loading of components to minimize startup time\n- Performance monitoring with timing decorators\n- Single auto-refresh mechanism to reduce resource usage\n\n## Customization\n\n### Adding Default Stations\n\n1. Navigate to the \"Subway Lookup\" page\n2. Search for a station\n3. Use the \"Add to Defaults\" feature to set it as one of your default stations\n\n### Changing Refresh Rate\n\nThe auto-refresh is set to 60 seconds by default. This can be modified in the `setup_auto_refresh` function in `main.py`.\n\n## Testing\n\nRun the tests with:\n\n```bash\ncd tests\npython -m unittest test_mta_client.py\n```\n\n## License\n\n[MIT License](LICENSE)\n\n## Acknowledgments\n\n- Built with [Streamlit](https://streamlit.io/)\n- Subway data from [MTA GTFS-Realtime Feed](https://api.mta.info/)\n- Weather data from [WeatherAPI.com](https://www.weatherapi.com/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fannenkovdmitrii%2Fnyc-app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fannenkovdmitrii%2Fnyc-app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fannenkovdmitrii%2Fnyc-app/lists"}