Page 1 of 1

Pushover script

Posted: Sat Jun 25, 2016 12:17 pm
by Phairplay
Hello,
I currently use uTorrent and would like to switch to deluge. The one thing stopping me is a powershell script that send a pushover notification

Code: Select all

<#
  .SYNOPSIS
  Send a message when a torrent has finished
  
  .DESCRIPTION
  uTorrent allows a script to be ran with various parameters when a torrent has finished downloading
  or its state has changed.
  
  Settings can be found at Options -> Preferences -> Advanced -> Run Program
  
  Set the option Run this program when a torrent finishes" to the following
  powershell.exe -ExecutionPolicy Unrestricted -File C:\Pushover-uTorrentNotify.ps1 %N
#>

Import-Module PS-Pushover

Send-PushoverMessage -title "Download Finished" -message $args[0] -sound "cashregister" `
    -user "user key" -token "api token"
No I'm a complete noob when is comes to coding is it possible to run a batch file through deluge that call the above script, as I've read deluge doesn't support powershell?

Re: Pushover script

Posted: Sat Jun 25, 2016 1:54 pm
by gderf
Have you looked at the built in Execute plugin?

Re: Pushover script

Posted: Sun Jun 26, 2016 4:58 pm
by Phairplay
Yes I was able to create a batch file that call the powershell script

Cheers