SMS notifications

Discussion about software such as GSAK, OziExplorer etc, as well as all things hardware, GPSrs, laptops, PDAs, paperless caching, cables etc
Burton's
2800 or more caches found
2800 or more caches found
Posts: 44
Joined: 10 April 06 1:43 pm
Location: Angle Vale, SA 5117

SMS notifications

Post by Burton's » 19 September 07 11:28 pm

Hi Guys,
We re led to believe that SMS notification on caches are available. Can someone PLEASE tell me where to look. Or is this a red herring from people who spend way too much time on GC :roll: :roll:

User avatar
fehrgo
200 or more found
200 or more found
Posts: 447
Joined: 11 July 06 12:39 am
Location: Redland Bay, QLD

Post by fehrgo » 20 September 07 12:05 am

Premium members can set up email alerts here:

http://www.geocaching.com/notify/

In the USA, most carriers have free email to SMS gateways which people use for this purpose. Over here, you will need to roll your own.

I personally use the Clickatell SMS API behind a perl script on my mail server, at a cost of about 7 cents per message. TheNanks cost me $2.50 one night :)

If someone really felt like it, they could set themselves up as a reseller for a service like this, and bill people over Paypal. Not much profit to be made as such, just the convenience to other cachers and the added competition for the FTF. I've toyed with doing this on several occasions, but am not certain the level of demand.

User avatar
Papa Bear_Left
800 or more hollow logs searched
800 or more hollow logs searched
Posts: 2573
Joined: 03 April 03 12:28 am
Location: Kalamunda, WA
Contact:

Post by Papa Bear_Left » 20 September 07 10:18 am

fehrgo wrote:If someone really felt like it, they could set themselves up as a reseller for a service like this, and bill people over Paypal. Not much profit to be made as such, just the convenience to other cachers and the added competition for the FTF. I've toyed with doing this on several occasions, but am not certain the level of demand.
if {cachername = nearby_FTF_competitor}
delay_SMS_by_15_minutes;

:)

smerrall
1500 or more caches found
1500 or more caches found
Posts: 58
Joined: 18 January 06 12:08 pm
Location: Cammeray

Post by smerrall » 20 September 07 9:18 pm

I get notifications SMSed to me currently. I signed up to get spammed by smspup.com. Each spam I read gives me a free SMS message that I use by having them send me an SMS via their email gateway.

User avatar
setsujoku
3500 or more caches found
3500 or more caches found
Posts: 1422
Joined: 28 December 04 5:46 pm
Twitter: BGNWP
Location: Athelstone, SA
Contact:

Post by setsujoku » 20 September 07 9:59 pm

Has anyone got it currently set up where a perl script (or similar) gets forwarded the e-mail, and parses it out to an sms gateway with the name, distance, and co-ords of the cache?

User avatar
fehrgo
200 or more found
200 or more found
Posts: 447
Joined: 11 July 06 12:39 am
Location: Redland Bay, QLD

Post by fehrgo » 20 September 07 10:53 pm

This doesn't go get the coordinates, but it does give me a name, bearing, distance, and a link that I can click on to launch my browser:

Code: Select all

#!/usr/bin/perl
use LWP::Simple;
use URI::Escape;

$destination = "6141066****";
$source="6141066****";
$apiid="*******";
$username="********";
$password="********";
$date = localtime time;

while ( $line = <STDIN> ) {
        chomp $line;
        chop $line;
        if ($line =~ m/^Subject: [GEO] Notify: .* published /) {
                        $subject = $line;
                        $subject=~ s/^Subject: [GEO] Notify: //g;
                }
        if ($line =~ m/mi .*km /) {
                $distance = $line;
                $distance =~ s/^.*(//g;
                $distance =~ s/)//g;
                }
        if ($line =~ m/^http.*cache_details.*/) {
                $url = $line;
                }
        if ($line =~ m/^For GC/) {
                $name = $line;
                $name =~ s/^For //g;
                $wp = $name;
                $wp =~ s/: .*//g;
                }
        }

$msg="$name $distance http://www.geocaching.com/seek/cache_details.aspx?wp=$wp";
$base="http://api.clickatell.com/http/sendmsg?api_id=$apiid&user=$username&password=$password&from=$source&to=$destination&text
=";

$get = $base . uri_escape($msg);

if ( $subject ) {
        $html = get $get;
}

Last edited by fehrgo on 23 September 07 11:55 am, edited 2 times in total.

User avatar
setsujoku
3500 or more caches found
3500 or more caches found
Posts: 1422
Joined: 28 December 04 5:46 pm
Twitter: BGNWP
Location: Athelstone, SA
Contact:

Post by setsujoku » 20 September 07 10:57 pm

thanks for that fehrgo, gives me a start to work on, and see if i can expand it to grab the co-ords, though not sure how im going to do that yet, will grab the perl book when i get to work tomorrow and see what i can come up with

alpha993
200 or more found
200 or more found
Posts: 166
Joined: 21 August 04 9:42 pm
Location: Canberra

Post by alpha993 » 20 September 07 11:00 pm

Check out First To Find -- New Cache Watcher http://factsfacts.com/geocachingsoft/FirstToFind.htm. <p>You need to have an email address for your mobile - I use XXX@optusmobile.com.au

User avatar
fehrgo
200 or more found
200 or more found
Posts: 447
Joined: 11 July 06 12:39 am
Location: Redland Bay, QLD

Post by fehrgo » 20 September 07 11:04 pm

Ah, so optus has added an email to SMS gateway. Good for them :)

Note that I added the URL to POST for logging in and redirecting to a cache listing. It should be worth a try.

User avatar
fehrgo
200 or more found
200 or more found
Posts: 447
Joined: 11 July 06 12:39 am
Location: Redland Bay, QLD

Post by fehrgo » 20 September 07 11:08 pm

<removed some ramblings about bending the rules of engagement>
Last edited by fehrgo on 23 September 07 11:57 am, edited 1 time in total.

team unicycle
3500 or more caches found
3500 or more caches found
Posts: 294
Joined: 15 April 03 11:03 pm
Location: Adelaide
Contact:

Post by team unicycle » 21 September 07 12:53 am

setsujoku wrote:Has anyone got it currently set up where a perl script (or similar) gets forwarded the e-mail, and parses it out to an sms gateway with the name, distance, and co-ords of the cache?
That's a bit of a Dorothy Dixer. Setsujoku ;)

As you know, I send the email to a Perl script, which grabs the email details. You could also grab the relevent .LOC file, from which you could get the coords and the cache owner.

My script then logs on to a free sms site similar to smspup (but only 1 spam per month). They don't seem to like people automating the sending, presumably because I then don't get to see their ads (which my browser blocks anyway).

Yes, you would need to save the __VIEWSTATE form field and pass it to the POST, when you log in and to download the LOC file.

Note you would choose LOC file over GPX because you can get it without a premium membership logon. You might also want to take care that you set relevent referrer urls.

User avatar
CraigRat
850 or more found!!!
850 or more found!!!
Posts: 7015
Joined: 23 August 04 3:17 pm
Twitter: CraigRat
Facebook: http://facebook.com/CraigRat
Location: Launceston, TAS
Contact:

Post by CraigRat » 21 September 07 7:58 am

<GCA Admin Hat>
Just a heads up that automated scraping of data as indicated in this thread is against GC's Terms and Conditions and could result in account termination....

They are pretty sensitive about it.
</GCA Admin Hat>

<My Programmers Hat>
I know nothing...Nooooothing.....
(innocently whistles and walks away)
</My Programmers Hat>

User avatar
setsujoku
3500 or more caches found
3500 or more caches found
Posts: 1422
Joined: 28 December 04 5:46 pm
Twitter: BGNWP
Location: Athelstone, SA
Contact:

Post by setsujoku » 21 September 07 10:34 am

team unicycle wrote:That's a bit of a Dorothy Dixer. Setsujoku ;)
yeah i know, but there is more than one way to skin a cat!!!

the sms sending part doesnt overly worry me, as ive got a sms gateway, so that part of the process becomes a non issue

Im looking for things to do now that the footy season is over, so its time to get creative :D

User avatar
fehrgo
200 or more found
200 or more found
Posts: 447
Joined: 11 July 06 12:39 am
Location: Redland Bay, QLD

Post by fehrgo » 21 September 07 2:24 pm

I don't get why they don't include coordinates in the notification anyway...

User avatar
caughtatwork
Posts: 17016
Joined: 17 May 04 12:11 pm
Location: Melbourne
Contact:

Post by caughtatwork » 21 September 07 4:06 pm

They make you read the cache page so you know if there are any restrictions or warnings you should be aware of.

Post Reply