mirror of https://github.com/bastienwirtz/homer
Added interval to update status for the *arrs & Tautulli
Signed-off-by: Matt Bentley <mbentley@mbentley.net>pull/556/head
parent
6031d57ccb
commit
1db533688e
|
@ -260,6 +260,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, Readarr, Radarr or Sonarr application.
|
||||
|
@ -599,6 +600,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
|
||||
|
|
|
@ -48,6 +48,11 @@ export default {
|
|||
};
|
||||
},
|
||||
created: function () {
|
||||
const checkInterval = parseInt(this.item.checkInterval, 10) || 0;
|
||||
if (checkInterval > 0) {
|
||||
setInterval(() => this.fetchConfig(), checkInterval);
|
||||
}
|
||||
|
||||
this.fetchConfig();
|
||||
},
|
||||
methods: {
|
||||
|
|
|
@ -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: {
|
||||
|
|
|
@ -56,6 +56,11 @@ export default {
|
|||
},
|
||||
},
|
||||
created: function () {
|
||||
const checkInterval = parseInt(this.item.checkInterval, 10) || 0;
|
||||
if (checkInterval > 0) {
|
||||
setInterval(() => this.fetchConfig(), checkInterval);
|
||||
}
|
||||
|
||||
this.fetchConfig();
|
||||
},
|
||||
methods: {
|
||||
|
|
|
@ -57,6 +57,11 @@ export default {
|
|||
},
|
||||
},
|
||||
created: function () {
|
||||
const checkInterval = parseInt(this.item.checkInterval, 10) || 0;
|
||||
if (checkInterval > 0) {
|
||||
setInterval(() => this.fetchConfig(), checkInterval);
|
||||
}
|
||||
|
||||
this.fetchConfig();
|
||||
},
|
||||
methods: {
|
||||
|
|
|
@ -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: {
|
||||
|
|
Loading…
Reference in New Issue