{"id":40294782,"url":"https://github.com/pinpong/mygekko-client-library","last_synced_at":"2026-01-20T05:04:39.545Z","repository":{"id":205321841,"uuid":"689464241","full_name":"pinpong/mygekko-client-library","owner":"pinpong","description":"MyGekko javascript client library","archived":false,"fork":false,"pushed_at":"2024-07-20T16:02:58.000Z","size":348,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-08T03:39:13.114Z","etag":null,"topics":["api","client","ekon","mygekko","nova","slide2","smarthome"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pinpong.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-09-09T22:23:04.000Z","updated_at":"2024-07-20T16:03:02.000Z","dependencies_parsed_at":null,"dependency_job_id":"587841f6-d631-4dd9-8a34-4225c0877bba","html_url":"https://github.com/pinpong/mygekko-client-library","commit_stats":null,"previous_names":["pinpong/mygekko-client-library"],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/pinpong/mygekko-client-library","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pinpong%2Fmygekko-client-library","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pinpong%2Fmygekko-client-library/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pinpong%2Fmygekko-client-library/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pinpong%2Fmygekko-client-library/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pinpong","download_url":"https://codeload.github.com/pinpong/mygekko-client-library/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pinpong%2Fmygekko-client-library/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28596087,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-20T02:08:49.799Z","status":"ssl_error","status_checked_at":"2026-01-20T02:08:44.148Z","response_time":117,"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":["api","client","ekon","mygekko","nova","slide2","smarthome"],"created_at":"2026-01-20T05:04:38.812Z","updated_at":"2026-01-20T05:04:39.535Z","avatar_url":"https://github.com/pinpong.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"![NPM](https://img.shields.io/npm/l/mygekko-client-library)\n![npm](https://img.shields.io/npm/v/mygekko-client-library)\n![npm](https://img.shields.io/npm/dy/mygekko-client-library)\n![GitHub issues](https://img.shields.io/github/issues/pinpong/mygekko-client-library)\n![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/pinpong/mygekko-client-library/deploy_release.yml?label=lint)\n![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/pinpong/mygekko-client-library/deploy_release.yml?label=release%20build)\n![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/pinpong/mygekko-client-library/deploy_docs.yml?label=release%20docs)\n\n## Documentation\n\nFor more detailed documentation see [docs](https://pinpong.github.io/mygekko-client-library)\n\n## Installation\n\n```sh\nyarn add mygekko-client-library\n```\n\n### Using the client library\n\nThis is a very simple example. This creates a remote client and retrieves the details of all blinds:\n\n```js\nimport { RemoteClient } from 'mygekko-client-library';\n\nconst client = new RemoteClient({\n  username: '\u003cyour-mygekko-user-email\u003e',\n  gekkoId: '\u003cyour-gekko-id\u003e',\n  apiKey: '\u003cyour-mygekko-api-remote-key\u003e',\n});\n\ntry {\n  const blinds = client.blinds.getItems();\n  console.log(blinds);\n  await client.blinds.setPosition('item0', 75);\n  const blindsTrends = client.blinds.getTrends(\n    '2023-01-01T00:00:00+01:00',\n    '2023-01-06T00:00:00+01:00',\n    500\n  );\n  console.log(blindsTrends);\n} catch (e) {\n  console.log(e);\n}\n```\n\nAnd this creates a local client and retrieves the details of all blinds:\n\n```js\nimport { LocalClient } from 'mygekko-client-library';\n\nconst client = new LocalClient({\n  ip: '\u003cyour-mygekko-ip-address\u003e',\n  username: '\u003cyour-mygekko-username\u003e',\n  password: '\u003cyour-mygekko-password\u003e',\n});\n\ntry {\n  const blinds = client.blinds.getItems();\n  console.log(blinds);\n  await client.blinds.setPosition('item0', 75);\n  const blindsTrends = client.blinds.getTrends(\n    '2023-01-01T00:00:00+01:00',\n    '2023-01-06T00:00:00+01:00',\n    500\n  );\n  console.log(blindsTrends);\n} catch (e) {\n  console.log(e);\n}\n```\n\n## Contributing\n\nPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.\n\nPlease make sure to update tests.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpinpong%2Fmygekko-client-library","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpinpong%2Fmygekko-client-library","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpinpong%2Fmygekko-client-library/lists"}