Prowl and Crash

Philippe SCHMUCK philippe-schmuck at orange.fr
Wed Feb 10 13:34:14 EST 2021


Hi Rich,

I checked with my script which is almost the same than yours except that I added a comment on the 08/22/2017 to remind me that I had replaced the « https »  by « http » because of a mail received from James on the 08/20/2017 ; since then, I have left the script as it is.

Best regards,
Philippe

—
Sometime overnight the Prowl server that we connect to in order to send alerts to iPhones had an update or something and is now limited to a much older form of HTTPS encryption. So old in fact that the latest versions of XTension can’t even make a connection with it since it’s been removed from the application libraries I link against. This morning I’m just getting errors in my log when I try to connect. 

Until they fix that you can fix the problem by just connecting to their servers without encryption by changing the link in the script from https:// to just http://

so change the script line that says:

	loadurl "https://api.prowlapp.com/publicapi/add" post data MyParams ¬


to:


	loadurl "http://api.prowlapp.com/publicapi/add" post data MyParams ¬


And things will work fine until they figure out why their server is not able to host a more reliable encryption type. 

Thanks,
 James
——





> Le 10 févr. 2021 à 18:34, rnaleonard <rnaleonard at rcn.com> a écrit :
> 
> Hi,
> 
> I am having difficulty with the Prowl helper script.  This is the updated one that uses the loadurl command and runs inside XTension.  I think I have it set up correctly as it does send Prowl notifications.  But after a short period XTension ends up crashing.  I don't see anything in the log that ties the crash to the Prowl helper.  But once I connected the problem to Prowl and reverted back to the old external script app, the crashes stopped.  Is there anything I can do to trace the problem or to fix it?  Anyone else using this script?
> 
> Thanks,
> Rich
> 
> --prowl helper script to send prowl notifications to iPhone
> --SendProwlNotification("ThePriority", "TheEvent", "TheDescription")
> 
> on SendProwlNotification(ThePriority, TheEvent, TheDescription)
> 	
> 	-- PROWL HELPER APP *\
> 	-- for XTension to send notifications to iPhone via prowl *\
> 	-- prowl is an app for iPhone available from prowl.weks.net *\
> 	-- this script by James Sentman james at sentman.com *\
> 	-- version 1.0 8/5/09 
> 	-- version 2.0 5/28/14 *\
> 	-- version 2.1 3/31/16 (new notification server address)
> 	
> 	write log "sending prowl notification " & TheEvent & ": " & TheDescription
> 	
> 	--generate your own API key from https://prowl.weks.net/settings.php
> 	
> 	set MyAPIKey to "xxxxxxxxxxxxxxxxxxxxxx"
> 	set MyApplicationName to "xx"
> 	--
> 	--  ThePriority: -2 to 2
> 	--  TheEventName: short string description i.e. "preimeter alarm"
> 	--  TheDescription: longer description i.e. "Front Door Open"
> 	
> 	--build the form elemenets to pass as a list to the loadURL command
> 	set MyParams to {"apikey=" & MyAPIKey, ¬
> 		"priority=" & ThePriority, ¬
> 		"application=" & MyApplicationName, ¬
> 		"event=" & TheEvent, ¬
> 		"description=" & TheDescription}
> 	
> 	loadurl "https://api.prowlapp.com/publicapi/add" post data MyParams ¬
> 		callback script "Prowl" callback handler "gotresult" timeout 90
> 	
> end SendProwlNotification
> 
> on gotresult(replyCode, replyText)
> 	--write log "Reply Text: " & replyText & " Reply Code: " & replyCode
> 	if "success" is in replyText then
> 		write log "Prowl Notification Sent"
> 	else
> 		write log "ERROR FROM PROWL: (" & replyCode & ") " & MyReply
> 	end if
> end gotresult
> 
> _______________________________________________
> XTensionList mailing list
> XTensionList at machomeautomation.com
> http://mail.machomeautomation.com/mailman/listinfo/xtensionlist



More information about the XTensionList mailing list