Prowl Notification Script for Windows

Come up with a useful post-processing script? Share it here!
Post Reply
SplitFire
Newbie
Newbie
Posts: 2
Joined: January 19th, 2012, 10:32 pm

Prowl Notification Script for Windows

Post by SplitFire »

Hi everyone. This script is based off relman's script and simply sends a prowl notification of the filename of whatever is downloaded. Unfortunately, I could not get relman's to work due to some new security issues and a possible update to Prowl's API url. Anyway, the scripts below are now working for me...

Create a new text file with notepad, and paste the following code into the document. Save the file as prowl.cmd. Remember to replace the x's at "set API=" with your prowl API code. Also be sure to edit the location "C:\prowl.vbs" to the location you choose to save your prowl.vbs file.

Code: Select all

set API="xxxxxxxxxxxxxxxxx"

Set Item=%3
setlocal enableextensions
set var_=%Item%
endlocal & set FileName=%var_%
Set desc="%FileName%"
set priority=0

cscript C:\prowl.vbs %API% %priority% %desc%
Create a new text file with notepad, and paste the following code into the document. Save the file as prowl.vbs.

Code: Select all

API = WScript.Arguments.Item(0)
priority = WScript.Arguments.Item(1)
desc = WScript.Arguments.Item(2)

set oHTTP = CreateObject("MSXML2.ServerXMLHTTP.6.0")  
oHTTP.open "Get", "https://api.prowlapp.com/publicapi/add?" & "apikey=" & API & "&priority=" & priority & "&application=SABnzbd File Downloaded&event=" & Date() & " " & Time()  & "&description=" & desc ,false  
oHTTP.setRequestHeader "Content-Type", "application/x-www-form-urlencoded"  
oHTTP.send  
HTTPPost = oHTTP.responseText
nawo69
Newbie
Newbie
Posts: 6
Joined: December 2nd, 2010, 1:06 pm

Re: Prowl Notification Script for Windows

Post by nawo69 »

Thanks for this. Works perfectly
ktd
Newbie
Newbie
Posts: 32
Joined: April 8th, 2010, 3:56 am
Location: Stockholm, SWEDEN

Re: Prowl Notification Script for Windows

Post by ktd »

Thank you very much! Works great.
Post Reply