Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
BlackDark committed Mar 23, 2024
0 parents commit 56d9479
Show file tree
Hide file tree
Showing 9 changed files with 9,642 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .env.template
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
SONARR_API_KEY=
SONARR_URL=
RADARR_API_KEY=
RADARR_URL=
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
node_modules
repos
*.env
!.env.template
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Configarr

Configuration and synchronization tool for Sonarr and Radarr.

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.

This is in very early development and trial stage to see if this is something we want to offer or not.

> :warning: **This is in very early development and trial stage to see if this is something we want to offer or not.**
Possible ideas:
- keep support for syncing trash guides
- I like the possible configuration in recyclarr but I miss some features
- add support for local configuration to include
- I don't want to fork a project to add custom things to it
- Maybe an free GUI to sync your stuff
- Add additional best configuration for different languages/countries like Germany
28 changes: 28 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
const { generateApi, generateTemplates } = require("swagger-typescript-api");
const path = require("path");
const fs = require("fs");

const PATH_TO_OUTPUT_DIR = path.resolve(process.cwd(), "./src/__generated__");

/* NOTE: all fields are optional expect one of `input`, `url`, `spec` */
generateApi({
name: "MySuperbApi.ts",
output: path.resolve(process.cwd(), "./src/__generated__"),
url: "https://raw.githubusercontent.com/Sonarr/Sonarr/develop/src/Sonarr.Api.V3/openapi.json",
httpClientType: "fetch",
})
.then(({ files, configuration }) => {
files.forEach(({ content, name }) => {
fs.writeFile(path, content);
});
})
.catch((e) => console.error(e));

// generateTemplates({
// cleanOutput: false,
// output: PATH_TO_OUTPUT_DIR,
// httpClientType: "fetch",
// modular: false,
// silent: false,
// rewrite: false,
// });
Loading

0 comments on commit 56d9479

Please sign in to comment.