Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Sep 04 2020 15:57

    lukeindykiewicz on 1.0.0

    (compare)

  • Sep 04 2020 15:54

    lukeindykiewicz on 1.0.0

    (compare)

  • Sep 04 2020 15:53
    lukeindykiewicz closed #131
  • Sep 04 2020 15:53
    lukeindykiewicz commented #131
  • Sep 04 2020 15:52

    lukeindykiewicz on develop

    (compare)

  • Sep 04 2020 15:45
    lukeindykiewicz closed #128
  • Sep 04 2020 15:45
    lukeindykiewicz closed #127
  • Sep 04 2020 15:45
    lukeindykiewicz closed #122
  • Sep 04 2020 15:45
    lukeindykiewicz closed #120
  • Sep 04 2020 15:45

    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)

  • Sep 04 2020 15:45
    lukeindykiewicz closed #130
  • Sep 04 2020 07:53
    benjben commented #131
  • Sep 03 2020 18:24
    lukeindykiewicz commented #131
  • Sep 03 2020 18:20
    lukeindykiewicz commented #131
  • Sep 03 2020 06:31
    benjben commented #131
  • Sep 02 2020 19:32
    lukeindykiewicz review_requested #130
  • Sep 02 2020 19:32
    lukeindykiewicz synchronize #130
  • Sep 02 2020 19:32
    lukeindykiewicz synchronize #131
  • Sep 02 2020 19:32

    lukeindykiewicz on 1.0.0

    Prepare for release (compare)

  • Sep 02 2020 19:06
    lukeindykiewicz synchronize #130
Ben Fradet
@BenFradet
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
Kevin
@Espanix
Hi! I am new on Scala and i am playing around a bit. I download your library and understood the code. Great job! But i have a question since when i try to run the code it stuck and Future(<not completed>). As i checked your erros.scala i figured out that this was not comming from your side but from my implementation

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)
}
}

Ben Fradet
@BenFradet
hey, this is because the Future is asynchronous
if you want more info I invite you to read https://docs.scala-lang.org/overviews/core/futures.html
Kevin
@Espanix
thanks for the fast reply
let me have a look
Ben Fradet
@BenFradet
If you want to turn it into a synchronous blocking call, you can do Await.result(weatherInLondon, 1 second)
Kevin
@Espanix
thanks
Kevin
@Espanix
Atm i am having problems with the api key . I figured out that in your github u mentioned that for free access users it should request through api.openweathermap.org. When initializing your OwnAsyncClient it is refering to history.openweathermap.org as a host
Kevin
@Espanix
and the first apply method it is requestiong a string as parameter (Key)with a transport parameter (no clue) ? here i need some help pls
Kevin
@Espanix
fixed it sry for my dumbness
val client = OwmAsyncClient(KEY,"api.openweathermap.org")
just it was a bit different form you github doc
Ben Fradet
@BenFradet
nw, feel free to open a PR if you want to make the readme a bit clearer
Kevin
@Espanix
ok i can try to improve it :)
Ben Fradet
@BenFradet
:+1:
Yeonhoo
@yeonhoo
Hello! :D
Ben Fradet
@BenFradet
Hey
Hakan
@Confman

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>