{"id":16099295,"url":"https://github.com/artemy/alfred-ns-schedule","last_synced_at":"2025-03-18T07:31:03.945Z","repository":{"id":43113555,"uuid":"323934916","full_name":"artemy/alfred-ns-schedule","owner":"artemy","description":"Alfred workflow for getting NS (Nederlandse Spoorwegen) train schedule.","archived":false,"fork":false,"pushed_at":"2025-02-16T12:11:51.000Z","size":4195,"stargazers_count":5,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-28T07:55:03.039Z","etag":null,"topics":["alfred","alfred-workflow","nederlandse-spoorwegen","nederlandse-spoorwegen-api","ns"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/artemy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE.md","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},"funding":{"github":"artemy","buy_me_a_coffee":"artemy"}},"created_at":"2020-12-23T15:18:21.000Z","updated_at":"2025-02-16T12:11:52.000Z","dependencies_parsed_at":"2024-07-06T15:57:08.956Z","dependency_job_id":"0fffe69f-4947-4981-8cdd-245d04ec8ac6","html_url":"https://github.com/artemy/alfred-ns-schedule","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/artemy%2Falfred-ns-schedule","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/artemy%2Falfred-ns-schedule/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/artemy%2Falfred-ns-schedule/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/artemy%2Falfred-ns-schedule/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/artemy","download_url":"https://codeload.github.com/artemy/alfred-ns-schedule/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243910715,"owners_count":20367538,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["alfred","alfred-workflow","nederlandse-spoorwegen","nederlandse-spoorwegen-api","ns"],"created_at":"2024-10-09T18:26:43.959Z","updated_at":"2025-03-18T07:31:02.414Z","avatar_url":"https://github.com/artemy.png","language":"Python","funding_links":["https://github.com/sponsors/artemy","https://buymeacoffee.com/artemy"],"categories":[],"sub_categories":[],"readme":"# NS (Nederlandse Spoorwegen) Train schedule for Alfred 5\n\n![test \u0026 release](https://github.com/artemy/alfred-ns-schedule/workflows/test%20\u0026%20release/badge.svg)\n![MIT License](https://img.shields.io/github/license/artemy/alfred-ns-schedule)\n\nAlfred workflow for getting NS Train schedule.\n\n![image](.readme/images/screenshot.png)\n\n## Getting started\n\n⚠️ This workflow requires [Alfred 5](https://www.alfredapp.com/alfred-5-whats-new/).\nAlfred 4 users can use [version 2.0](https://github.com/artemy/alfred-ns-schedule/releases/tag/v2.0) of the workflow.\n\n### Prerequisites\n\nProject requires Python 3.8+ to run, which is not included by default with macOS. You can install Python 3 using\nthis [guide](https://docs.python-guide.org/starting/install3/osx/).\n\n⚠️ Make sure to get an API key from https://apiportal.ns.nl/ and set it in a user configuration of the workflow.\nSubscribe to the product [NS-App](https://apiportal.ns.nl/product#product=NsApp). \n\n### Installing\n\nDownload `NS_Schedule.alfred5workflow` file from the latest release\nat [Releases](https://github.com/artemy/alfred-ns-schedule/releases) page and open it with Alfred.\nChange the value of NS_APIKEY variable to the value you've received from NS at the _Prerequisites_ step.\n\n### How to Use\n\n1. Open Alfred\n2. Type `ns` and the name of the origin station, confirm origin station choice by pressing \"Enter\"\n3. Type the name of the destination station, confirm destination station choice by pressing \"Enter\".\n\nWorkflow will display a list of\nupcoming trains for the route you have specified. Pressing `Enter` on a schedule item will open it on NS website in your default browser, where\nyou can get more details.\n\n![animation](.readme/images/animation.gif)\n\n## Running the tests\n\nMake sure to first install test dependencies:\n\n```shell\npip3 install -r requirements.txt\n```\n\nTo run tests, execute\n\n```shell\npython3 -m ns_schedule_test\n```\n\nIf you want to get coverage figures through `coverage` tool:\n\n```shell\ncoverage run -m unittest ns_schedule_test # gather test data\ncoverage report -m # display coverage figures\n```\n\n## Built With\n\n* [Python 3.8](https://docs.python.org/3.8/)\n* [GNU Make](https://www.gnu.org/software/make/manual/make.html) - Build scripting\n* [coverage.py](https://coverage.readthedocs.io/) - Code coverage measurement\n\n## Contributing\n\nPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.\n\n## License\n\nThis project is licensed under the MIT License — see the [LICENSE.md](LICENSE.md) file for details\n\n## Acknowledgments\n\nSee [Contributors](https://github.com/artemy/ns_schedule_test/contributors) for the list of contributors.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fartemy%2Falfred-ns-schedule","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fartemy%2Falfred-ns-schedule","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fartemy%2Falfred-ns-schedule/lists"}