From 84619cbc8dc92aadc201723019443b4484b3c9a8 Mon Sep 17 00:00:00 2001 From: Dante Catalfamo Date: Thu, 14 Jan 2021 01:23:04 -0500 Subject: agenda-html: More grammar, add cover --- content/posts/WIP-org-agenda-html/cover.png | Bin 0 -> 45555 bytes content/posts/WIP-org-agenda-html/index.org | 27 ++++++++++++++++++--------- 2 files changed, 18 insertions(+), 9 deletions(-) create mode 100644 content/posts/WIP-org-agenda-html/cover.png (limited to 'content/posts') diff --git a/content/posts/WIP-org-agenda-html/cover.png b/content/posts/WIP-org-agenda-html/cover.png new file mode 100644 index 0000000..a72e034 Binary files /dev/null and b/content/posts/WIP-org-agenda-html/cover.png differ diff --git a/content/posts/WIP-org-agenda-html/index.org b/content/posts/WIP-org-agenda-html/index.org index f11149f..b51ecd4 100644 --- a/content/posts/WIP-org-agenda-html/index.org +++ b/content/posts/WIP-org-agenda-html/index.org @@ -7,7 +7,11 @@ #+SLUG: #+SUMMARY: -I absolutely love [[https://orgmode.org/][Org mode]]. I use it extensively almost every day to +#+ATTR_HTML: :title An example output from agenda-html +#+ATTR_HTML: :alt An example output from agenda-html +[[file:cover.png]] + +I absolutely love [[https://orgmode.org/][org mode]]. I use it extensively almost every day to keep track of tasks and due dates, both for my personal life and at work. A lot of this workflow centres around the [[https://orgmode.org/features.html#agendas][org agenda]], which compiles all the current and upcoming tasks and due dates from several @@ -15,15 +19,15 @@ files into a single view. The only gripe I had with it was that I had to be within Emacs to use it. This wasn't a deal breaker, but there were often times when I -wanted to check my agenda, but I wasn't already in Emacs. In these +wanted to check my agenda, but I wasn't already in Emacs. In those cases I had to open Emacs and pull up the agenda. This felt a little clunky for something I may check a dozen times every day. The solution I came up with was a way to automatically generate and export an HTML version of my agenda every 15 minutes on my server. That way I can serve it over HTTP and access it on all my devices. -They are also password protected so that strangers on the internet -can't see my agenda. +They're also password protected so that strangers on the internet +can't access my data. The heart of this system is a small set of scripts I wrote called [[https://github.com/dantecatalfamo/agenda-html][agenda-html]], which let you export a fully fontified view of the org @@ -64,7 +68,12 @@ location /agenda { } #+end_src -Then I reloaded =nginx= using the command =nginx -s reload=. +Then I reloaded =nginx=. + +#+begin_src shell +nginx -s reload +#+end_src + Finally I edited root's crontab to run =agenda-html.sh= every 15 minutes, using this line. @@ -74,7 +83,7 @@ minutes, using this line. #+end_src Now every 15 minutes the latest version of my org files are pulled -from my Nextcloud storage and exported as an agenda, which I can view -from any device. I'm also able to set as the new tab page in my -browser. I'm even able to check it from my phone now that I no longer -have to have Emacs installed on a device. +from my Nextcloud storage and exported as an HTML file, which I can +view from any device. I'm also able to set as the new tab page in my +browser. I'm even able to check it from my phone, or any other device +that doesn't have Emacs installed. -- cgit v1.2.3