Notification Agents

Running FileBot from the console, Groovy scripting, shell scripts, etc
Post Reply
skinsvpn
Posts: 13
Joined: 26 Sep 2014, 11:46

Notification Agents

Post by skinsvpn »

I'm switching away from Pushbullet and was wondering what other notification agents filebot supports?
User avatar
rednoah
The Source
Posts: 24099
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Notification Agents

Post 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


:idea: The --def exec option can be used to add custom support for any kind of notification system (via a command, executable or HTTP request).
:idea: Please read the FAQ and How to Request Help.
KreAch3R
Posts: 11
Joined: 16 Apr 2014, 23:22

Re: Notification Agents

Post 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?
User avatar
rednoah
The Source
Posts: 24099
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Notification Agents

Post 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?
:idea: 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.



:idea: 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



:arrow: 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.
:idea: Please read the FAQ and How to Request Help.
Post Reply