OpenWeatherApi
No long description provided.
Installation
dagger install github.com/pjmagee/dagger-openweatherapi@1955990cc56d57d24c064a0a1960d891984d48a2Entrypoint
Return Type
OpenWeatherApi !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| apiKey | Secret ! | - | The apiKey to use for the OpenWeatherMap API |
| unit | String ! | "C" | The unit to use (C, F, or K) |
| lang | String ! | "en" | The 2-letter ISO code for the language to use (en, es, etc.) |
Example
dagger -m github.com/pjmagee/dagger-openweatherapi@1955990cc56d57d24c064a0a1960d891984d48a2 call \
--api-key env:MYSECRET --unit string --lang stringfunc (m *MyModule) Example(apiKey *dagger.Secret, unit string, lang string) *dagger.OpenWeatherApi {
return dag.
OpenWeatherApi(apiKey, unit, lang)
}@function
def example(api_key: dagger.Secret, unit: str, lang: str) -> dagger.OpenWeatherApi:
return (
dag.open_weather_api(api_key, unit, lang)
)@func()
example(apiKey: Secret, unit: string, lang: string): OpenWeatherApi {
return dag
.openWeatherApi(apiKey, unit, lang)
}Types
OpenWeatherApi 🔗
apiKey() 🔗
Return Type
Secret ! Example
dagger -m github.com/pjmagee/dagger-openweatherapi@1955990cc56d57d24c064a0a1960d891984d48a2 call \
--api-key env:MYSECRET --unit string --lang string api-keyfunc (m *MyModule) Example(apiKey *dagger.Secret, unit string, lang string) *dagger.Secret {
return dag.
OpenWeatherApi(apiKey, unit, lang).
ApiKey()
}@function
def example(api_key: dagger.Secret, unit: str, lang: str) -> dagger.Secret:
return (
dag.open_weather_api(api_key, unit, lang)
.api_key()
)@func()
example(apiKey: Secret, unit: string, lang: string): Secret {
return dag
.openWeatherApi(apiKey, unit, lang)
.apiKey()
}unit() 🔗
Return Type
String ! Example
dagger -m github.com/pjmagee/dagger-openweatherapi@1955990cc56d57d24c064a0a1960d891984d48a2 call \
--api-key env:MYSECRET --unit string --lang string unitfunc (m *MyModule) Example(ctx context.Context, apiKey *dagger.Secret, unit string, lang string) string {
return dag.
OpenWeatherApi(apiKey, unit, lang).
Unit(ctx)
}@function
async def example(api_key: dagger.Secret, unit: str, lang: str) -> str:
return await (
dag.open_weather_api(api_key, unit, lang)
.unit()
)@func()
async example(apiKey: Secret, unit: string, lang: string): Promise<string> {
return dag
.openWeatherApi(apiKey, unit, lang)
.unit()
}lang() 🔗
Return Type
String ! Example
dagger -m github.com/pjmagee/dagger-openweatherapi@1955990cc56d57d24c064a0a1960d891984d48a2 call \
--api-key env:MYSECRET --unit string --lang string langfunc (m *MyModule) Example(ctx context.Context, apiKey *dagger.Secret, unit string, lang string) string {
return dag.
OpenWeatherApi(apiKey, unit, lang).
Lang(ctx)
}@function
async def example(api_key: dagger.Secret, unit: str, lang: str) -> str:
return await (
dag.open_weather_api(api_key, unit, lang)
.lang()
)@func()
async example(apiKey: Secret, unit: string, lang: string): Promise<string> {
return dag
.openWeatherApi(apiKey, unit, lang)
.lang()
}coordinates() 🔗
Coordinates retrieves the current weather for the given latitude and longitude
Return Type
Weather !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| lat | String ! | - | The latitude |
| lon | String ! | - | The longitude |
Example
dagger -m github.com/pjmagee/dagger-openweatherapi@1955990cc56d57d24c064a0a1960d891984d48a2 call \
--api-key env:MYSECRET --unit string --lang string coordinates --lat string --lon stringfunc (m *MyModule) Example(apiKey *dagger.Secret, unit string, lang string, lat string, lon string) *dagger.OpenWeatherApiWeather {
return dag.
OpenWeatherApi(apiKey, unit, lang).
Coordinates(lat, lon)
}@function
def example(api_key: dagger.Secret, unit: str, lang: str, lat: str, lon: str) -> dagger.OpenWeatherApiWeather:
return (
dag.open_weather_api(api_key, unit, lang)
.coordinates(lat, lon)
)@func()
example(apiKey: Secret, unit: string, lang: string, lat: string, lon: string): OpenWeatherApiWeather {
return dag
.openWeatherApi(apiKey, unit, lang)
.coordinates(lat, lon)
}location() 🔗
Location retrieves the current weather for the given location name
Return Type
Weather !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| name | String ! | - | The name of the location (e,g "London,UK", "New York,US", "Tokyo,JP", "Sydney,AU") |
Example
dagger -m github.com/pjmagee/dagger-openweatherapi@1955990cc56d57d24c064a0a1960d891984d48a2 call \
--api-key env:MYSECRET --unit string --lang string location --name stringfunc (m *MyModule) Example(apiKey *dagger.Secret, unit string, lang string, name string) *dagger.OpenWeatherApiWeather {
return dag.
OpenWeatherApi(apiKey, unit, lang).
Location(name)
}@function
def example(api_key: dagger.Secret, unit: str, lang: str, name: str) -> dagger.OpenWeatherApiWeather:
return (
dag.open_weather_api(api_key, unit, lang)
.location(name)
)@func()
example(apiKey: Secret, unit: string, lang: string, name: string): OpenWeatherApiWeather {
return dag
.openWeatherApi(apiKey, unit, lang)
.location(name)
}Weather 🔗
temp() 🔗
Return Type
String ! Example
dagger -m github.com/pjmagee/dagger-openweatherapi@1955990cc56d57d24c064a0a1960d891984d48a2 call \
location --name string \
tempfunc (m *MyModule) Example(ctx context.Context, name string) string {
return dag.
OpenWeatherApi().
Location(name).
Temp(ctx)
}@function
async def example(name: str) -> str:
return await (
dag.open_weather_api()
.location(name)
.temp()
)@func()
async example(name: string): Promise<string> {
return dag
.openWeatherApi()
.location(name)
.temp()
}unit() 🔗
Return Type
String ! Example
dagger -m github.com/pjmagee/dagger-openweatherapi@1955990cc56d57d24c064a0a1960d891984d48a2 call \
location --name string \
unitfunc (m *MyModule) Example(ctx context.Context, name string) string {
return dag.
OpenWeatherApi().
Location(name).
Unit(ctx)
}@function
async def example(name: str) -> str:
return await (
dag.open_weather_api()
.location(name)
.unit()
)@func()
async example(name: string): Promise<string> {
return dag
.openWeatherApi()
.location(name)
.unit()
}description() 🔗
Return Type
String ! Example
dagger -m github.com/pjmagee/dagger-openweatherapi@1955990cc56d57d24c064a0a1960d891984d48a2 call \
location --name string \
descriptionfunc (m *MyModule) Example(ctx context.Context, name string) string {
return dag.
OpenWeatherApi().
Location(name).
Description(ctx)
}@function
async def example(name: str) -> str:
return await (
dag.open_weather_api()
.location(name)
.description()
)@func()
async example(name: string): Promise<string> {
return dag
.openWeatherApi()
.location(name)
.description()
}feelsLike() 🔗
Return Type
String ! Example
dagger -m github.com/pjmagee/dagger-openweatherapi@1955990cc56d57d24c064a0a1960d891984d48a2 call \
location --name string \
feels-likefunc (m *MyModule) Example(ctx context.Context, name string) string {
return dag.
OpenWeatherApi().
Location(name).
FeelsLike(ctx)
}@function
async def example(name: str) -> str:
return await (
dag.open_weather_api()
.location(name)
.feels_like()
)@func()
async example(name: string): Promise<string> {
return dag
.openWeatherApi()
.location(name)
.feelsLike()
}summary() 🔗
Return Type
String ! Example
dagger -m github.com/pjmagee/dagger-openweatherapi@1955990cc56d57d24c064a0a1960d891984d48a2 call \
location --name string \
summaryfunc (m *MyModule) Example(ctx context.Context, name string) string {
return dag.
OpenWeatherApi().
Location(name).
Summary(ctx)
}@function
async def example(name: str) -> str:
return await (
dag.open_weather_api()
.location(name)
.summary()
)@func()
async example(name: string): Promise<string> {
return dag
.openWeatherApi()
.location(name)
.summary()
}icon() 🔗
Return Type
String ! Example
dagger -m github.com/pjmagee/dagger-openweatherapi@1955990cc56d57d24c064a0a1960d891984d48a2 call \
location --name string \
iconfunc (m *MyModule) Example(ctx context.Context, name string) string {
return dag.
OpenWeatherApi().
Location(name).
Icon(ctx)
}@function
async def example(name: str) -> str:
return await (
dag.open_weather_api()
.location(name)
.icon()
)@func()
async example(name: string): Promise<string> {
return dag
.openWeatherApi()
.location(name)
.icon()
}