This is an automated email from the ASF dual-hosted git repository. acosentino pushed a commit to branch camel-2.21.x in repository https://gitbox.apache.org/repos/asf/camel.git
commit 5829da80dc122efe05c08bef4c484fefd4b298c3 Author: Andrea Cosentino <anco...@gmail.com> AuthorDate: Tue Jul 17 16:32:05 2018 +0200 CAMEL-12658 - Updated docs --- components/camel-weather/src/main/docs/weather-component.adoc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/components/camel-weather/src/main/docs/weather-component.adoc b/components/camel-weather/src/main/docs/weather-component.adoc index e7622e9..5f3fcf1 100644 --- a/components/camel-weather/src/main/docs/weather-component.adoc +++ b/components/camel-weather/src/main/docs/weather-component.adoc @@ -157,7 +157,7 @@ In this sample we find the 7 day weather forecast for Madrid, Spain: [source,java] --------------------------------------------------------------------------------------------- -from("weather:foo?location=Madrid,Spain&period=7 days&appid=APIKEY").to("jms:queue:weather"); +from("weather:foo?location=Madrid,Spain&period=7 days&appid=APIKEY&geolocationAccessKey=IPSTACK_ACCESS_KEY&geolocationRequestHostIP=LOCAL_IP").to("jms:queue:weather"); --------------------------------------------------------------------------------------------- To just find the current weather for your current location you can use @@ -165,7 +165,7 @@ this: [source,java] --------------------------------------------------------- -from("weather:foo?appid=APIKEY").to("jms:queue:weather"); +from("weather:foo?appid=APIKEY&geolocationAccessKey=IPSTACK_ACCESS_KEY&geolocationRequestHostIP=LOCAL_IP").to("jms:queue:weather"); --------------------------------------------------------- And to find the weather using the producer we do: @@ -173,7 +173,7 @@ And to find the weather using the producer we do: [source,java] -------------------------------------------------------- from("direct:start") - .to("weather:foo?location=Madrid,Spain&appid=APIKEY"); + .to("weather:foo?location=Madrid,Spain&appid=APIKEY&geolocationAccessKey=IPSTACK_ACCESS_KEY&geolocationRequestHostIP=LOCAL_IP"); -------------------------------------------------------- And we can send in a message with a header to get the weather for any