Welcome to the Snowplow chat-room for the Scala weather library! This is pure developer chat - for community support as always go to https://discourse.snowplowanalytics.com/ and for Snowplow Insights customer support, email support@snowplowanalytics.com
lukeindykiewicz on 1.0.0
lukeindykiewicz on 1.0.0
lukeindykiewicz on develop
lukeindykiewicz on master
Bump Circe to 0.13.0 (close #12… Bump scala-lru-map to 0.5.0 (cl… Update scalafmt to newest (clos… and 2 more (compare)
lukeindykiewicz on 1.0.0
Prepare for release (compare)
import com.snowplowanalytics.weather.providers.openweather.Errors.WeatherError
import com.snowplowanalytics.weather.providers.openweather.OwmAsyncClient
import com.snowplowanalytics.weather.providers.openweather.Responses.Current
import scala.concurrent.Future
object Test {
def main(args: Array[String]): Unit = {
val client = OwmAsyncClient("7e849b93b279d005dbffe1f0af858824")
val weatherInLondon: Future[Either[WeatherError, Current]] = client.currentByCoords(35, 139)
println(actualWeather)
}
}
val client = OwmAsyncClient(KEY,"api.openweathermap.org")
Wind deg should be Optional as well.
@JsonCodec
final case class Wind(speed: BigDecimal,
deg: BigDecimal,
gust: Option[BigDecimal],
var_end: Option[Int],
var_beg: Option[Int])
I suppose that's the reason for parsing the following response fails:
http://api.openweathermap.org/data/2.5/weather?lat=37.0594444&lon=37.3824997&appid=<api>