wttr.in Source
Provided by: "Apache Software Foundation"
Support Level for this Kamelet is: "Stable"
Get weather forecasts from the wttr.in weather forecast service
Configuration Options
The following table summarizes the configuration options available for the wttrin-source
Kamelet:
Property | Name | Description | Type | Default | Example |
---|---|---|---|---|---|
Output Type | The type of output. | string | current | current, weather, full | |
Period | The interval between fetches to the wttr.in service in milliseconds. | integer | 60000 | ||
Language | The language to use for displaying weather forecasts. | string | am ar af be bn ca da de el et fr fa hi hu ia id it lt mg nb nl oc pl pt-br ro ru ta tr th uk vi zh-cn zh-tw | ||
Location | The location to get weather forecasts. | string | "paris", "~Eiffel+tower", "Москва", "muc", "@stackoverflow.com", "94107", "-78.46,106.79" |
Dependencies
At runtime, the wttrin-source
Kamelet relies upon the presence of the following dependencies:
-
camel:core
-
camel:http
-
camel:jackson
-
camel:jsonpath
-
camel:kamelet
-
camel:timer
Camel JBang usage
Prerequisites
-
You’ve installed JBang.
-
You have executed the following command:
jbang app install camel@apache/camel
Supposing you have a file named route.yaml with this content:
- route:
from:
uri: "kamelet:wttrin-source"
parameters:
.
.
.
steps:
- to:
uri: "kamelet:log-sink"
You can now run it directly through the following command
camel run route.yaml