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. :)