{"id":42037019,"url":"https://github.com/mysiar/ha-custom-component-mmpk","last_synced_at":"2026-01-26T05:09:23.366Z","repository":{"id":321236745,"uuid":"1079280381","full_name":"mysiar/ha-custom-component-mmpk","owner":"mysiar","description":null,"archived":false,"fork":false,"pushed_at":"2025-10-28T16:23:07.000Z","size":1014,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-10-28T16:23:27.105Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/mysiar.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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-10-19T13:47:57.000Z","updated_at":"2025-10-28T16:22:45.000Z","dependencies_parsed_at":"2025-10-28T16:35:53.094Z","dependency_job_id":null,"html_url":"https://github.com/mysiar/ha-custom-component-mmpk","commit_stats":null,"previous_names":["mysiar/ha-custom-component-mmpk"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/mysiar/ha-custom-component-mmpk","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mysiar%2Fha-custom-component-mmpk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mysiar%2Fha-custom-component-mmpk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mysiar%2Fha-custom-component-mmpk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mysiar%2Fha-custom-component-mmpk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mysiar","download_url":"https://codeload.github.com/mysiar/ha-custom-component-mmpk/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mysiar%2Fha-custom-component-mmpk/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28767039,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-26T03:54:34.369Z","status":"ssl_error","status_checked_at":"2026-01-26T03:54:33.031Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":[],"created_at":"2026-01-26T05:09:22.723Z","updated_at":"2026-01-26T05:09:23.361Z","avatar_url":"https://github.com/mysiar.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Home Assistant custom component mMPK\n\nMPK Kraków public transport timetable\n\n## Sensor configuration\n```yaml\nsensor:\n  - platform: mmpk\n    stops:\n      - id: 1\n        description: Bronowice Małe\n      - id: 2\n        description: Giełda Balicka\n        lines:\n          - \"126\"\n\n```\n\n* A sensor configured with id: `1` will retrieve data for all available buses and trams at the specified stop.\n* A sensor configured with id: `2` will retrieve data exclusively for line `126` at the specified stop.\n* `description` is optional\n\n## Stop list\n\n[CSV](doc/MPK_stops.csv)\n\n## Instalation\n### Manual\n\n\n### 📦 Manual Installation\n\nTo install this integration manually, you need to download [**mmpk.zip**](https://github.com/mysiar/ha-custom-component-mmpk/releases/latest/download/mmpk.zip) and extract its contents to the `config/custom_components/mmpk` directory.\n\n\n```bash\nmkdir -p custom_components/mmpk\ncd custom_components/mmpk\nwget https://github.com/mysiar/ha-custom-component-mmpk/releases/latest/download/mmpk.zip\nunzip mmpk.zip\nrm mmpk.zip\n```\n\n## Display data \n\n* Markdown card\n```\n{% set sensor = 'sensor.mpk_stop_1' %}\n{% set state = states(sensor) %}\n{% set disabled = state_attr(sensor, 'entity_disabled') %}\n{% set available = state not in ['unknown', 'unavailable', none] %}\n\n{% if disabled or not available %}\n_Sensor {{ sensor }} jest niedostępny lub wyłączony._\n{% else %}\n  {% set stop = state_attr(sensor, 'stop_name') %}\n  {% set updated = state_attr(sensor, 'last_update') %}\n  {% set departures = state_attr(sensor, 'departures_by_line') %}\n  {% set next_departure = state if state != \"unknown\" else \"Brak odjazdów\" %}\n\n**Przystanek: {{ stop if stop else \"Nieznany\" }}{% if updated %} [{{ updated[11:19] }}]{% endif %}**  \nNastępny odjazd: {{ next_departure }}  \n{% if departures %}\n  {% for line, variants in departures.items() -%}\n    {% for variant in variants -%}\n**{{ line }} → {{ variant.direction }}**  \n{% if variant.departures -%}\n{{ variant.departures | join(', ') }}\n{% endif -%}\n    {% endfor -%}\n  {% endfor -%}\n{% else -%}\nBrak danych o odjazdach\n{% endif -%}\n{% endif %}\n\n```\n\n**Sensor 1 card**\n\n![Sensor 1 card](doc/sensor_1_card.png)\n\n**Sensor 2 card**\n\n![Sensor 2 card](doc/sensor_2_card.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmysiar%2Fha-custom-component-mmpk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmysiar%2Fha-custom-component-mmpk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmysiar%2Fha-custom-component-mmpk/lists"}