#!/usr/bin/perl -w
use 5.010;
use strict;
use warnings;
use autodie;

# PODNAME: geo-notify
# ABSTRACT: Send a notification every time we spot the user check-in.

# This is mostly useful for debugging, although with a tiny
# bit of work one could turn it into a creepy stalker plug-in.

use Exobrain;

my $exobrain = Exobrain->new;

$exobrain->watch_loop(
    class  => 'Measurement::Geo',
    filter => sub { $_->is_me },
    then   => sub {
        my $event = shift;
        $exobrain->notify($event->summary);
    },
);

__END__

=pod

=head1 NAME

geo-notify - Send a notification every time we spot the user check-in.

=head1 VERSION

version 1.07

=head1 AUTHOR

Paul Fenwick <pjf@cpan.org>

=head1 COPYRIGHT AND LICENSE

This software is copyright (c) 2014 by Paul Fenwick.

This is free software; you can redistribute it and/or modify it under
the same terms as the Perl 5 programming language system itself.

=cut
