~ubuntu-branches/ubuntu/utopic/slic3r/utopic

« back to all changes in this revision

Viewing changes to utils/post-processing/prowl-notification.pl

  • Committer: Package Import Robot
  • Author(s): Chow Loong Jin
  • Date: 2014-06-17 01:27:26 UTC
  • Revision ID: package-import@ubuntu.com-20140617012726-2wrs4zdo251nr4vg
Tags: upstream-1.1.4+dfsg
ImportĀ upstreamĀ versionĀ 1.1.4+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/perl
 
2
#
 
3
# Example post-processing script for sending a Prowl notification upon
 
4
# completion. See http://www.prowlapp.com/ for more info.
 
5
 
 
6
use strict;
 
7
use warnings;
 
8
 
 
9
use File::Basename qw(basename);
 
10
use WebService::Prowl;
 
11
 
 
12
# set your Prowl API key here
 
13
my $apikey = '';
 
14
 
 
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);