Added interval to update status for the *arrs & Tautulli

Signed-off-by: Matt Bentley <mbentley@mbentley.net>
pull/556/head
Matt Bentley 2022-11-20 06:31:03 -05:00
parent df903a2c04
commit 812321d622
No known key found for this signature in database
GPG Key ID: 0DB8E02112B69FAC
6 changed files with 27 additions and 0 deletions

View File

@ -104,6 +104,7 @@ Two lines are needed in the config.yml :
```yaml
type: "Lidarr", "Prowlarr", "Radarr" or "Sonarr"
apikey: "<---insert-api-key-here--->"
checkInterval: 5000 # (Optional) Interval (in ms) for updating the status
```
The url must be the root url of Lidarr, Prowlarr, Radarr or Sonarr application.
@ -227,6 +228,7 @@ the "Web Interface" section of settings on the Tautulli web UI.
url: "http://192.168.0.151:8181"
type: "Tautulli"
apikey: "<---insert-api-key-here--->"
checkInterval: 5000 # (Optional) Interval (in ms) for updating the status
```
Because the service type and link don't necessarily have to match, you could

View File

@ -44,6 +44,11 @@ export default {
};
},
created: function () {
const checkInterval = parseInt(this.item.checkInterval, 10) || 0;
if (checkInterval > 0) {
setInterval(() => this.fetchConfig(), checkInterval);
}
this.fetchConfig();
},
methods: {

View File

@ -41,6 +41,11 @@ export default {
};
},
created: function () {
const checkInterval = parseInt(this.item.checkInterval, 10) || 0;
if (checkInterval > 0) {
setInterval(() => this.fetchConfig(), checkInterval);
}
this.fetchConfig();
},
methods: {

View File

@ -47,6 +47,11 @@ export default {
};
},
created: function () {
const checkInterval = parseInt(this.item.checkInterval, 10) || 0;
if (checkInterval > 0) {
setInterval(() => this.fetchConfig(), checkInterval);
}
this.fetchConfig();
},
computed: {

View File

@ -53,6 +53,11 @@ export default {
};
},
created: function () {
const checkInterval = parseInt(this.item.checkInterval, 10) || 0;
if (checkInterval > 0) {
setInterval(() => this.fetchConfig(), checkInterval);
}
this.fetchConfig();
},
methods: {

View File

@ -45,6 +45,11 @@ export default {
},
},
created() {
const checkInterval = parseInt(this.item.checkInterval, 10) || 0;
if (checkInterval > 0) {
setInterval(() => this.fetchStatus(), checkInterval);
}
this.fetchStatus();
},
methods: {