Property | Default | Description |
---|
appid | null | Camel 2.16.1/2.15.5: The user Api Key to be used to call the API Weather service APPID ID used to authenticate the user connected to the API Server. This key is required. |
location
| null
| If null Camel will try and determine your current location using the geolocation of your ip address, else specify the city,country. For well known city names, Open Weather Map will determine the best fit, but multiple results may be returned. Hence specifying and country as well will return more accurate data. If you specify "current" as the location then the component will try to get the current latitude and longitude and use that to get the weather details. You can use lat and lon options instead of location. |
lat
| null
| Latitude of location. You can use lat and lon options instead of location. |
lon
| null
| Longitude of location. You can use lat and lon options instead of location. |
period
| null
| If null, the current weather will be returned, else use values of 5, 7, 14 days. Only the numeric value for the forecast period is actually parsed, so spelling, capitalisation of the time period is up to you (its ignored) |
headerName
| null
| To store the weather result in this header instead of the message body. This is useable if you want to keep current message body as-is. |
mode
| JSON
| The output format of the weather data. The possible values are HTML , JSON or XML |
units
| METRIC
| The units for temperature measurement. The possible values are IMPERIAL or METRIC |
consumer.delay
| 3600000
| Delay in millis between each poll (default is 1 hour) |
consumer.initialDelay
| 1000
| Millis before polling starts. |
consumer.userFixedDelay
| false
| If true , use fixed delay between polls, otherwise fixed rate is used. See ScheduledExecutorService in JDK for details. |