From 0ec5ad9abd1865c7d5a8148c81e148c0d5dc4fae Mon Sep 17 00:00:00 2001 From: Aaron Bach Date: Thu, 7 May 2020 12:35:54 -0600 Subject: [PATCH 1/2] Add docs for auto-leveling AirVisual API calls --- source/_integrations/airvisual.markdown | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/source/_integrations/airvisual.markdown b/source/_integrations/airvisual.markdown index c9bbc8be9c80..8da79a1a4213 100644 --- a/source/_integrations/airvisual.markdown +++ b/source/_integrations/airvisual.markdown @@ -21,7 +21,13 @@ The Community API key is valid for 12 months after which it will expire. You mus
-The "Community" API key is limited to 10,000 calls per month. In order to leave a buffer, the `airvisual` platform queries the API every 10 minutes (600 seconds) by default. Note that each item in the `geographies` list will consume an API call with each update. +The "Community" API key is limited to 10,000 calls per month. In order to accommodate using the same API key for multiple geographies, the `airvisual` integration will automatically "re-level" the time between API calls so as to not overrun the call limit. + +For example: + +* One instance of the integration: API calls every 5 minutes +* Two instances of the integration: API calls every 10 minutes +* etc.
@@ -38,14 +44,6 @@ airvisual: api_key: YOUR_AIRVISUAL_API_KEY ``` -To enable the integration and gather from a Node/Pro unit, add the following lines to your `configuration.yaml` file: - -```yaml -airvisual: - ip_address: YOUR_NODE_PRO_IP_ADDRESS - password: YOUR_NODE_PRO_SAMBA_PASSWORD -``` - Note that an API key-based entry can be mixed with one or more Node/Pro-based entries (examples below). From d8b943809447e0f502e0b0df1af30eadd0c2803b Mon Sep 17 00:00:00 2001 From: Franck Nijhof Date: Mon, 25 May 2020 23:12:25 +0200 Subject: [PATCH 2/2] Markdown tweak --- source/_integrations/airvisual.markdown | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/_integrations/airvisual.markdown b/source/_integrations/airvisual.markdown index 8da79a1a4213..6864dd071d9c 100644 --- a/source/_integrations/airvisual.markdown +++ b/source/_integrations/airvisual.markdown @@ -25,9 +25,9 @@ The "Community" API key is limited to 10,000 calls per month. In order to accomm For example: -* One instance of the integration: API calls every 5 minutes -* Two instances of the integration: API calls every 10 minutes -* etc. +- One instance of the integration: API calls every 5 minutes +- Two instances of the integration: API calls every 10 minutes +- etc.