olivia-ai / olivia

💁‍♀️Your new best friend powered by an artificial neural network
https://olivia-ai.org
MIT License
3.68k stars 352 forks source link

module: create a weather module #84

Open hugolgst opened 4 years ago

hugolgst commented 4 years ago

Create a weather module which will get the weather for a given city, at a given date (using the language/date package). The API for that isn't chosen yet. You can copy the model of the Spotify module for the registration of the tokens, see here Save the API key into user information if the API requires a token.

Opened for contributors.

sainitishkumar commented 4 years ago

Hi, I am new to open source and Go. I would like to work on this issue.

hugolgst commented 4 years ago

Hello @sainitishkumar You can make a PR for that!

aculclasure commented 3 years ago

Hi @hugolgst and @sainitishkumar

I came across this issue and it seems to coincide with some work I have done on simple Go client for the OpenWeather API. I would like to know if that work would be helpful for this issue. I have a Go package called weather that provides logic to get the current weather conditions at a given location. I think this package could be extended to provide the weather on a given date also. The only drawback is that the free tier for this OpenWeather API only offers forecasts for out to 7 days. I think Olivia would have to provide some kind of response to the user if they requested a forecast date that was out of range of their API tier. What do you think?

hugolgst commented 3 years ago

Yes she can! We just need to write that in the module.