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

iobroker.google-spreadsheet

v0.4.0

Published

Adapter for io broker to work with google spreadsheets

Downloads

173

Readme

Logo

ioBroker.google-spreadsheet

NPM version Downloads Number of Installations Current version in stable repository

NPM

Tests: Test and Release

google-spreadsheet adapter for ioBroker

This adapter can be used to automatically interact with google spreadsheets.

Features

Usage

Setup

Enable API Access

  1. Visit the Google Cloud Console.

  2. Create or select an existing project that you wish to use with the API.

  3. Enable the Google Spreadsheet API for your project.

Create a Service Account

For the project you selected in the previous step, create a new service account in Google Cloud IAM by following these steps:

  1. Navigate to the IAM & Admin page in the Google Cloud Console.

  2. Click on "Service accounts" and then "Create Service Account."

  3. Provide a name for the service account and select the role "Project" > "Editor."

  4. Click "Continue" to proceed to the next step.

  5. On the "Keys" tab, click "Create Key" and choose the format as "JSON." Then click "Continue."

  6. Your private key will be generated and automatically downloaded. Keep this file secure as you will need it later.

Grant Access to the Spreadsheet

Open the spreadsheet you want to interact with and share it with the email address of your newly created service account:

  1. Open the desired spreadsheet in Google Sheets.

  2. Click "Share" in the upper right corner.

  3. Enter the email address of the service account in the "Add people" field and grant it the necessary permissions (e.g., "Edit" or "View").

  4. Click "Send" to complete the sharing process.

Configure the Adapter Instance

Add the following information to the configuration of your adapter instance in ioBroker:

  • Spreadsheet ID - You can find the ID in the URL of your spreadsheet.
  • Service Account - The email address of the service account you created.
  • Private Key - Open the downloaded JSON file, and locate the private key within the file. Copy only the part starting with "-----BEGIN PRIVATE KEY-----."

Settings

Find the Spreadsheet ID in the URL

To locate the "Spreadsheet ID" in the URL of your Google Sheets document, follow these steps:

  1. When you open your Google Sheets document in a web browser, the URL in the address bar will look something like this:
https://docs.google.com/spreadsheets/d/SPREADSHEET_ID/edit
  1. The "SPREADSHEET_ID" is the long string of characters and numbers between the "/d/" and "/edit" parts of the URL.

Blockly

Use the available blocks to automatically interact with your spreadsheet.

Blockly

Troubleshooting

Error while sending data to Google Spreadsheet:Error: error:0909006C:PEM routines:get_name:no start line

When copying the private key into the configuration, make sure there are no \n. If there are \n in the key, please replace the with normal line breaks

Error while sending data to Google Spreadsheet:Error: The caller does not have permission

Make sure the Service Account has adequate permissions to write to the spreadsheet. Refer to the "Grant Access to the Spreadsheet" section above.

Changelog

0.4.0

  • (Thomas Pohl) The privateKey is saved now encrypted
  • (Thomas Pohl) Support for node.js 22

0.3.1

  • (Thomas Pohl) Fixed reading cells and added error handling

0.3.0

  • (Thomas Pohl) Added writing of single cells
  • (Thomas Pohl) Added reading of single cells
  • (Thomas Pohl) Documentation for all features

0.2.0

  • (Thomas Pohl) Parsing of private keys is now more robust

0.1.0

  • (Thomas Pohl) Preparation for first stable release
  • (Thomas Pohl) Improve logging + Code cleanup

License

Copyright (c) 2024 Thomas Pohl

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.