Coder Social home page Coder Social logo

nelsonsilva / meeting-room-dashboard Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mnixo/meeting-room-dashboard

0.0 2.0 0.0 957 KB

Basic LitElement web application that displays Google Calendar events.

Home Page: https://mnixo.github.io/meeting-room-dashboard/

License: MIT License

JavaScript 97.29% HTML 2.71%

meeting-room-dashboard's Introduction

Meeting Room Dashboard

Build Status

Try it here!

Settings configuration

{
  "auth": {
    "apiKey": "[your API key here]",
    "clientId": "[your client ID here]",
    "discoveryDocs": [
      "https://www.googleapis.com/discovery/v1/apis/calendar/v3/rest"
    ],
    "scope": "https://www.googleapis.com/auth/calendar.readonly"
  },
  "interval": 10000,
  "calendars": [
    {
      "label": "Room 1",
      "id": "[Room 1 calendar ID here]"
    },
    {
      "label": "Room 2",
      "id": "[Room 2 calendar ID here]"
    }
  ]
}

Configuring Google Calendar API credentials

  1. Access Google APIs console.
  2. Create a new project (if you don't have one already).
  3. In the Dashboard, click "ENABLE APIS AND SERVICES".
  4. Select and enable "Google Calendar API".
  5. In the Google Calendar API view, click "Credentials" on the left and then "Create credentials" > "API key". You will use this key in your settings.
  6. Click "RESTRICT KEY".
    1. Name? meeting-room-dashboard.
    2. API restrictions? Restrict key: Google Calendar API.
  7. In "OAuth consent screen":
    1. Application name? meeting-room-dashboard.
    2. Authorized domains? mnixo.github.io.
    3. Save.
  8. Click "Create credentials" > "OAuth client ID".
    1. Application type? Web application.
    2. Name? meeting-room-dashboard.
    3. Authorized JavaScript origins:
      1. https://mnixo.github.io (for the GitHub pages hosted one)
      2. http://localhost:8081 (to run locally)
    4. Authorized redirect URIs:
      1. https://mnixo.github.io (for the GitHub pages hosted one)
      2. http://localhost:8081 (to run locally)
    5. Save. You will use the provided client ID in your settings.

Getting the id of a calendar

  1. Go to your Google Calendar view.
  2. On the left you'll find "My calendars" and "Other calendars", if you have any. You can add more calendars by searching in the "Meet with..." section.
  3. Hovering a calendar, click the options icon and then "Settings".
  4. Look for "Calendar ID".

meeting-room-dashboard's People

Contributors

mnixo avatar

Watchers

James Cloos avatar  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.