From d989a72758d0d4c63749115c90084ef1ce985fb7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20H=C3=B8yer=20Iversen?= Date: Sat, 2 Feb 2019 09:32:21 +0100 Subject: [PATCH 1/4] Create norway_air.markdown --- source/_components/norway_air.markdown | 47 ++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 source/_components/norway_air.markdown diff --git a/source/_components/norway_air.markdown b/source/_components/norway_air.markdown new file mode 100644 index 000000000000..1ccee3b441f4 --- /dev/null +++ b/source/_components/norway_air.markdown @@ -0,0 +1,47 @@ +--- +layout: page +title: "Norway Air Quality" +description: "Display the current status of Norway air quality." +date: 2019-02-02 18:00 +sidebar: true +comments: false +sharing: true +footer: true +logo: metno.png +ha_category: Health +ha_iot_class: "Cloud Polling" +ha_release: 0.88 +--- + + +The `norway_air` component [queries](https://luftkvalitet.miljostatus.no/) the Noreay air quality [data feed](https://api.met.no/weatherapi/airqualityforecast/0.1/documentation) provided by the Norwegian Meteorological Institute. + +To add air quality sensor to your installation, add the following to your `configuration.yaml` file: + +```yaml +# Example configuration.yaml entry +sensor: + - platform: norway_air +``` + +{% configuration %} +name: + description: Additional name for the sensor. + required: false + type: string + default: Air quality +forecast: + description: If you want to get forecast data instead of the current data, set this to the number of hours that you want to look into the future. + required: false + type: integer +latitude: + description: Manually specify latitude. By default the value will be taken from the Home Assistant configuration. + required: false + type: number + default: Provided by Home Assistant configuration +longitude: + description: Manually specify longitude. By default the value will be taken from the Home Assistant configuration. + required: false + type: number + default: Provided by Home Assistant configuration +{% endconfiguration %} From 8740b3c152ec5d8afb8a0c0e7c8f9bdc5e554bb3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20H=C3=B8yer=20Iversen?= Date: Sat, 2 Feb 2019 13:24:14 +0100 Subject: [PATCH 2/4] Update norway_air.markdown --- source/_components/norway_air.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/_components/norway_air.markdown b/source/_components/norway_air.markdown index 1ccee3b441f4..f5a5fa0e7a99 100644 --- a/source/_components/norway_air.markdown +++ b/source/_components/norway_air.markdown @@ -14,7 +14,7 @@ ha_release: 0.88 --- -The `norway_air` component [queries](https://luftkvalitet.miljostatus.no/) the Noreay air quality [data feed](https://api.met.no/weatherapi/airqualityforecast/0.1/documentation) provided by the Norwegian Meteorological Institute. +The `norway_air` component [queries](https://luftkvalitet.miljostatus.no/) the Norway air quality [data feed](https://api.met.no/weatherapi/airqualityforecast/0.1/documentation) provided by the Norwegian Meteorological Institute. To add air quality sensor to your installation, add the following to your `configuration.yaml` file: From ac87b576748d9d1eb451e6dc2374fc7db2fbb77f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20H=C3=B8yer=20Iversen?= Date: Tue, 5 Feb 2019 18:37:48 +0100 Subject: [PATCH 3/4] Update norway_air.markdown --- source/_components/norway_air.markdown | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/_components/norway_air.markdown b/source/_components/norway_air.markdown index f5a5fa0e7a99..aee0744c8df0 100644 --- a/source/_components/norway_air.markdown +++ b/source/_components/norway_air.markdown @@ -20,7 +20,7 @@ To add air quality sensor to your installation, add the following to your `confi ```yaml # Example configuration.yaml entry -sensor: +air_quality: - platform: norway_air ``` @@ -35,12 +35,12 @@ forecast: required: false type: integer latitude: - description: Manually specify latitude. By default the value will be taken from the Home Assistant configuration. + description: Manually specify latitude. required: false type: number default: Provided by Home Assistant configuration longitude: - description: Manually specify longitude. By default the value will be taken from the Home Assistant configuration. + description: Manually specify longitude. required: false type: number default: Provided by Home Assistant configuration From d99c46547e67647c5867e25faafa3495056b9335 Mon Sep 17 00:00:00 2001 From: Franck Nijhof Date: Wed, 13 Feb 2019 21:04:22 +0100 Subject: [PATCH 4/4] :pencil2: Tweak --- source/_components/norway_air.markdown | 1 - 1 file changed, 1 deletion(-) diff --git a/source/_components/norway_air.markdown b/source/_components/norway_air.markdown index aee0744c8df0..69ffa681ee0c 100644 --- a/source/_components/norway_air.markdown +++ b/source/_components/norway_air.markdown @@ -13,7 +13,6 @@ ha_iot_class: "Cloud Polling" ha_release: 0.88 --- - The `norway_air` component [queries](https://luftkvalitet.miljostatus.no/) the Norway air quality [data feed](https://api.met.no/weatherapi/airqualityforecast/0.1/documentation) provided by the Norwegian Meteorological Institute. To add air quality sensor to your installation, add the following to your `configuration.yaml` file: