*** DONE UOMF: Quick Access to My Org Mode Agenda on Android :blog:emacs:pim:diy:software: CLOSED: [2016-04-16 Sat 20:21] SCHEDULED: <2016-04-16 Sat> :PROPERTIES: :ID: 2016-04-16-android-agenda-access :CREATED: [2016-04-16 Sat 13:53] :END: :LOGBOOK: - State "DONE" from "NEXT" [2016-04-16 Sat 20:21] :END: Silent update 2019-09-25: added to [[id:2019-09-25-using-orgmode][blog series "Using Org Mode Features"]] Please do read [[id:2019-09-25-using-orgmode][my "Using Org Mode Features" (UOMF) series page]] for explanations on articles of this series. When I am away from my computers, I often need to see the appointments of the upcoming weeks in order to make arrangements. Unfortunately, I can't make [[https://play.google.com/store/apps/details?id=com.matburt.mobileorg][Android MobileOrg]] sync with my local Android calendar. As a workaround, I generate a screenshot of one of my agendas (a month, no todos, only appointments). Since I am not able to define this PNG image as my lock-screen background (my original plan), I created a lock-screen link to the image instead. To get to the agenda from lock-screen I have to slide the lock-screen link, enter my security pattern, and then my image viewer shows me the agenda. To semi-automate the generation/update of the screenshot image, I am using following Elisp snippet: #+BEGIN_SRC elisp (defun my-export-month-agenda-to-png-via-screenshot() (interactive) (message "Generating agenda ...") (org-agenda nil "n") ; generates agenda "n" (one month without todos) (if (my-buffer-exists "*Org Agenda*") (switch-to-buffer "*Org Agenda*") (org-agenda-list) ) (message "Waiting for Screenshot ...") (sit-for 1) ; (sleep 1) ... doesn't re-display and thus screenshot ; showed buffer before switching to agenda (message "Say cheese ...") (setq myoutput (shell-command-to-string "/usr/bin/import -window root /home/vk/phonesync/agenda.png")) (message (concat "Screenshot done (" myoutput ")")) ) #+END_SRC