Dagger
Search

OpenWeatherApi

No long description provided.

Installation

dagger install github.com/pjmagee/dagger-openweatherapi@1955990cc56d57d24c064a0a1960d891984d48a2

Entrypoint

Return Type
OpenWeatherApi !
Arguments
NameTypeDefault ValueDescription
apiKeySecret !-The apiKey to use for the OpenWeatherMap API
unitString !"C"The unit to use (C, F, or K)
langString !"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 string
func (m *myModule) example(apiKey *Secret, unit string, lang string) *OpenWeatherApi  {
	return dag.
			OpenWeatherApi(apiKey, unit, lang)
}
@function
def example(api_key: dagger.Secret, unit: str, lang: str) -> dag.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-key
func (m *myModule) example(apiKey *Secret, unit string, lang string) *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 unit
func (m *myModule) example(ctx context.Context, apiKey *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 lang
func (m *myModule) example(ctx context.Context, apiKey *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
NameTypeDefault ValueDescription
latString !-The latitude
lonString !-The longitude
Example
dagger -m github.com/pjmagee/dagger-openweatherapi@1955990cc56d57d24c064a0a1960d891984d48a2 call \
 --api-key env:MYSECRET --unit string --lang string coordinates --lat string --lon string
func (m *myModule) example(apiKey *Secret, unit string, lang string, lat string, lon string) *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) -> dag.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
NameTypeDefault ValueDescription
nameString !-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 string
func (m *myModule) example(apiKey *Secret, unit string, lang string, name string) *OpenWeatherApiWeather  {
	return dag.
			OpenWeatherApi(apiKey, unit, lang).
			Location(name)
}
@function
def example(api_key: dagger.Secret, unit: str, lang: str, name: str) -> dag.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 \
 temp
func (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 \
 unit
func (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 \
 description
func (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-like
func (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 \
 summary
func (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 \
 icon
func (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()
}