{"id":13463768,"url":"https://github.com/OsamaJBR/command-line-push-notification","last_synced_at":"2025-03-25T09:31:02.841Z","repository":{"id":141200049,"uuid":"68431028","full_name":"OsamaJBR/command-line-push-notification","owner":"OsamaJBR","description":"Notifier is a simple script that could be added to a Linux system and give it the ability to push notifications to Android phone from the command line","archived":false,"fork":false,"pushed_at":"2016-11-15T18:19:54.000Z","size":8,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-10-29T16:20:35.293Z","etag":null,"topics":["android-phone","command-line-tool","linux","notifications","notifier","push-notifications","simplepush"],"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/OsamaJBR.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}},"created_at":"2016-09-17T04:05:27.000Z","updated_at":"2024-03-06T18:39:00.000Z","dependencies_parsed_at":"2024-01-16T05:39:29.961Z","dependency_job_id":"2e2438d7-13fb-4e9f-ba79-16828d3b7dca","html_url":"https://github.com/OsamaJBR/command-line-push-notification","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OsamaJBR%2Fcommand-line-push-notification","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OsamaJBR%2Fcommand-line-push-notification/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OsamaJBR%2Fcommand-line-push-notification/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OsamaJBR%2Fcommand-line-push-notification/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/OsamaJBR","download_url":"https://codeload.github.com/OsamaJBR/command-line-push-notification/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245435079,"owners_count":20614825,"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":["android-phone","command-line-tool","linux","notifications","notifier","push-notifications","simplepush"],"created_at":"2024-07-31T14:00:28.196Z","updated_at":"2025-03-25T09:31:02.475Z","avatar_url":"https://github.com/OsamaJBR.png","language":"Python","funding_links":[],"categories":["Linux"],"sub_categories":[],"readme":"# push-notifier\n-----------------\nNotifier is a simple python script that could be added to a Linux system and give it the ability to push notifications to Android phones using SimplePush.io\n\n### Usage : \n-----------\n#### Basic \n##### Defind user in notifier.conf\n``` \nnotifier -t 'Test Notifier' -m 'Notification Text Body'\n``` \n##### Given user-key as param \n``` \nnotifier -u USER_KEY -t 'Test Notifier' -m 'Notification Text Body'\n``` \n\n#### Groups\n##### Defind group in notifier.conf\n```\nnotifier -g developers -t 'Test Notifier' -m 'Notification for a group user'\n```\n\n![alt tag](https://i.imgflip.com/1arn0r.gif) \n#### Conditional\n```\n$ command_or_script \u0026\u0026 notifier -t title_title -m \"success message\"\n\n$ command_or_script || notifier -t title_title -m \"failure message\"\n\n$ command_or_script \u0026\u0026 notifier -t title_title -m \"success message\" || notifier -t command_name -m \"failure message\"\n```\n\n## Installation\n#### Android\n---------\n##### Install SimplePush Application (https://simplepush.io/)\n\n### Linux\n-----\n#### Manual \n```\n$ git clone git@github.com:OsamaJBR/push-notifier.git push-notifier\n$ cp push-notifier/notifier.conf /etc/notifier.conf\n$ PKG_MANAGER=$( command -v yum || command -v apt-get )\n$ $PKG_MANAGER install -y python-requests python-argparse python-configparser\n$ sed -i 's/XXXX/YOUR_KEY/' /etc/notifier.conf  #(chage YOUR_KEY to the key you've got from simple push app)\n$ cp push-notifier/notifier.py /usr/local/bin/notifier\n$ chmod +x /usr/local/bin/notifier\n```\n#### Automated\n```\nsudo bash \u003c(curl -s https://raw.githubusercontent.com/OsamaJBR/push-notifier/master/setup.sh )\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FOsamaJBR%2Fcommand-line-push-notification","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FOsamaJBR%2Fcommand-line-push-notification","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FOsamaJBR%2Fcommand-line-push-notification/lists"}