iCalendar query provider

Hello everyone, today I have a small Plug to share, which allows you to get calendar events from a few services. To support the widest number of use cases, it’s simply a new kind of query:ical-event. You can see the (surprisingly simple) code and detailed instructions on GitHub.

I already tested it with Nextcloud and Google Calendar, but I’m certain more are compatible. Let me know what you think :smile:

7 Likes

This is super cool!

I do find that I can use some of my google calendars, but not others. Can’t see a difference between them really, Did you ever see that happen?

I’m glad you like it. By “can’t use” do you mean that if you add the link the query doesn’t find the events, or that you can’t get the link to calendar?

Heyo!

Sorry, I mean that if I add the link, the query doesn’t find anything. This goes for my main calendar, and some of the new ones I made. But not all of them, some do work.

Very weird

while I haven’t the slightest idea what it means, here is one of the log traces from the server:

(also, my link does end in ../basic.ics)

Getting events from main-calendar failed with: ZodError: [

  {

    "code": "invalid_literal",

    "expected": "2.0",

    "path": [

      "version"

    ],

    "message": "Invalid literal value, expected \"2.0\""

  },

  {

    "code": "invalid_type",

    "expected": "string",

    "received": "undefined",

    "path": [

      "prodId"

    ],

    "message": "Required"

  }

]

    at Object.get error (data:application/javascript;base64,dmFyIExhPU9iamVjdC5j......UWcgYXMgcGx1Z307Cg==:1:28742)

    at t.parse (data:application/javascript;base64,dmFyIExhPU9iamVjdC5j......UWcgYXMgcGx1Z307Cg==:1:30010)

    at Ma (data:application/javascript;base64,dmFyIExhPU9iamVjdC5j......UWcgYXMgcGx1Z307Cg==:2:16649)

    at Ra (data:application/javascript;base64,dmFyIExhPU9iamVjdC5j......UWcgYXMgcGx1Z307Cg==:2:16837)

    at eventLoopTick (ext:core/01_core.js:175:7)

    at async data:application/javascript;base64,dmFyIExhPU9iamVjdC5j......UWcgYXMgcGx1Z307Cg==:1:10866 {

  issues: [

    {

      received: undefined,

      code: "invalid_literal",

      expected: "2.0",

      path: [ "version" ],

      message: 'Invalid literal value, expected "2.0"'

    },

    {

      code: "invalid_type",

      expected: "string",

      received: "undefined",

      path: [ "prodId" ],

      message: "Required"

    }

  ],

  addIssue: [Function (anonymous)],

  addIssues: [Function (anonymous)],

  name: "ZodError"

}