Skip to content

Commit c45db1c

Browse files
Update README.md
1 parent f49f475 commit c45db1c

File tree

1 file changed

+69
-2
lines changed

1 file changed

+69
-2
lines changed

README.md

Lines changed: 69 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,69 @@
1-
# nfty-arr-script
2-
Quick and hacky script to get sonarr/radarr to notify the ntfy.sh service.
1+
# ntfy.sh *arr script
2+
3+
Quick and hacky bash script to get sonarr/radarr to notify the ntfy.sh service.
4+
5+
This is for my own use and so I haven't added any event types beyond import/download. You could easily add additional events using a case statement.
6+
7+
## Quick Start
8+
9+
Clone this repo:
10+
11+
```bash
12+
git clone https://github.com/agent-squirrel/nfty-arr-script
13+
```
14+
15+
Edit the config file and replace as appropriate:
16+
17+
```bash
18+
vim config
19+
```
20+
21+
```bash
22+
username=someuser
23+
password=somepass
24+
endpoint=yourntfyendpoint.com
25+
domain=yourdomain.com
26+
topic=somentfytopic
27+
```
28+
29+
Put the script and the config somewhere that Sonarr/Radarr can execute it.
30+
In the case of Docker, you can mount the directory into the container, a docker-compose sample it below:
31+
32+
```docker
33+
version: "2.1"
34+
services:
35+
sonarr:
36+
image: linuxserver/sonarr
37+
container_name: sonarr
38+
environment:
39+
- PUID=1001
40+
- PGID=1001
41+
- TZ=Australia/Hobart
42+
- UMASK_SET=022 #optional
43+
volumes:
44+
- /opt/sonarr/config:/config
45+
- /opt/sonarr/tv:/tv
46+
- /opt/deluge/downloads:/downloads
47+
- /opt/custom_scripts:/config/custom_scripts
48+
ports:
49+
- 8989:8989
50+
restart: unless-stopped
51+
```
52+
53+
In this example the location is /opt/custom_scripts.
54+
55+
Set Sonarr/Radarr to use the new script:
56+
57+
1. Navigate to settings -> Connect
58+
59+
2. Click the + icon
60+
61+
3. Choose "Custom Script"
62+
63+
4. Give the integration a name
64+
65+
5. Uncheck all triggers except "On Download" unless you have added this functionality to the script
66+
67+
6. Optionally add tags
68+
69+
7. In the path box, either manually type the path out or use the folder icon to browse to the script

0 commit comments

Comments
 (0)