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
df903a2c04
commit
812321d622
|
@ -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
|
||||
|
|
|
@ -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: {
|
||||
|
|
|
@ -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: {
|
||||
|
|
|
@ -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: {
|
||||
|
|
|
@ -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: {
|
||||
|
|
|
@ -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