Veershah26 / virtual-assistant

Making an Virtual Voice Assistant in Python, Cause, Why Not ?

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Weather Forecast

luminousbeam opened this issue · comments

I thought the assistant could also pull weather info from an API.

Sure, thanks for the Idea, would you like to work on this ?
@luminousbeam

Hi @Veershah26 I would! However, I'd like some help in making sure that I'm setting up the repo correctly. I'd also like to add the requirements.txt and perhaps update the README with setup instruction

Hey @Veershah26 If anyone is not working on this feature. I can add it.

@luminousbeam . Sorry for the late reply, But i have assigned this issue to you now. Have a great time.

Regards
Veer Shah

@luminousbeam so that now the pr is merged, but before i close this issue, you know that the code for the weather forecast is pretty big, so would you rather have, the assistant, execute the file each time or call a class from the file (IMO, implementing this in a class might be a tad bit complicated)

@Veershah26 do you think that within the weather.py file we can just break up the items into methods? like def wind() and def clouds(), def temp(), etc

@Veershah26 do you think that within the weather.py file we can just break up the items into methods? like def wind() and def clouds(), def temp(), etc

Sure, than all it would take is call the def method_name() into main file.

@Veershah26 I worked on this both yesterday and today. I did a lot of testing and we'd be able to pull in the weather module and call methods easily within main.py. We can import modules.weather as weather and then have the assistant speak(weather.temp()) for example :) Here's my PR #27

Thanks for the quick review and merge! I will close this issue, we can open a new one if you want me to add or change functionality.