{"id":16156562,"url":"https://github.com/nioc/netatmo-nodejs-api","last_synced_at":"2026-03-07T20:04:37.123Z","repository":{"id":57310248,"uuid":"389412283","full_name":"nioc/netatmo-nodejs-api","owner":"nioc","description":"Node.js wrapper for Netatmo API","archived":false,"fork":false,"pushed_at":"2025-02-05T22:13:46.000Z","size":499,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-26T11:36:14.712Z","etag":null,"topics":["netatmo","netatmo-api","nodejs","security-api","weather","weather-station"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nioc.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2021-07-25T18:11:32.000Z","updated_at":"2025-02-20T17:22:23.000Z","dependencies_parsed_at":"2025-04-30T20:07:33.665Z","dependency_job_id":"136e5f1e-6df8-4452-8afc-c4f9de797e27","html_url":"https://github.com/nioc/netatmo-nodejs-api","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/nioc/netatmo-nodejs-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nioc%2Fnetatmo-nodejs-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nioc%2Fnetatmo-nodejs-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nioc%2Fnetatmo-nodejs-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nioc%2Fnetatmo-nodejs-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nioc","download_url":"https://codeload.github.com/nioc/netatmo-nodejs-api/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nioc%2Fnetatmo-nodejs-api/sbom","scorecard":{"id":688635,"data":{"date":"2025-08-11","repo":{"name":"github.com/nioc/netatmo-nodejs-api","commit":"bbdea983c30ddb9722b936e960d062d5500805ee"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.4,"checks":[{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Code-Review","score":0,"reason":"Found 0/23 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/commit.yml:1","Warn: no topLevel permission defined: .github/workflows/publish.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Pinned-Dependencies","score":3,"reason":"dependency not pinned by hash detected -- score normalized to 3","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/commit.yml:20: update your workflow using https://app.stepsecurity.io/secureworkflow/nioc/netatmo-nodejs-api/commit.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/commit.yml:26: update your workflow using https://app.stepsecurity.io/secureworkflow/nioc/netatmo-nodejs-api/commit.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/commit.yml:45: update your workflow using https://app.stepsecurity.io/secureworkflow/nioc/netatmo-nodejs-api/commit.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/commit.yml:52: update your workflow using https://app.stepsecurity.io/secureworkflow/nioc/netatmo-nodejs-api/commit.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/publish.yml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/nioc/netatmo-nodejs-api/publish.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/publish.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/nioc/netatmo-nodejs-api/publish.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/publish.yml:36: update your workflow using https://app.stepsecurity.io/secureworkflow/nioc/netatmo-nodejs-api/publish.yml/master?enable=pin","Info:   0 out of   4 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   3 third-party GitHubAction dependencies pinned","Info:   2 out of   2 npmCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE.md:0","Info: FSF or OSI recognized license: GNU Lesser General Public License v3.0: LICENSE.md:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Packaging","score":10,"reason":"packaging workflow detected","details":["Info: Project packages its releases by way of GitHub Actions.: .github/workflows/publish.yml:10"],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":3,"reason":"7 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-968p-4wvh-cqc8","Warn: Project is vulnerable to: GHSA-xffm-g5w8-qvg7","Warn: Project is vulnerable to: GHSA-jr5f-v2jv-69x6","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-fjxv-7rqg-78g4","Warn: Project is vulnerable to: GHSA-p8p7-x288-28g6","Warn: Project is vulnerable to: GHSA-72xf-g2v4-qvf3"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-22T01:42:02.789Z","repository_id":57310248,"created_at":"2025-08-22T01:42:02.789Z","updated_at":"2025-08-22T01:42:02.789Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30229589,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-07T19:01:10.287Z","status":"ssl_error","status_checked_at":"2026-03-07T18:59:58.103Z","response_time":53,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["netatmo","netatmo-api","nodejs","security-api","weather","weather-station"],"created_at":"2024-10-10T01:45:17.199Z","updated_at":"2026-03-07T20:04:37.100Z","avatar_url":"https://github.com/nioc.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# netatmo-nodejs-api\n\n[![license: LGPLv3](https://img.shields.io/badge/license-LGPL--3.0--or--later-blue.svg)](https://www.gnu.org/licenses/lgpl-3.0)\n[![Build Status](https://img.shields.io/github/actions/workflow/status/nioc/netatmo-nodejs-api/commit.yml?label=github%20build)](https://github.com/nioc/netatmo-nodejs-api/actions/workflows/commit.yml)\n[![Coverage Status](https://coveralls.io/repos/github/nioc/netatmo-nodejs-api/badge.svg?branch=master)](https://coveralls.io/github/nioc/netatmo-nodejs-api?branch=master)\n[![GitHub release](https://img.shields.io/github/release/nioc/netatmo-nodejs-api.svg)](https://github.com/nioc/netatmo-nodejs-api/releases/latest)\n[![npm](https://img.shields.io/npm/dt/netatmo-nodejs-api)](https://www.npmjs.com/package/netatmo-nodejs-api)\n\nNode.js API wrapper for Netatmo API.\n\n## Key features\n-    Authentication with all Netatmo provided methods:\n     -    Authorization code grant type\n     -    Client credentials grant type\n     -    Refresh token\n-    Security API (get homes, get events)\n-    Weather API (get public data, get stations data, get measure)\n\n## Installation\n\n``` bash\nnpm install netatmo-nodejs-api\n```\n\n## Usage\n\nYou need to [create an application](https://dev.netatmo.com/apps/createanapp#form)\n\n### ~~Basic example with Client Credentials grant type~~\n\nThis method has been deprecated, see [Natatmo documentation](https://dev.netatmo.com/apidocumentation/oauth#client-credential)\n\n### Basic example with Refresh Token grant type\n\nYou need to generate a token on [Netatmo website](https://dev.netatmo.com/apps/):\n-    choose scopes\n-    click `generate token` button and accept the condition\n-    copy both `Access Token` and `Refresh Token` and use it in the following code\n\n```js\nconst { NetatmoClient, SCOPE_BASIC_CAMERA } = require('netatmo-nodejs-api')\n\nasync function main () {\n  // you need to set your own information\n  const clientId = ''\n  const clientSecret = ''\n  let accessToken = ''\n  let refreshToken = ''\n  let expiresInTimestamp = 0\n\n  try {\n    // create client\n    const client = new NetatmoClient(clientId, clientSecret, SCOPE_BASIC_CAMERA, { timeout: 1000 })\n\n    // authenticate\n    if (!client.checkAndSetAccesToken(accessToken, expiresInTimestamp)) {\n      if (refreshToken) {\n        // use previous refresh token\n        ({ accessToken, refreshToken, expiresInTimestamp } = await client.authenticateByRefreshToken(refreshToken))\n        // you should store accessToken, refreshToken, expiresInTimestamp for further request\n        console.log('update the code with following 3 lines:')\n        console.log(`  let accessToken = '${accessToken}'`)\n        console.log(`  let refreshToken = '${refreshToken}'`)\n        console.log(`  let expiresInTimestamp = ${expiresInTimestamp}`)\n      } else {\n        throw new Error('Refresh token is missing')\n      }\n    }\n\n    // get data\n    const homes = await client.getHomes()\n    console.log(homes)\n  } catch (error) {\n    console.log(error)\n  }\n}\n\nmain()\n```\n\n### Authenticate wrapper (try access token or refresh token)\n\nYou can use the `authenticate` method which wrap 2 authentication methods.\n\n```js\nconst { NetatmoClient, SCOPE_BASIC_CAMERA } = require('netatmo-nodejs-api')\n\nasync function main () {\n  // you need to set your own information\n  const clientId = ''\n  const clientSecret = ''\n  let refreshToken = ''\n  let accessToken = ''\n  let expiresInTimestamp = 0\n\n  try {\n    // create client\n    const client = new NetatmoClient(clientId, clientSecret, SCOPE_BASIC_CAMERA, { timeout: 1000 });\n\n    // authenticate\n    ({ accessToken, refreshToken, expiresInTimestamp } = await client.authenticate(accessToken, refreshToken, expiresInTimestamp))\n    // you should store accessToken, refreshToken, expiresInTimestamp for further request\n    console.log('update the code with following:', refreshToken)\n    console.log(`  let accessToken = '${accessToken}'`)\n    console.log(`  let refreshToken = '${refreshToken}'`)\n    console.log(`  let expiresInTimestamp = ${expiresInTimestamp}`)\n\n    // get data\n    const homes = await client.getHomes()\n    console.log(homes)\n  } catch (error) {\n    console.log(error)\n  }\n}\n\nmain()\n```\n\n## About types\n\nFrom version 2.0, this library is written in TypeScript. Response typing comes from the Netatmo Swagger, transformed into a TS interface by SwaggerEditor.\nErrors may be present, so don't hesitate to [create an issue](https://github.com/nioc/netatmo-nodejs-api/issues/new) for fix.\n\n## Versioning\n\nnetatmo-nodejs-api is maintained under the [semantic versioning](https://semver.org/) guidelines.\n\nSee the [releases](https://github.com/nioc/netatmo-nodejs-api/releases) on this repository for changelog.\n\n## License\n\nThis project is licensed under the GNU Lesser General Public License v3.0 - see the [LICENSE](LICENSE.md) file for details\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnioc%2Fnetatmo-nodejs-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnioc%2Fnetatmo-nodejs-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnioc%2Fnetatmo-nodejs-api/lists"}