Coder Social home page Coder Social logo

How can I add GoogleCalender? about mirror HOT 4 CLOSED

 avatar commented on August 11, 2024
How can I add GoogleCalender?

from mirror.

Comments (4)

IEvangelist avatar IEvangelist commented on August 11, 2024

Hi @Gerrus,

I'm not sure, have you tried applying credentials? Here are some things to try:

  • Try providing a Username and corresponding Password, omit the IsUsingCredentials
  • Open your favorite browser and paste the Url in, if it loads there it should also work in the Mirror app

Ironically, you're not the only one experiencing this issue. #5 was reported a few hours after yours. I'll try setting up a google calendar myself and see what happens. Also, in attempting to put https://calendar.google.com/calendar/ical/blub/bla/basic.ics I end up with the following:

image

However, I would have expected JSON - again, I assume you need to provide credentials. Please report back your findings.

from mirror.

 avatar commented on August 11, 2024

Hello IEvangelist,

The problem is not the link to the calendar. The link from above is wrong with intent.
Here is the exception:

Cannot deserialize the current JSON object (e.g. {"name":"value"}) into type 'System.Collections.Generic.List`1[Mirror.Core.CalendarConfig]' because the type requires a JSON array (e.g. [1,2,3]) to deserialize correctly.
To fix this error either change the JSON to a JSON array (e.g. [1,2,3]) or change the deserialized type so that it is a normal .NET type (e.g. not a primitive type like integer, not a collection type like an array or List) that can be deserialized from a JSON object. JsonObjectAttribute can also be added to the type to force it to deserialize from a JSON object.
Path 'Url', line 2, position 6.

And here is my real JSON string:

{
"Url":"https://calendar.google.com/calendar/ical/**my - creds**/basic.ics",
"Username":"",
"Password":"",
}

The JSON string I have so in the Configuration.resw under Calendars purely copied. Is this perhaps wrong?

Thank you!

from mirror.

IEvangelist avatar IEvangelist commented on August 11, 2024

Hi @Gerrus,

Ah, yes... it needs to copied over as an array. For example:

[{
"Url":"https://calendar.google.com/calendar/ical/**my - creds**/basic.ics",
"Username":"",
"Password":"",
}]

The intent was to aggregate calendars into one, and sort by date. Ideally, if you have other calendars you could add multiple configs within the array.

[{
"Url":"https://calendar.google.com/calendar/ical/**my - creds**/basic.ics",
"Username":"",
"Password":"",
},
{
 "Url":"https://some other path/basic.ics"
}]

from mirror.

 avatar commented on August 11, 2024

Thank you so much! Now everything works very good!
Now I will try to make my own mirror. Your project is an example for me
Thanks again!

from mirror.

Related Issues (8)

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.