Integrate weather update extension to unomi
Project: http://git-wip-us.apache.org/repos/asf/incubator-unomi/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-unomi/commit/5d90e592 Tree: http://git-wip-us.apache.org/repos/asf/incubator-unomi/tree/5d90e592 Diff: http://git-wip-us.apache.org/repos/asf/incubator-unomi/diff/5d90e592 Branch: refs/heads/master Commit: 5d90e592f3b6328aea13509cd23574d1e7573a8b Parents: ee6b238 Author: dinesh1996 <Dragonball21> Authored: Wed Jul 26 14:29:54 2017 +0200 Committer: dinesh1996 <Dragonball21> Committed: Thu Aug 3 14:27:18 2017 +0200 ---------------------------------------------------------------------- extensions/weather-update/README.md | 12 ++++++++++-- .../main/resources/org.apache.unomi.weatherUpdate.cfg | 1 - 2 files changed, 10 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-unomi/blob/5d90e592/extensions/weather-update/README.md ---------------------------------------------------------------------- diff --git a/extensions/weather-update/README.md b/extensions/weather-update/README.md index dcc486f..a1943b7 100644 --- a/extensions/weather-update/README.md +++ b/extensions/weather-update/README.md @@ -23,13 +23,21 @@ This sample plugin will retrieve the weather associated with the resolved locati ## Getting started -1. Configure the Apache Unomi Weather Update. In the etc/org.apache.unomi.weatherUpdate.cfg file +1. Create an new account : + + https://home.openweathermap.org/users/sign_up + +2. Generate a new API Key, or get the default + + https://home.openweathermap.org/api_keys + +2. Configure the Apache Unomi Weather Update. In the etc/org.apache.unomi.weatherUpdate.cfg file change the following settings: weatherUpdate.apiKey=YOUR_WEATHER_APIKEY -2. Deploy into Apache Unomi using the following commands from the Apache Karaf shell: +3. Deploy into Apache Unomi using the following commands from the Apache Karaf shell: feature:repo-add mvn:org.apache.unomi/unomi-weather-update-karaf-kar/1.2.0-incubating-SNAPSHOT/xml/features feature:install unomi-weather-update-karaf-kar http://git-wip-us.apache.org/repos/asf/incubator-unomi/blob/5d90e592/extensions/weather-update/core/src/main/resources/org.apache.unomi.weatherUpdate.cfg ---------------------------------------------------------------------- diff --git a/extensions/weather-update/core/src/main/resources/org.apache.unomi.weatherUpdate.cfg b/extensions/weather-update/core/src/main/resources/org.apache.unomi.weatherUpdate.cfg index 1f69568..aa85dc0 100644 --- a/extensions/weather-update/core/src/main/resources/org.apache.unomi.weatherUpdate.cfg +++ b/extensions/weather-update/core/src/main/resources/org.apache.unomi.weatherUpdate.cfg @@ -14,7 +14,6 @@ # See the License for the specific language governing permissions and # limitations under the License. # - weatherUpdate.apiKey=YOUR_WEATHER_APIKEY weatherUpdate.url.base=http://api.openweathermap.org weatherUpdate.url.attributes=data/2.5/weather
