Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pwntus/coverage-test-service
Node.js backend service listening over MQTT and plotting into Google Sheets
https://github.com/pwntus/coverage-test-service
Last synced: 5 days ago
JSON representation
Node.js backend service listening over MQTT and plotting into Google Sheets
- Host: GitHub
- URL: https://github.com/pwntus/coverage-test-service
- Owner: Pwntus
- Created: 2017-06-28T14:23:58.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-07-17T14:57:55.000Z (over 7 years ago)
- Last Synced: 2024-12-15T19:05:36.401Z (7 days ago)
- Language: JavaScript
- Size: 22.5 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Coverage Test Service
> Node.js backend service listening over MQTT and plotting into Google Sheets
## Prepare a New Google Sheet To Be Used
1. Go to the [Google Developers Console](https://console.developers.google.com/project)
2. Select your project or create a new one (and select it)
3. Enable the Drive API for your project
* In the sidebar on the left, click **Library**
* Search for "drive"
* Click on "Google Drive API"
* Click the blue "Enable API" button4. Create a service account key for your project
* In the sidebar on the left, click **Credentials**
* Click the "Create credentials" button
* Select the "Service account key" option
* Select "New service account" in the dropdown
* Give it a name and select **Project > Editor** as the role
* Click the "Create" button
* Your JSON key file is generated and downloaded to your machine (**only copy!**)
* Note down your service account's email (available in the JSON key file)5. Share the doc with your service account using the email noted above
6. Copy the contents of the JSON key file into [client_secret.json](https://github.com/Pwntus/coverage-test-service/blob/master/client_secret.json).## Installation
Install Node dependencies:
```
npm install
```## Run Service
```
node client.js -u -p -t 'thing-update//' -s ''
```You can also edit the `start` script in [package.json](https://github.com/Pwntus/coverage-test-service/blob/master/package.json) and run the service by:
```
npm run start
```### Parameters
**-u** : MIC username
**-p** : MIC password
**-t** : MQTT topic
**-s** : Google Sheet ID