Filebot-node arbitrary api calls

Any questions? Need some help?
Post Reply
User avatar
devster
Posts: 148
Joined: 06 Jun 2017, 22:56

Filebot-node arbitrary api calls

Post by devster » 11 Feb 2018, 21:00

Is it possible to use filebot-node to run FileBot with arbitrary options and configurations?
If not, are the necessary adjustments trivial or would it mean rewriting it completely?

The objective would be to use it in a dockerized environment, running for example, NZBGet and Transmission in separate containers and executing api calls to FileBot for post-processing.
I only work in black and sometimes very, very dark grey. (Batman)

User avatar
rednoah
The Source
Posts: 14114
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Filebot-node arbitrary api calls

Post by rednoah » 12 Feb 2018, 08:03

Try the FileBot Node docker and see how it works. If you inspect the web requests from the web UI then you'll see exactly what is possible and what isn't. You can't call arbitrary FileBot commands thought, just the amc script.

I'd recommend having your upstream docker SSH into you downstream FileBot docker and call the commands directly via the shell.

FileBot Node is effectively nothing but a wrapper for certain FileBot CLI commands anyway at this point.
:idea: Please read the FAQ and How to Request Help.

User avatar
devster
Posts: 148
Joined: 06 Jun 2017, 22:56

Re: Filebot-node arbitrary api calls

Post by devster » 12 Feb 2018, 10:28

The AMC script is the main objective.

The main reason I prefer web requests is that it's much easier on docker.
Containers on the same network have names, for example if both NZBGet and Transmission are on the same docker network I can call the respective APIs from one container to the other through http://nzbget:6789/jsonrpc or http://transmission:9091/transmission/rpc, and with service discovery both the endpoints and the port/names can be announced via environment variables or other methods.

I'll try and test a few options see what works best.
I only work in black and sometimes very, very dark grey. (Batman)

Post Reply

Who is online

Users browsing this forum: No registered users and 6 guests