Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/prusa3d/PrusaSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorHenrik Brix Andersen <henrik@brixandersen.dk>2012-08-01 00:48:47 +0400
committerHenrik Brix Andersen <henrik@brixandersen.dk>2012-08-01 00:48:47 +0400
commitaf224bbb8dc9aea0431afba204cf4f80eb78deb6 (patch)
treec9f06d089c306546218b6cbcc5d5babe26c15e2c /utils
parent83fccf0875c0eaebd6699292c60aced565c66186 (diff)
Add example on how to use post-processing scripts for sending custom notification when slicing is done.
Diffstat (limited to 'utils')
-rwxr-xr-xutils/post-processing/prowl-notification.pl21
1 files changed, 21 insertions, 0 deletions
diff --git a/utils/post-processing/prowl-notification.pl b/utils/post-processing/prowl-notification.pl
new file mode 100755
index 000000000..5a5e1ca53
--- /dev/null
+++ b/utils/post-processing/prowl-notification.pl
@@ -0,0 +1,21 @@
+#!/usr/bin/perl
+#
+# Example post-processing script for sending a Prowl notification upon
+# completion. See http://www.prowlapp.com/ for more info.
+
+use strict;
+use warnings;
+
+use File::Basename qw(basename);
+use WebService::Prowl;
+
+# set your Prowl API key here
+my $apikey = '';
+
+my $file = basename $ARGV[0];
+my $prowl = WebService::Prowl->new(apikey => $apikey);
+my %options = (application => 'Slic3r',
+ event =>'Slicing Done!',
+ description => "$file was successfully generated");
+printf STDERR "Error sending Prowl notification: %s\n", $prowl->error
+ unless $prowl->add(%options);