{"id":15672857,"url":"https://github.com/simonbs/synology-diskstation","last_synced_at":"2025-08-16T11:08:46.054Z","repository":{"id":144743633,"uuid":"88516539","full_name":"simonbs/synology-diskstation","owner":"simonbs","description":"Turn on and off a Synology DiskStation","archived":false,"fork":false,"pushed_at":"2022-09-19T10:47:14.000Z","size":3,"stargazers_count":16,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-05-06T22:04:33.605Z","etag":null,"topics":["automation","diskstation","home","nas","smart","synology"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/simonbs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2017-04-17T14:32:21.000Z","updated_at":"2024-12-10T04:18:21.000Z","dependencies_parsed_at":"2023-04-26T18:00:45.544Z","dependency_job_id":null,"html_url":"https://github.com/simonbs/synology-diskstation","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/simonbs/synology-diskstation","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonbs%2Fsynology-diskstation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonbs%2Fsynology-diskstation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonbs%2Fsynology-diskstation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonbs%2Fsynology-diskstation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/simonbs","download_url":"https://codeload.github.com/simonbs/synology-diskstation/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonbs%2Fsynology-diskstation/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270702562,"owners_count":24630877,"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","status":"online","status_checked_at":"2025-08-16T02:00:11.002Z","response_time":91,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["automation","diskstation","home","nas","smart","synology"],"created_at":"2024-10-03T15:32:48.955Z","updated_at":"2025-08-16T11:08:46.030Z","avatar_url":"https://github.com/simonbs.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# synology-diskstation\n\nNode module for turning on and off a Synology DiskStation. Tested with a DS214play but is expected to work with all DiskStations.\n\n## Installation\n\nInstall using `npm install --save git+ssh://git@github.com/simonbs/synology-diskstation.git`\n\n## Usage\n\nCreate an instance of Synology by passing the IP address and port of your DiskStation as arguments.\n\n```javascript\nvar synology = new Synology('192.168.1.1', 5000)\n```\n\n### Turn on\n\nThe DiskStation can be turned on by sending a Wake on Lan request. The MAC address of the DiskStation is required in order to send a WOL request. The MAC address can be found in the [DS finder iOS application](https://itunes.apple.com/us/app/ds-finder/id429865523?mt=8e) and the [DS finder Android application](https://play.google.com/store/apps/details?id=com.synology.DSfinder).\n\n```javascript\nsynology.wol('00:11:22:AA:BB:CC', function(err) {\n  console.log(err)\n})\n```\n\n### Shutdown\n\nYou must be authorized with the DiskStation in order to shut it down. Pass your account name and password as arguments. On a successfull login, you'll obtain a `sid`, which is used to shutdown the DiskStation.\n \n```javascript\nsynology.login('myaccountname', 'mypassword', function(err, sid) {\n  if (err) {\n    console.log(err)\n    return\n  }\n  synology.shutdown(sid, function(err) {\n    console.log(err)\n  })\n})\n```\n\n### Checking if the DiskStation Is On\n\nInvoke the `isOn` function to check if the DiskStation is turned on.\n\n```javascript\nsynology.isOn(function(err, isOn) {\n  console.log(isOn)\n})\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimonbs%2Fsynology-diskstation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsimonbs%2Fsynology-diskstation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimonbs%2Fsynology-diskstation/lists"}