{"id":13584942,"url":"https://github.com/sanwebinfo/gtfy-listener","last_synced_at":"2025-04-13T12:09:17.314Z","repository":{"id":221265925,"uuid":"695144414","full_name":"sanwebinfo/gtfy-listener","owner":"sanwebinfo","description":"Forward Gotify Push Messages 🚀 to `Ntfy.sh` Push server by using websocket 🛸","archived":false,"fork":false,"pushed_at":"2024-03-11T12:55:36.000Z","size":9,"stargazers_count":11,"open_issues_count":3,"forks_count":7,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-13T12:09:09.974Z","etag":null,"topics":["docker","docker-image","gotify","gotify-client","gotify-plugin","ntfy","ntfy-sh","ntfysh","push-notifications","python","python3","websocket"],"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/sanwebinfo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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}},"created_at":"2023-09-22T13:01:08.000Z","updated_at":"2025-01-21T20:49:47.000Z","dependencies_parsed_at":null,"dependency_job_id":"be879901-9d4e-4363-93e1-ef82db84235f","html_url":"https://github.com/sanwebinfo/gtfy-listener","commit_stats":null,"previous_names":["sanwebinfo/gtfy-listener"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sanwebinfo%2Fgtfy-listener","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sanwebinfo%2Fgtfy-listener/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sanwebinfo%2Fgtfy-listener/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sanwebinfo%2Fgtfy-listener/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sanwebinfo","download_url":"https://codeload.github.com/sanwebinfo/gtfy-listener/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248710448,"owners_count":21149190,"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":["docker","docker-image","gotify","gotify-client","gotify-plugin","ntfy","ntfy-sh","ntfysh","push-notifications","python","python3","websocket"],"created_at":"2024-08-01T15:04:36.971Z","updated_at":"2025-04-13T12:09:17.294Z","avatar_url":"https://github.com/sanwebinfo.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"# GTFY 🚀\n\n[![docker-image](https://github.com/sanwebinfo/gtfy-listener/actions/workflows/docker.yml/badge.svg)](https://github.com/sanwebinfo/gtfy-listener/actions/workflows/docker.yml)  \n\nGotify to `Ntfy.sh` forwarder\n\nForward Gotify Push Messages 🚀 to `Ntfy.sh` Push server by using websocket 🛸\n\nusing Gotify stream to Listen the Gotify Push Notifications via websocket Connection and Froward it to Ntfy Push server.\n\n## Setup\n\n```sh\ngit clone https://github.com/sanwebinfo/gtfy-listener\ncd gtfy-listener\n\n## local test\n## install packages\npip install -r requirements.txt\ntouch .env\n```\n\n- Env File `.env`\n\n```sh\nNTFY = \"\u003cNTFY Push server URL\u003e\"\nGOTIFY_HOST = \"\u003cPython Cricket score API\u003e\"\nGOTIFY_TOKEN = \"\u003cGOTIFY CLIENT TOKEN\u003e\"\n\n## test\npython3 gtfy.py\n\n```\n\n## Docker 🐬\n\nKeep Running the Python Script in Docker  \n\n- Update the `.dockerfile` before build - Replace example `ENV` with yours  \n\n```sh\nFROM python:3.8.10\nENV PYTHONUNBUFFERED 1\nRUN pip install --upgrade pip\nRUN pip3 install requests python-dotenv websocket-client\nENV GOTIFY_HOST=push.example.com\nENV GOTIFY_TOKEN=XXXXXXXXXXXX\nENV NTFY_HOST=https://ntfy.sh/gotify\nCOPY gtfy.py /usr/bin\nCMD [\"python3\", \"/usr/bin/gtfy.py\"]\n```\n\n```sh\n\n## Build image\ndocker build . -t=\"gtfy-listener\"\n\n## List the image\ndocker image ls\n\n## Create and Test Container\ndocker run -d --name gtfy gtfy-listener\ndocker container ps\ndocker stop (containerID)\n\n## Run the container forever\ndocker run -d --restart=always --name gtfy gtfy-listener\n\n## List Hidden container if error exists\ndocker ps -a\n\n## other commands\ndocker logs (containerID)\ndocker stop (containerID)\ndocker rm (containerid)\ndocker docker rmi (imageid)\ndocker image prune\ndocker builder prune --all -f\ndocker system prune --all\ndocker rm $(docker ps -all -q)\ndocker rmi $(docker image ls -q)\n```\n\n## Inspiration\n\nPushtify (Gotify to Pushover forwarder) - \u003chttps://github.com/sebw/pushtify\u003e\n\n## LICENSE\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsanwebinfo%2Fgtfy-listener","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsanwebinfo%2Fgtfy-listener","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsanwebinfo%2Fgtfy-listener/lists"}