Skip to content

Commit 56d9479

Browse files
committed
Initial commit
0 parents  commit 56d9479

File tree

9 files changed

+9642
-0
lines changed

9 files changed

+9642
-0
lines changed

.env.template

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
SONARR_API_KEY=
2+
SONARR_URL=
3+
RADARR_API_KEY=
4+
RADARR_URL=

.gitignore

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
node_modules
2+
repos
3+
*.env
4+
!.env.template

README.md

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Configarr
2+
3+
Configuration and synchronization tool for Sonarr and Radarr.
4+
5+
This will be a project similar to [Recyclarr](https://github.com/recyclarr/recyclarr) or [Notifiarr](https://notifiarr.wiki/) but support for additional specification and not only what [TrashGuides](https://trash-guides.info/) offer.
6+
7+
This is in very early development and trial stage to see if this is something we want to offer or not.
8+
9+
> :warning: **This is in very early development and trial stage to see if this is something we want to offer or not.**
10+
11+
Possible ideas:
12+
- keep support for syncing trash guides
13+
- I like the possible configuration in recyclarr but I miss some features
14+
- add support for local configuration to include
15+
- I don't want to fork a project to add custom things to it
16+
- Maybe an free GUI to sync your stuff
17+
- Add additional best configuration for different languages/countries like Germany

index.js

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
const { generateApi, generateTemplates } = require("swagger-typescript-api");
2+
const path = require("path");
3+
const fs = require("fs");
4+
5+
const PATH_TO_OUTPUT_DIR = path.resolve(process.cwd(), "./src/__generated__");
6+
7+
/* NOTE: all fields are optional expect one of `input`, `url`, `spec` */
8+
generateApi({
9+
name: "MySuperbApi.ts",
10+
output: path.resolve(process.cwd(), "./src/__generated__"),
11+
url: "https://raw.githubusercontent.com/Sonarr/Sonarr/develop/src/Sonarr.Api.V3/openapi.json",
12+
httpClientType: "fetch",
13+
})
14+
.then(({ files, configuration }) => {
15+
files.forEach(({ content, name }) => {
16+
fs.writeFile(path, content);
17+
});
18+
})
19+
.catch((e) => console.error(e));
20+
21+
// generateTemplates({
22+
// cleanOutput: false,
23+
// output: PATH_TO_OUTPUT_DIR,
24+
// httpClientType: "fetch",
25+
// modular: false,
26+
// silent: false,
27+
// rewrite: false,
28+
// });

0 commit comments

Comments
 (0)