Git Product home page Git Product logo

downloadstation-cli's Introduction

Synology Download Station cli

Manage your Synology Download Station from your terminal

Installation

  1. npm install -g downloadstation-cli

Initial setup

Once installed, you need to configure your Synology. Run sds config and specify your URL, username and password. The URL is the one you use to connect to your DiskStation Manager.

Usage

Run sds --help to see available commands.

downloadstation-cli's People

Contributors

skydiver avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

downloadstation-cli's Issues

Non-starter

Hi there! Very interesting idea here. Unfortunately, it fails pretty early for
me:

The config file is saved at ~/.config/configstore/downloadstation-cli.json, but
the token is not generated at first.

if (!url || !username || !password || !token) {
  return null;
}

And unfortunately, this block starting on line 16 of config-store.js prevents the token from being generated in
subsequent calls, even though line 22 of init.js would do this (if not for the
entirely null config object returned from config-store).

An other note - the trailing slash should be stripped from the url when saving
the config - otherwise the request urls will have a double slash. I fixed this
by manually editing the config file.

Re: the token issue - no matter - I tried to push through by getting my session ID out of the browser
cookie. With this set properly in the config, I still got either:

"ECONNREFUSED" if using my quickconnect URL

or

"Hostname/IP does not match certificate's altnames: IP: {REDACTED} is not in the cert's list:" if using the local IP address as the url.

These last two errors may be the fault of my personal settings, but I wasn't able to figure it out.

I was able to successfully get a list of Download Station tasks by copying entry.cgi the request as curl from the network tab of my browser. There I noted that the copied request uses v2 of the Download Station API, and this cli appears to use V1. That's probably not a problem, but I found it curious.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.