SMS notifications

Discussion about software such as GSAK, OziExplorer etc, as well as all things hardware, GPSrs, laptops, PDAs, paperless caching, cables etc
alpha993
200 or more found
200 or more found
Posts: 166
Joined: 21 August 04 9:42 pm
Location: Canberra

Post by alpha993 » 21 September 07 10:27 pm

CraigRat wrote:<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>
<P>From First To Find -- New Cache Watcher page "On August 14th or 15th gc.com introduced an error into their query page listings. This error causes FTF to fail. I've decided to wait a day or so to see if they fix their problem before I revise my program to deal with the error. "

<P> Seem they might be pretty sensitive and pretty aware of it too...

User avatar
zactyl
Posts: 1171
Joined: 28 July 04 6:40 pm
Location: Mullumbimby, NSW

Post by zactyl » 22 September 07 1:12 am

fehrgo wrote:I don't get why they don't include coordinates in the notification anyway...
caughtatwork wrote:They make you read the cache page so you know if there are any restrictions or warnings you should be aware of.
And if there are any fine products you might be interested in. :wink:

User avatar
Mloe
250 or more caches found
250 or more caches found
Posts: 44
Joined: 09 July 05 9:43 pm
Location: Keperra

Post by Mloe » 23 September 07 1:49 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?
Well.. now... :)

$ cat /tmp/tick

This is an automated message from Geocaching

For GC163VW: Camp Granada 2007 (Traditional Cache)
Location: Queensland, Australia
42.9mi W (69km W)
theUMP published Camp Granada 2007 (Traditional Cache) at 9/21/2007

Log Date: 9/21/2007
Hello, Muddah. Hello, Fadah.

$ cat /tmp/tick | /tmp/email2sms.pl
GC163VW: Camp Granada 2007 (traditional, 69km W): S 27 22.643 E 153 15.256
$

... although those aren't GC163VW's real co-ords.

Getting the email to the script and the one line summary from the script to your phone is left as an exercise for the reader. Seems to already be plenty of suggestions for ways to skin that second cat at least. I use procmail and a command line tapi client with a modem for this sort of thing but that's not going to help if you're not using something unixy.

I'd fully expect the below code to stop working at any moment because well.. it really shouldn't be possible now. It's not code I actually use (I just wrote it earlier this evening) so I don't mind that. :)

Code: Select all


Code removed by moderator (CraigRat)
(Posting scraping code may get this site into legal difficulties with Groundspeak.)
Please do not post actual code on the site!


... although on preview I see the script has been rendered broken despite use of the 'code' directive so you'll have to figure it out yourself a little bit. :)

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 » 23 September 07 11:08 am

Guys,
I've had to edit the above post as it's pushing the boundaries of what can be posted here.

Please keep it on the 'conceptual' level to avoid us getting in any legal problems please!

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 » 23 September 07 12:00 pm

I do find it interesting that the WAP site does not require a login, though. It is too bad that you can't directly link to a cache using a url that would fit inside an SMS, as this should still be within what would be considered acceptable by GC. Unfortunately any passed parameters are likely to grow the URL too much.

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 » 24 September 07 9:37 am

fehrgo wrote:It is too bad that you can't directly link to a cache using a url that would fit inside an SMS, as this should still be within what would be considered acceptable by GC. Unfortunately any passed parameters are likely to grow the URL too much.
You could run it through tinyurl.com first, or roll your own tiny url if you have an online server.

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 » 24 September 07 1:39 pm

Ah yes, I hadn't thought of that. Now you have me thinking of proxying the wap session...

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

Post by alpha993 » 27 September 07 8:39 am

alpha993 wrote: <P>From First To Find -- New Cache Watcher page "On August 14th or 15th gc.com introduced an error into their query page listings. This error causes FTF to fail. I've decided to wait a day or so to see if they fix their problem before I revise my program to deal with the error. "

<P> Seem they might be pretty sensitive and pretty aware of it too...
<P>Version 5 of First To Find was released on 25 Sept 2007 and fixes the error mentioned above. It also has a new feature to send messages only during certain hours of the day (handy if your computer runs services long after you turn in each night).

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 » 27 September 07 9:20 am

fehrgo wrote: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:
Incidentally, here's my version of Fehrgo's code. I would have said mine was simpler, but being Perl, both versions are hard to read :P

Code: Select all

   while ($line = <>) {
      chomp($line);

      if ( $line =~ /^For (GC.*): (.*) ((.*))/ ) {
         $cacheid   = $1;
         $cachename = $2;
         $cachetype = $3;
      }

      if ( $line =~ /^[.0-9]*mi .* ((.*))/ ) {
         $distance = $1;
      }

      if ( $line =~ m|http://www.geocaching.com/seek/cache_details.aspx| ) {
         $cacheurl = $line;
      }
   }

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

Post by Burton's » 28 September 07 1:25 am

Hi guys, thanks for everything but geez, it sounds a bit difficult for a humble Fitter. :shock: Besides if its outside the boundaries, possibly we should leave it alone. :P

User avatar
Team Piggy
Posts: 1601
Joined: 02 April 03 5:16 pm
Location: South Australia

Post by Team Piggy » 28 September 07 10:57 am

Burton's wrote: Besides if its outside the boundaries, possibly we should leave it alone. :P
Now your getting the picture.

Old story if you play with naughty stuff, you might get in trouble (or get others in trouble).. :wink:

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 » 28 September 07 11:04 am

Burton's wrote:Hi guys, thanks for everything but geez, it sounds a bit difficult for a humble Fitter. :shock: Besides if its outside the boundaries, possibly we should leave it alone. :P
The base scripts that have been mentioned only convert the e-mail that you receive as a notification to an SMS.

If you start including anything else after that, then thats where you might find yourself over the wrong side of the line :shock:

luckdogscrew
600 or more caches found
600 or more caches found
Posts: 69
Joined: 01 January 07 8:59 pm
Location: eltham

Post by luckdogscrew » 28 September 07 2:52 pm

Has anybody written a script in Outlook to make an email message from the Notification emails and then send it to an SMS Gateway, Such as BigPonds?

I know if you get Premium Mail from Big Pond you can do this pretty easily, but has anybody worked out a way to do it without paying the $15 for the premium mail?

I have seen a software called SMS organiser at http://www.users.bigpond.com/web.guru/index.html

Has anybody tried this?

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 » 11 October 07 12:24 am

Missed one today - the "Subject" header became "subject". I've made it case insensitive now, but I'm curious as to why that would have changed.

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 » 11 October 07 2:20 am

That sounds RFC non-compliant...

edit: I can confirm my notifications were coming in lowercase today as well. Waymarking notifications have been with a lowercase subject line for some time, apparently, although it isn't like many of those are generated.

Thanks for the heads up, regex updated.

Post Reply