0.4.1 • Published 7 years ago

pimatic-google-calendar v0.4.1

Weekly downloads
16
License
GPL-2.0
Repository
github
Last release
7 years ago

pimatic-google-calendar

npm version dependencies status

A pimatic plugin to display and interact with your google calendar.

Setup

  1. Use this wizard to create a project in the Google Developers Console and automatically turn on the API. Click Continue, then Go to credentials .
  2. On the left of the page, select Credentials, then at the top of the page, select the OAuth consent screen tab. Select an Email address, enter a Product name if not already set, and click the Save button.
  3. Select the Credentials tab, click the Create credentials button and select OAuth client ID.
  4. Select the application type Other, enter the name "pimatic-google-calendar", and click the Create button.
  5. Go to your Pimatic webinterface and open the plugin page. Under Browse Plugins search for google-calendar and click install.
  6. Restart Pimatic.
  7. On the google-calendar settings page enter your client id and client secret from the Google Developers Console and click save.
  8. Restart Pimatic again.
  9. Open http(s)://pimatic-ip/google/calendar and sign in with your Google Account and allow read access to your calendar.
  10. Copy the code from the textbox
  11. Open http(s)://pimatic-ip/google/calendar?code="your copied code here"
  12. Restart Pimatic again.

Plugin Configuration

{
      "plugin": "google-calendar",
      "client_id": "",
      "client_secret": ""
}

The plugin has the following configuration properties:

PropertyDefaultTypeDescription
client_id-StringYour client id from the setup above
client_secret-StringYour client secrect from the setup above
access_token-Stringautomatically generated access token
refresh_token-Stringautomatically generated refresh token
debugfalseBooleanDebug mode. Writes debug messages to the pimatic log, if set to true

Device Configuration

The following device can be created:

CalendarDevice

{
		"id": "",
		"name": "",
		"class": "CalendarDevice"
}

The device has the following configuration properties:

PropertyDefaultTypeDescription
calendar_ids"primary"Arraycalendar ids used to fetch events
view"month"Stringdiffent views of the calendar eg. month, week, day or list
interval60000Numberinterval for fetching events
contentHeight430Numbercontent height in px
timeFormat"H:mm"Stringtime format, for more details see here
firstDayOfWeek"sunday"Stringfirst day of week (sunday or monday)
locale-Stringautomatically set locale from pimatic locale setting in config.json. Default pimatic locale is "en"

If you don't know your calendar ids, set the debug option of the plugin to true. All availble ids will be logged.

ListView DayView WeekView MonthView

ToDo

  • add support for rules
  • implement event colors
  • use sweetAlert2 for setup

History

See Release History.

License

Copyright (c) 2017, Thorsten Reichelt and contributors. All rights reserved.

License: GPL-2.0.

0.4.1

7 years ago

0.4.0

7 years ago

0.3.7

7 years ago

0.3.6

7 years ago

0.3.5

7 years ago

0.3.4

7 years ago

0.3.3

7 years ago

0.3.2

7 years ago

0.3.1

7 years ago

0.3.0

7 years ago

0.2.9

7 years ago

0.2.8

7 years ago

0.2.6

7 years ago

0.2.4

7 years ago

0.2.2

7 years ago

0.2.1

7 years ago

0.2.0

7 years ago