npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

node-red-contrib-google-oauth-calendar

v0.1.2

Published

Nodes to interact with Google Calendar API

Downloads

50

Readme

npm

Google Calendar API Nodes for Node-RED

This package contains nodes for accessing googles calendar API (using googleapis npm package).

Setup Google Calendar API connection

  1. Add one of the nodes you want to use to your flow.
  2. Double-click the new node so that configuration page opens.
  3. In the "Credentials"-combo box, select "Add new ... config" and click on the pen icon.
  4. After giving a readable name, you are asked to insert your api client information. To retrieve it, go to Google Developer Console select (or create) your project.
  5. Then go to "Credentials" and add a new OAuth Client-ID. img
  6. Select TVs and Limited Input devices img
  7. After creation you can see your Client-ID and Client-Key. You can copy those or hit OK and download them on the next screen. img img
  8. Open the downloaded json file, copy the full content, press the "Import credentials.json" button and paste the copied content in the opened dialog. You should now see data in the "clientId", "clientSecret" and the "redirectUri" textboxes.
  9. Now press the "Open Google Authentication" button and a new window of your browser will open. Follow the instructions and grant access to your project.
  10. At the end of the authentication process, a google generated code will appear, which you must copy and paste into the code-text-box within the node configuration.
  11. Press the "Enter Code"-button and you should see valid key data appear below.

List upcoming events node

This node lists the next n upcoming events in the given calendar, starting from now.

Parameter "Num events"

This is the maximum number of events that will be listed.

Parameter "Maximum timespan in hours"

This is the maximum timespan, within which events will be listed. If you e.g. put 24, you will only get events which start within the next 24 hours.

Parameter "Refresh interval"

The node has an inbuilt refresh mechanism which cyclically pulls the upcoming events. Interval is customizable, if set to zero, no pulling will happen.

List events on day node

This node can be used to list all events on one or multiple days. It also has an inbuilt refresh mechanism which cyclically pulls the upcoming events. Interval is customizable, if set to zero, no pulling will happen.

Parameter "Timezone offset"

Set this to your local timezone offset in reference to UTC (e.g. Berlin 2)

Parameter "Days offset start"

If set to zero (default), the earliest listet event starts at the current day at 0 AM. If set to greater than zero, the start of the interval in question starts earlier by the given number of days. For example, 1 would begin to list events from yesterday morning.

Parameter "Days offset end"

If set to zero (default), the latest listet event starts at the current day at 12 PM. If set to greater than zero, the start of the interval in question starts later by the given number of days. For example, 1 would end to list events at tomorrow night.

Parameter "Refresh interval"

The node has an inbuilt refresh mechanism which cyclically pulls the events. Interval is customizable, if set to zero, no pulling will happen.