summaryrefslogtreecommitdiffstats
path: root/content
diff options
context:
space:
mode:
authorDante Catalfamo2021-01-14 01:23:04 -0500
committerDante Catalfamo2021-01-14 01:23:04 -0500
commit84619cbc8dc92aadc201723019443b4484b3c9a8 (patch)
tree98f90dbce2c064b172e30bec1efaec3e10c8da99 /content
parentc2fa8cf93f4feb06b4d2b0880c3c11593d9e0e77 (diff)
downloadblog-84619cbc8dc92aadc201723019443b4484b3c9a8.tar.gz
blog-84619cbc8dc92aadc201723019443b4484b3c9a8.tar.bz2
blog-84619cbc8dc92aadc201723019443b4484b3c9a8.zip
agenda-html: More grammar, add cover
Diffstat (limited to 'content')
-rw-r--r--content/posts/WIP-org-agenda-html/cover.pngbin0 -> 45555 bytes
-rw-r--r--content/posts/WIP-org-agenda-html/index.org27
2 files changed, 18 insertions, 9 deletions
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
--- /dev/null
+++ b/content/posts/WIP-org-agenda-html/cover.png
Binary files 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.