{"id":13821196,"url":"https://github.com/caronc/nzb-notify","last_synced_at":"2025-03-17T04:31:17.500Z","repository":{"id":23684993,"uuid":"27056653","full_name":"caronc/nzb-notify","owner":"caronc","description":"Push Notifications to a large number of supported services for NZBGet and SABnzbd (based on Apprise)","archived":false,"fork":false,"pushed_at":"2023-06-08T12:32:41.000Z","size":2539,"stargazers_count":129,"open_issues_count":10,"forks_count":15,"subscribers_count":9,"default_branch":"master","last_synced_at":"2024-10-14T11:07:24.685Z","etag":null,"topics":["automation","cli","notifications","nzbget","nzbget-script","sabnzbd"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/caronc.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"github":"caronc","custom":["https://www.paypal.me/lead2gold"]}},"created_at":"2014-11-24T02:08:46.000Z","updated_at":"2024-06-10T00:33:32.000Z","dependencies_parsed_at":"2024-05-29T20:54:31.957Z","dependency_job_id":null,"html_url":"https://github.com/caronc/nzb-notify","commit_stats":null,"previous_names":[],"tags_count":16,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caronc%2Fnzb-notify","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caronc%2Fnzb-notify/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caronc%2Fnzb-notify/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caronc%2Fnzb-notify/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/caronc","download_url":"https://codeload.github.com/caronc/nzb-notify/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221671728,"owners_count":16861299,"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":["automation","cli","notifications","nzbget","nzbget-script","sabnzbd"],"created_at":"2024-08-04T08:01:17.262Z","updated_at":"2024-10-27T11:55:31.119Z","avatar_url":"https://github.com/caronc.png","language":"Python","funding_links":["https://github.com/sponsors/caronc","https://www.paypal.me/lead2gold","https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick\u0026hosted_button_id=MHANV39UZNQ5E","https://github.com/sponsors/caronc)!"],"categories":["Python"],"sub_categories":[],"readme":"## Notify Processing Script\n\n[![Paypal](https://repo.nuxref.com/pub/img/paypaldonate.svg)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick\u0026hosted_button_id=MHANV39UZNQ5E)\n\nSend notifications to all of the popular notification services (PushBullet, NotifyMyAndroid, XBMC, Email etc) from NZBGet or SABnzbd. \nYou can chain as many notification services as you want and support most of the advance features each service offers you too.\nYou can even run the tool from the command line for your own custom use. \n\n## Built on Apprise\n\nThis guts of this script have been recently extracted into it's own project called [Apprise](https://github.com/caronc/apprise) which allows others to build Notifications into their applications as well.\nApprise was written in such a way that there wouldn't be a lot of effort to add more notification services either. Feel free to contact me if one you would like to use is missing.\n\n## Supported Notifications\n\nFor a complete list of supported notification services and examples on how to build their URLs [click here](https://github.com/caronc/apprise/wiki#notification-services). \n\n## Installation and usage instructions\n\n1. Ensure you have Python v2.7 or later installed onto your system.\n```bash\n# Pull in dependencies:\npip install -r requirements.txt\n```\n2. Simply place the `Notify.py` and `Notify` directory together.\n   * __NZBGet users__: you'll want to place these inside of your _nzbget/scripts_ directory. Please ensure you are running _(at least)_ NZBGet v11.0 or higher. You can acquire the latest version of of it from [here](https://nzbget.net/download).\n   * __NZBGet users__: As one additional note; this script makes use of the RPC feature of NZBGet in order to retrive all of the status information it will notify you with.  Its very important that this is configured correctly (in the 'Settings -\u003e Security' area). The out of the box settings should work fine; but worth noting here should experience any issues.\n   * __SABnzbd users__: You'll point your SABnzbd configuration to reference `sabnzbd-notify.py` via the _Script_ entry and _not_ `Notify.py`. However, please note that the `Notify.py` script is still required (as `sabnzbd-notify.py` is a wrapper to it).  You will use the _Parameters_ section to provide the services you wish to notify (see below how they are constructed).\n\nSee the __Command Line__ section below for more instructions on how to call the script from the command line.\n\n## SABnzbd Users\nSABnzbd users can test that their script is working okay manually as well if they're having issues with it through their application.  This is also a great way to test out that you've created the correct URL string.\n```bash\n# Send a notification to XBMC (assuming its listening on\n# port 8080 at the ip 192.168.0.2 with respect to the example\n# below:\npython sabnzbd-notify.py complete 'Hello' 'World' xbmc://192.168.0.2\n```\nThe syntax is very similar except SABnzbd expects 4 distinct arguments.\n\n| Arg # | Description |\n| ----- |:----------- |\n|   1   | The type of notification we are sending.  This has an impact on the icon (for those that support it) that you will pass along with the message.\n|   2   | The title of the notification message.  If this is an empty string, then there is enough information based on the notification type you passed in (argument 1) to generate a title. |\n|   3   | The message body. |\n|   4   | Comma delimited URL strings just like the ones already discussed above.\n\n### SABnzbd Configuration\nFirst, make sure you've placed `sabnzb-notify.py`, `Notify.py`, and the `Notify` directory inside of the `/path/to/SABnzbd/scripts/` directory or the instructions below will not work.\n\nOnce you know the _URL_(s) that work for you, you can set SABnzbd to automatically notify setting it up as follows. From within SABnzbd's web interface:\n\n- Click on __Settings__\n- Click on __Notifications__\n- Place a checkbox in the __Enable notification script__ option.\n- Choose `sabnzb-notify.py` from the Script dropdown menu.\n- Specify the URL such as `kodi://192.168.0.2` in the _Parameters_ section. You can specify more then one URL here by simply using a _comma_ (`,`) as a delimiter.\n\nCentOS/RedHat users can also refer to a [blog entry I prepared](https://nuxref.com/2016/10/20/sabnzbd-installation-centos-7/) for this which includes RPM packaging for both [SABnzbd](https://repo.nuxref.com/centos/7/en/x86_64/custom/repoview/sabnzbd.html) and [NZB-Notify](https://repo.nuxref.com/centos/7/en/x86_64/custom/repoview/sabnzbd-script-notify.html). These can be easily installed (with all required dependencies by just getting yourself set up with my repository [here](https://nuxref.com/nuxref-repository/).\n\n## Command Line\n\n`Notify.py` has a built in command line interface that can be easily tied\nto a cron entry or can be easily called from the command line to automate\nthe fetching of subtitles.\n\nHere are the switches available to you:\n```\nUsage: Notify.py [options]\n\nOptions:\n  -h, --help            show this help message and exit\n  -s URL(s), --servers=URL(s)\n                        Specify 1 or more servers in their URL format ie:\n                        growl://mypass@localhost\n  -t TITLE, --title=TITLE\n                        Specify the title of the notification message.\n  -b BODY, --body=BODY  Specify the body of the notification message.\n  -i, --include_image   Include image in message if the protocol supports it.\n  -u IMAGE_URL, --image_url=IMAGE_URL\n                        Provide url to image; should be either http://,\n                        https://, or file://. This option implies that\n                        --include_image (-i) is set automatically\n  -L FILE, --logfile=FILE\n                        Send output to the specified logfile instead of\n                        stdout.\n  -D, --debug           Debug Mode\n```\n\nHere is simple example:\n```bash\n# Send a notification to XBMC (assuming its listening on\n# port 8080 at the ip 192.168.0.2 with respect to the example\n# below:\npython Notify.py -s xbmc://192.168.0.2 -t \"Hello\" -b \"World!\"\n\n# you can also use it's new name (kodi) to achive the same\n# results:\npython Notify.py -s kodi://192.168.0.2 -t \"Hello\" -b \"World!\"\n```\n\nYou can also mix and match as many servers as you want by separating\nyour urls with a comma and/or space.\n```bash\n# Send a notification to XBMC and a Growl Server\npython Notify.py \\\n    -s growl://192.168.0.10,xbmc://user:pass@192.168.0.2 \\\n    -t \"Hello\" -b \"World!\"\n```\n\n## Donations\nIf you like this script and feel like donating, you can do so through either [PayPal](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick\u0026hosted_button_id=MHANV39UZNQ5E) or [sponsor me](https://github.com/sponsors/caronc)! Thank you so much to everyone who has donated in the past!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcaronc%2Fnzb-notify","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcaronc%2Fnzb-notify","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcaronc%2Fnzb-notify/lists"}