Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Mar 09 12:24
    oguzhanunlu closed #139
  • Mar 09 12:24
    oguzhanunlu closed #140
  • Mar 09 12:24
    oguzhanunlu closed #138
  • Mar 09 12:24
    oguzhanunlu closed #137
  • Mar 09 12:24
    oguzhanunlu closed #135
  • Mar 09 12:24
    oguzhanunlu closed #134
  • Mar 09 12:24
    oguzhanunlu closed #141
  • Mar 09 12:24
    oguzhanunlu closed #133
  • Mar 09 12:24
    oguzhanunlu closed #132
  • Mar 09 12:24

    oguzhanunlu on master

    Bump SBT to 1.6.2 (close #132) Bump Scala to 2.12.15 (close #1… Extend copyright to 2022 (close… and 6 more (compare)

  • Mar 09 12:19

    github-actions[bot] on gh-pages

    Deploying to gh-pages from @ sn… (compare)

  • Mar 09 12:18

    oguzhanunlu on 2.0.0

    (compare)

  • Mar 09 10:27

    github-actions[bot] on gh-pages

    Deploying to gh-pages from @ sn… (compare)

  • Mar 09 10:25

    oguzhanunlu on 2.0.0-M1

    (compare)

  • Mar 09 10:23
    oguzhanunlu synchronize #141
  • Mar 09 10:23

    oguzhanunlu on 2.0.0

    Prepare for release (compare)

  • Mar 04 09:07
    oguzhanunlu synchronize #141
  • Mar 04 09:07

    oguzhanunlu on 2.0.0

    Prepare for release (compare)

  • Mar 03 13:54
    oguzhanunlu review_requested #141
  • Mar 03 13:50
    oguzhanunlu demilestoned #138
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>