Code Monkey home page Code Monkey logo

icloud-calendar-urls's Introduction

icloud-calendar-urls

Instantly list the CalDAV URLs of your iCloud calendars so you can add them to other calendar apps, like Thunderbird.

Why?

I've been using Thunderbird for my email since it came out almost 20 years ago. It's not cutting edge or trendy, but it's reliable and fast even with a couple decades of archives, and I understand how it works.

On my iPhone, I just use Apple Mail, and calendar invites in email Just Work. On the desktop, though, it's not so convenient to send and accept invites when Apple Calendar (and Fantastical, which is what I actually use) want to send via Apple Mail, and for irritating historical reasons my iCloud address isn't even my normal email address.

Thunderbird's actual calendar UI is not nearly as lovely as Fantastical, but the invite handling works well if only you can hook it up to your actual calendar.

iCloud calendaring is based on CalDAV and completely compatible with Thunderbird, but Apple does not make it easy at all to find the secret CalDAV URL you need for each calendar. This solves that problem.

Requirements

  • A Mac desktop or laptop that has the iCloud calendars you want setup in the Apple Calendar app
  • The ability to open Terminal and paste a command
  • At least one of:
    • Some familiarity with any programming language so you can read the script and see it's safe
    • A friend with same
    • Blind trust in the kindness of a stranger on the Internet

Usage

Paste this in the terminal:

curl -s https://raw.githubusercontent.com/midnightmonster/icloud-calendar-urls/master/icloud_calendar_urls.rb | ruby

Or download icloud_calendar_urls.rb and run it with:

ruby icloud_calendar_urls.rb

You'll get a nice little report that looks something like this:

iCloud ([email protected])
================================

* Family 
  https://p12-caldav.icloud.com/586234577/calendars/b8e0edb4-1acd-445a-b20e-66a1bf964bb7/

* Work 
  https://p12-caldav.icloud.com/586234577/calendars/73C8CF6F-98A5-4D7F-9801-C987F5AC1529/

* A Really Old Calendar 
  https://p12-caldav.icloud.com/586234577/calendars/reallyold/

* Calendar Someone Shares With You (Sharer's Name)
  https://p12-caldav.icloud.com/586234577/calendars/b94b384039a761e70d632beb4373eb8d4cac0e06f4133f446b6bcc40b9e159a4/

Macs come with some version of ruby since quite a long time, and this short script uses only standard library modules that have been around for many years, so it should run on any modern-ish Mac. But I've only actually tried it on my own system, so your mileage may vary.

icloud-calendar-urls's People

Contributors

midnightmonster avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.