From mboxrd@z Thu Jan 1 00:00:00 1970 From: Peter Jones Subject: Agenda on iPhone as HTML Date: Wed, 21 Jan 2009 15:17:35 -0700 Message-ID: <86y6x4fgn4.fsf@pmade.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LPlOZ-0004L3-Um for emacs-orgmode@gnu.org; Wed, 21 Jan 2009 17:17:59 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LPlOY-0004Kq-HB for emacs-orgmode@gnu.org; Wed, 21 Jan 2009 17:17:58 -0500 Received: from [199.232.76.173] (port=35415 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LPlOY-0004Kn-Aj for emacs-orgmode@gnu.org; Wed, 21 Jan 2009 17:17:58 -0500 Received: from main.gmane.org ([80.91.229.2]:54961 helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LPlOX-0002K9-SH for emacs-orgmode@gnu.org; Wed, 21 Jan 2009 17:17:58 -0500 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1LPlOX-00021h-6T for emacs-orgmode@gnu.org; Wed, 21 Jan 2009 22:17:57 +0000 Received: from 71-218-81-192.hlrn.qwest.net ([71.218.81.192]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 21 Jan 2009 22:17:57 +0000 Received: from mlists by 71-218-81-192.hlrn.qwest.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 21 Jan 2009 22:17:57 +0000 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org I finally have my agenda just the way I like, thanks to custom agenda block commands. So the next natural thing to do was to get this exported so I could see it on my iPhone. Pending a formal Org iPhone application, I decided to put some HTML on a web server I control, and access it from my phone. To make it easier to make phone calls from the agenda, I also create the proper tel links so that tapping a phone number tells the iPhone to dial out. You can see the sed hacking in my super-simple function: (defun pmade:org-write-agenda () "Write the agenda buffer to a file, and send to pmade.com." (interactive) (org-write-agenda "~/agenda.html") (shell-command "sed -E 's/T:([0-9+-]+)/T:\\1<\\/a>/' < ~/agenda.html | ssh -q pmade.com 'cat > /opt/sites/pmade.com/www/private/agenda.html'") (delete-file "~/agenda.html")) Basically, headlines that have something like T:303-555-1212 will have the number turned into a tel link. Hope this helps someone else. -- Peter Jones, http://pmade.com pmade inc. Louisville, CO US