class DarkSkyCacheClient[F[_]] extends DarkSkyClient[F]
- Alphabetic
- By Inheritance
- DarkSkyCacheClient
- DarkSkyClient
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def cachingTimeMachine(latitude: Float, longitude: Float, dateTime: ZonedDateTime, exclude: List[BlockType] = List.empty[BlockType], extend: Boolean = false, lang: Option[String] = None, units: Option[Units] = None)(implicit M: Monad[F]): F[Either[WeatherError, DarkSkyResponse]]
Gets DarkSkyResponse for the specified date (alignes time to midnight) from the cache, if not found, then performs the request
Gets DarkSkyResponse for the specified date (alignes time to midnight) from the cache, if not found, then performs the request
IMPORTANT
Returned DarkSkyResponse's
currently
field excluded, because the time is always aligned to midnight- latitude
The latitude of a location. Positive is north, negative is south.
- longitude
The longitude of a location. Positive is east, negative is west.
- dateTime
zoned datetime, time is aligned to midnight
- returns
either weather error or dark sky response, wrapper in effect type F
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def forecast(latitude: Float, longitude: Float, exclude: List[BlockType] = List.empty[BlockType], extend: Boolean = false, lang: Option[String] = None, units: Option[Units] = None): F[Either[WeatherError, DarkSkyResponse]]
Forecast request that returns the current weather condition, a minute-by-minute forecast (where available), an hour-by-hour forecast for the next 48 hours, and a day-by-day forecast for the next week
Forecast request that returns the current weather condition, a minute-by-minute forecast (where available), an hour-by-hour forecast for the next 48 hours, and a day-by-day forecast for the next week
- latitude
The latitude of a location. Positive is north, negative is south.
- longitude
The longitude of a location. Positive is east, negative is west.
- exclude
blocks to exclude from the response
- extend
if true,
hourly
will be extended to 168 hours instead of 48- lang
returns
summary
field in the specified language (use codes likede
,ru
) full list at Dark Sky docs- units
return weather conditions in the specified units
- returns
either error or response, wrapped in effect type
F
- Definition Classes
- DarkSkyClient
- val geoPrecision: Int
nth part of 1 to which latitude and longitude will be rounded
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def timeMachine(latitude: Float, longitude: Float, dateTime: ZonedDateTime, exclude: List[BlockType] = List.empty[BlockType], extend: Boolean = false, lang: Option[String] = None, units: Option[Units] = None): F[Either[WeatherError, DarkSkyResponse]]
"Time Machine Request" - returns the observed (in the past) or forecasted (in the future) hour-by-hour weather and daily weather conditions for the provided date
"Time Machine Request" - returns the observed (in the past) or forecasted (in the future) hour-by-hour weather and daily weather conditions for the provided date
- latitude
The latitude of a location. Positive is north, negative is south
- longitude
The longitude of a location. Positive is east, negative is west
- dateTime
Datetime that will be converted to the Unix timestamp for the actual request
- exclude
blocks to exclude from the response
- extend
if true,
hourly
will be extended to 168 hours instead of 48- lang
returns
summary
field in the specified language (use codes likede
,ru
) full list at Dark Sky docs- units
return weather conditions in the specified units
- returns
either error or response, wrapped in effect type
F
- Definition Classes
- DarkSkyClient
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated