Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can I add GoogleCalender? #4

Closed
ghost opened this issue May 2, 2017 · 4 comments
Closed

How can I add GoogleCalender? #4

ghost opened this issue May 2, 2017 · 4 comments

Comments

@ghost
Copy link

ghost commented May 2, 2017

Hey,
How do I add google calendar?
I have a link to the calendar and enter this into the configuration.resw in raw form, but this does not work. Then I entered this here:

{
   "Url": "Https://calendar.google.com/calendar/ical/blub/bla/basic.ics ",
   "Username": "",
   "Password": "",
   "IsUsingCredentials": false
}

But that did not work also.

Sorry, am a noob

@IEvangelist
Copy link
Owner

IEvangelist commented May 2, 2017

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.

@IEvangelist IEvangelist mentioned this issue May 2, 2017
@IEvangelist IEvangelist changed the title How can i add GoogleCalender? How can I add GoogleCalender? May 2, 2017
@ghost
Copy link
Author

ghost commented May 2, 2017

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!

@IEvangelist
Copy link
Owner

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"
}]

@ghost
Copy link
Author

ghost commented May 2, 2017

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant