Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shutdown the DiskStation via Node #30

Open
pdiegmann opened this issue Jan 17, 2017 · 3 comments
Open

Shutdown the DiskStation via Node #30

pdiegmann opened this issue Jan 17, 2017 · 3 comments
Labels

Comments

@pdiegmann
Copy link

pdiegmann commented Jan 17, 2017

Hi,

I'm looking for a way to shutdown the disk station as found here: https://github.com/kwent/syno/blob/master/definitions/DSM/6.0/7321/SYNO.Core.System.lib#L1
How can I invoke this method? syno.dsm.shutdown() does not work and the cli doesn't recognize syno dsm shutdown either:

node_modules/syno/bin/syno.js:55
return syno[api][cmd](payload, function(err, data) {
^

TypeError: syno[api][cmd] is not a function
at execute (node_modules/syno/bin/syno.js:55:24)
at Command. (node_modules/syno/bin/syno.js:256:10)
at Command.listener (node_modules/syno/node_modules/commander/index.js:301:8)
at emitTwo (events.js:106:13)
at Command.emit (events.js:191:7)
at Command.parseArgs (node_modules/syno/node_modules/commander/index.js:615:12)
at Command.parse (node_modules/syno/node_modules/commander/index.js:458:21)
at Object. (node_modules/syno/bin/syno.js:347:9)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)

Any help is greatly appreciated.

@kwent
Copy link
Owner

kwent commented Jan 17, 2017

Hi @pdiegmann,

You are right for some reason, their last API version does not provide reboot/shutdown methods (https://github.com/kwent/syno/blob/master/definitions/6.x/_full.json#L14964)... I tried in the UI and they are using API version 1.

The system is configured to use the last API version (3 in our case), that's why those methods are not available.

I'll will have to revisit this logic and release a new version of this package to fix this issue.

I'll keep you updated.

@kwent kwent added the bug label Aug 22, 2018
@autofrank
Copy link

Hi @kwent

Any update on this ?

Thanks

@instalator
Copy link

#52

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants