3
# Example post-processing script for sending a Prowl notification upon
4
# completion. See http://www.prowlapp.com/ for more info.
9
use File::Basename qw(basename);
10
use WebService::Prowl;
12
# set your Prowl API key here
15
my $file = basename $ARGV[0];
16
my $prowl = WebService::Prowl->new(apikey => $apikey);
17
my %options = (application => 'Slic3r',
18
event =>'Slicing Done!',
19
description => "$file was successfully generated");
20
printf STDERR "Error sending Prowl notification: %s\n", $prowl->error
21
unless $prowl->add(%options);