{"id":13614058,"url":"https://github.com/drkchiloll/cisco-tp-snapshots","last_synced_at":"2025-04-13T18:32:02.150Z","repository":{"id":85148127,"uuid":"157739156","full_name":"drkchiloll/cisco-tp-snapshots","owner":"drkchiloll","description":"Take Snapshots with your Telepresence Endpoint (SELFIE anyone)","archived":false,"fork":false,"pushed_at":"2018-11-16T18:01:28.000Z","size":11,"stargazers_count":16,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-08T14:42:29.800Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/drkchiloll.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-11-15T16:15:33.000Z","updated_at":"2022-02-22T06:39:14.000Z","dependencies_parsed_at":"2023-03-04T20:15:23.588Z","dependency_job_id":null,"html_url":"https://github.com/drkchiloll/cisco-tp-snapshots","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drkchiloll%2Fcisco-tp-snapshots","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drkchiloll%2Fcisco-tp-snapshots/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drkchiloll%2Fcisco-tp-snapshots/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drkchiloll%2Fcisco-tp-snapshots/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/drkchiloll","download_url":"https://codeload.github.com/drkchiloll/cisco-tp-snapshots/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248760444,"owners_count":21157360,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":[],"created_at":"2024-08-01T20:00:56.336Z","updated_at":"2025-04-13T18:32:01.862Z","avatar_url":"https://github.com/drkchiloll.png","language":"TypeScript","funding_links":[],"categories":["Code Samples"],"sub_categories":[],"readme":"[![published](https://static.production.devnetcloud.com/codeexchange/assets/images/devnet-published.svg)](https://developer.cisco.com/codeexchange/github/repo/drkchiloll/cisco-tp-snapshots)\n\n# Cisco Telepresence Endpoint Snapshots API\n\nTake snapshots from your Cisco Teleprsence endpoint when Remote Monitoring Option is installed.\n\n### Install\n\n```\nnpm i cisco-tp-snapshots\n```\n\n### Usage\n\n```javascript\n// If using Self-Signed CERT on Endpoints do this...\nprocess.env.NODE_TLS_REJECT_UNAUTHORIZED = \"0\";\n\nconst { TpEndpoint } = require('cisco-tp-snapshots');\n// If saving to local file system\nconst fs = require('fs');\n\nconst ce = new TpEndpoint({\n  host: 'ip/hostname',\n  username: 'user',\n  password: 'pass'\n});\n\n// Verify Endpoint has the Feature\nce.verifyTpEndpoint().then(enabled =\u003e {\n  if(enabled) {\n    return ce.getVideoInputs().then(inputs =\u003e {\n      // [{sourceId: '1', type: 'inputType \u003ccamera|hdmi|etc\u003e'}]\n      return ce.takeSnapshot(inputs[0].sourceId).then(img =\u003e {\n        // What to do with the Image ?\n        fs.writeFile('./myimg.jpeg', img, {encoding: 'base64'}, (e) =\u003e {})\n        // If you want to Add it to an HTML \u003cimg\u003e\n        // img = 'data:image/jpeg;base64,' + img\n        // \u003cimg src=img /\u003e\n      })\n    })\n  }\n})\n```\n### Contributing\n\nThis module is written using Typescript. Clone this Module to submit PRs or continue development as your own repository.\n\n```\nnpm install\n# To Build for PROD\nnpm run build\n# Development (watches all ts files in the src directory and builds on change\nnpm run dev\n```\n\n### License\nMIT","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrkchiloll%2Fcisco-tp-snapshots","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdrkchiloll%2Fcisco-tp-snapshots","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrkchiloll%2Fcisco-tp-snapshots/lists"}