Prowl Notification Script for Windows
Posted: January 19th, 2012, 11:57 pm
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.
Create a new text file with notepad, and paste the following code into the document. Save the file as prowl.vbs.
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%
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