Skip to content

Commit

Permalink
Added custom service jellystat
Browse files Browse the repository at this point in the history
  • Loading branch information
TheWhale01 committed Apr 21, 2024
1 parent 63aa567 commit 4fd0c87
Show file tree
Hide file tree
Showing 4 changed files with 7,631 additions and 884 deletions.
19 changes: 18 additions & 1 deletion docs/customservices.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ within Homer:
- [PiAlert](#pialert)
- [Immich](#immich)
- [OpenHAB](#openhab)
- [Jellystat](#jellystat)

If you experiencing any issue, please have a look to the [troubleshooting](troubleshooting.md) page.

Expand Down Expand Up @@ -462,4 +463,20 @@ You need to set the type to OpenHAB, provide an api key and enable cors on OpenH
items: true # true will query the items API and report total items count. false will skip the call
```
To create an API token on OpenHAB, follow the [official documentation here](https://www.openhab.org/docs/configuration/apitokens.html).
To enable cors on OpenHAB, edit your services/runtime.cfg and uncomment or add this line: `org.openhab.cors:enable=true`
To enable cors on OpenHAB, edit your services/runtime.cfg and uncomment or add this line: `org.openhab.cors:enable=true`

## Jellystat

The Jellystat serice display the number of concurrent streams on your jellyfin server.
The Jellystat server must be running behind a reverse proxy to add some cors headers:
- Access-Control-Allow-Origin: ${your_domain}
- Access-Control-Allow-Headers: Authorization

```yaml
- name: "Jellystat"
logo: "assets/tools/jellystat.png"
url: "http://192.168.1.154:3000"
type: "Jellystat"
apikey: "<---insert-api-key-here--->"
```
You can create an API key in the dashboard of you jellystat server: settings/API Keys -> Add Key
Loading

0 comments on commit 4fd0c87

Please sign in to comment.