Notification Agents
Notification Agents
I'm switching away from Pushbullet and was wondering what other notification agents filebot supports?
Re: Notification Agents
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).
viewtopic.php?f=4&t=215

Re: Notification Agents
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


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
