Page 1 of 1
					
				Notification Agents
				Posted: 14 Nov 2018, 19:52
				by skinsvpn
				I'm switching away from Pushbullet and was wondering what other notification agents filebot supports?
			 
			
					
				Re: Notification Agents
				Posted: 15 Nov 2018, 03:28
				by rednoah
				FileBot in general does not support any notification systems. The amc script specifically has some support, i.e. 
pushbullet, 
pushover and 
email.
viewtopic.php?f=4&t=215
 
 The 
--def exec option can be used to add custom support for any kind of notification system 
(via a command, executable or HTTP request).
 
			 
			
					
				Re: Notification Agents
				Posted: 18 Aug 2025, 20:37
				by KreAch3R
				I'm resurrecting this old post because I want to do the same thing, switch away from Pushbullet. I am thinking of using ntfy and the --exec function. But @rednoah, is there any way I can get access to the populated html file that you create for pushbullet?
			 
			
					
				Re: Notification Agents
				Posted: 19 Aug 2025, 07:58
				by rednoah
				KreAch3R wrote: ↑18 Aug 2025, 20:37
I'm resurrecting this old post because I want to do the same thing, switch away from Pushbullet. I am thinking of using ntfy and the --exec function. But @rednoah, is there any way I can get access to the populated html file that you create for pushbullet?
 
 
 You could run the 
amc script with 
--def storeReport=/path/to/unique-temporary-folder and then just send the 
*.html file that the 
amc script will have been generated into that folder. Something like 
Send console output as email could serve as a starting point.
 

 Alternatively, could also add a 
Custom Post-Processing Script and copy & paste the HTML template code from 
amc script. Here's a snippet to get you started:
Groovy: Select all
// generate HTML code
def html = XML {
	html {
		head {
			meta(charset:'UTF-8')
			style('''
				p{font-family:Arial,Helvetica,sans-serif}
				p b{color:#07a}
				hr{border-style:dashed;border-width:1px 0 0 0;border-color:lightgray}
				small{color:#d3d3d3;font-size:xx-small;font-weight:normal;font-family:Arial,Helvetica,sans-serif}
				table a:link{color:#666;font-weight:bold;text-decoration:none}
				table a:visited{color:#999;font-weight:bold;text-decoration:none}
				table a:active,table a:hover{color:#bd5a35;text-decoration:underline}
				table th{padding:15px 15px 12px 15px;background:#ededed}
				table th{text-align:center;padding-left:20px}
				table tr{text-align:left;padding-left:20px}
				table td{padding:15px;border-top:1px solid #ffffff33;border-bottom:1px solid #e0e0e0;border-left:1px solid #e0e0e0;background:#fafafa;white-space:nowrap}
				table td:first-child{text-align:left;padding-left:20px;border-left:none}
				table tr td:first-child{border-top-left-radius:4px;border-bottom-left-radius:4px}
				table tr td:last-child{border-top-right-radius:4px;border-bottom-right-radius:4px}
				table tr:last-child td{border-bottom:none}
				table tr:hover td{background:#f2f2f2}
				table{width:100%;color:#666;font-family:Arial,Helvetica,sans-serif}
				section{overflow:auto;background:#eaebec;border:#ccc 1px solid;border-radius:4px;box-shadow:0 1px 2px #d1d1d1}
			''')
			title("FileBot finished processing ${args.size()} files.")
		}
		body {
			p {
				span("FileBot finished processing ${args.size()} files.")
			}
			hr()
			section {
				table {
					tr { th('Original Name'); th('New Name'); th('New Location') }
					args.eachWithIndex{ f, i ->
						tr { [model.source[i].name, f.name, f.parent].each{ cell -> td(cell) } }
					}
				}
			}
		}
	}
}
// do something with the HTML code
system 'echo', html
 
 
 Let me know what path you have chosen and how it's going. We might add something to the examples if it's confirmed to work well.
 
			 
			
					
				Re: Notification Agents
				Posted: 21 Aug 2025, 13:17
				by KreAch3R
				Thanks for the fast reply! I started going at it and had a working proof of concept with a combination of storereport and exec, something like this:
Code: Select all
--def storeReport=/placeholder \
--def exec="curl -T \"/placeholder/HARDCODE FILENAME FOR NOW" -H \"X-Filename: $TORRENT_NAME\" ntfy.sh/filebot_notifications_unique" \
I was going to write a wrapper script for the curl which would find the correct .html script but I can't get ntfy to send an .html as an attachment, it converts it to plain text, adds .txt file extension. I haven't found out why yet or if it is a security thing, but that has stopped me dead in my tracks.
EDIT: And I just found the reason, 
it's a feature 
. Bummer. I'll have to look for another Pushbullet Alternative. Or Telegram I guess.
 
			 
			
					
				Re: Notification Agents
				Posted: 23 Aug 2025, 08:31
				by rednoah
				
			 
			
					
				Re: Notification Agents
				Posted: 23 Aug 2025, 19:07
				by KreAch3R
				Nice!
I'll post back if I create something else that's makes sense.