Live data from Hacker News

Owning my own data, part 1: Integrating a self-hosted calendar solution

emilygorcenski.com

21–30 of 157 posts

Re: Owning my own data, part 1: Integrating a self-hosted calendar solution

#22
post #6

I started using a paper diary again about a year ago. Turns out I wasn’t missing much and fitting in the rails of calendaring and task management as the vendor (apple) saw fit wasn’t really helping me. I have two jobs and a large family to coordinate. Ultimate self hosting that. Also only costs $15/year approx.

One of those little 5 subject spiral notebooks you can pick up at the gas station work great. I've had one open on my desk next to my computer for the past 20 or so years. Never had an outtage, no subscription fees, privacy is pretty good too. Requires a pen though but that's about it.

Re: Owning my own data, part 1: Integrating a self-hosted calendar solution

#23
This is the kind of thing I think about doing every so often, before realizing it would take me a lot more time, energy, and money than I'm willing to spend to save 10 minutes once a week manually copying my work events from GCal to Etar on my phone and vice versa, and both to the weekly dry erase calendar on my wall.

My recurring events are all blocked off on the calendars already ("private" for personal events on my work calendar), so it really is quite a quick update.

Re: Owning my own data, part 1: Integrating a self-hosted calendar solution

#24
Another CalDav server I can recommend is Radicale. It's written in python and designed in a pretty modular way, enabling authentication and authorization (and more) plugins.

Data is saved in plain text files and I track/backup it using git.

Over the time I've accumulated some interesting modifications:

- Authentication runs with pam on the host system.

- To enable sharing of calendars I run a periodic script symlinking the calendars to all authorized users. Unfortunately this suffers from combinatiorial explosion.

- Using a rights plugin with custom CalDav Attributes and a modified web plugin I added support for access Control Lists.

- To enable public calendars you give read permissions to the `public` user using ACL. Then a nginx hack gives blanket acces for read operations:

  location /public {
      proxy_pass http://127.0.0.1:{%RADICALE_PORT%};
      include proxy_params;
      proxy_set_header Authorization "Basic {%RADICALE_PUBLIC_AUTH%}";
      proxy_hide_header Authorization;
      add_header Access-Control-Allow-Origin * always;
      add_header Access-Control-Allow-Methods "GET, OPTIONS, PROPFIND";
      add_header Access-Control-Allow-Headers "Depth";
      limit_except GET OPTIONS PROPFIND { deny all; }
  }
These public calendars are can be viewed on a web calendar (https://gitlab.nomagic.uk/popi/js_calendar_from_ics)

I should probably write a blog post about the setup.

Re: Owning my own data, part 1: Integrating a self-hosted calendar solution

#26
post #23

This is the kind of thing I think about doing every so often, before realizing it would take me a lot more time, energy, and money than I'm willing to spend to save 10 minutes once a week manually copying my work events from GCal to Etar on my phone and vice versa, and both to the weekly dry erase calendar on my wall. My recurring events are all blocked off on the calendars already ("private" for personal events on m…

I've been using WritePads and Pilot G2s to keep track of things these days.

Re: Owning my own data, part 1: Integrating a self-hosted calendar solution

#27

I honestly prefer a pen and paper planner and just manually migrating my contacts over. Meanwhile, my personal gmail is 99.9% contacts I have no intention to ever speaking to again.

Begging the question why not delete the contacts?

I've been thinking about it: certainly most of the numbers in my contacts list are probably invalid by now. But there's definitely a delta of finality to going "oh there's like 10 people I will ever call and that number is only going to go down... "

Re: Owning my own data, part 1: Integrating a self-hosted calendar solution

#28
I know I will probably get pushback over this, but CalDAV sucks. People say that it's great and that it's easy; yet if that were true there would be way more self-hosted CalDAV solutions out there and they would be far more ergonomic than what's available. I was not impressed with Radicale. Because there's really only one calendar file I wanted to serve to myself, I tried implementing my own CalDAV server just for that purpose and pretty much gave up because of how unintuitive and complicated it was merely to make a single file available. I can see why it would be needed if sharing a calendar with other people with calendar apps that support CalDAV, but I think it's kind of a waste of time if hosting a calendar for one's self.

Instead, initially went with the approach of hosting my dynamically updating iCal file in an S3 bucket and using ICSx5 on Android to sync with it. No CalDAV needed – just HTTPS.

However, FOSS calendars for Android still suck, and for some reason I couldn't get ICSx5 to work within GrapheneOS, so I now use almost the same approach but with Proton Calendar which happens to support calendars from direct links to iCal files. It's not perfect, but it suits my needs enough.

I think the author's approach for using iCalendar format is a good one, though what I've discovered is the amount of support for various iCalendar features varies drastically between calendar software. Rather than dealing with that headache, I somewhat gave up and decided to shove most metadata into the description field rather than use the respective properties.

EDIT: My use case is software I wrote to grab data from various sites (Eventbrite, Meetup, pub trivia companies, public event calendars, etc.), filter for only social events I would be interested in, and combine them into a single calendar I can view in my normal calendar software.

Re: Owning my own data, part 1: Integrating a self-hosted calendar solution

#29

Ok unrelated, but I'm looking for a tool for making diagrams like that, anyone know what was used on this post? ty

That particular diagram seems to have been generated by https://plantuml.com according to the image's metadata

Yes! The EXIF data includes the full plantuml used to generate it, under the Plantuml tag.

https://www.plantuml.com/plantuml/uml/VPBFQXmn3CRlynGYzzdUXn...

Re: Owning my own data, part 1: Integrating a self-hosted calendar solution

#30
Nice!. I would like to do something like this but for Photos. I want to get off Dropbox and Google for a while. At the top of my list are:

1. Create a memories like feature from my photos to send on my cell phone, grouping by different features I like: anniversaries, similar activities, A `Me an X(X is Spouse, family, friends etc)`, Over the years(how x has evolved over the years).

2. Be able to save photos taken from my device to my servers.

I've set up three true-nas machines in different places with 2TB of space and want to slowly build this feature.

Post reply on HN