Skip to content
Permalink
master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
# Weather_bot
Weatherbot with with API and telegram functionality
So in my first chatbot project professor has randomly selected a team which consists of 5 team member So
in the first week for chatbot project our approach was to present 3 or 4 rigid ideas and then work on any
particular idea, Therefore initially we presented weather bot, Medical bot and lyrics bot idea and we discuss
together and decided that we all created a unique chatbot and in the second week and whose chatbot is the
best that we will consider it for future development. At last in the second stage, I personally decided to make
a weather bot and one of my colleagues has decided to make lyrics bot and the rest of the people at this stage
did not show any active role. During the third week, I have seen a couple of videos on youtube and Linkedin
learning and taught myself that what is API ? and how it’s working. The next big step for me was which API
should I choose because there are dozens of API are available worldwide, However, I decided to choose
Open weather map API for my weather bot due to its documentation, I have initially read the full API
documentation and then my approach was to built a structure of my code which can actually work in the end
of the week, Moreover at that time I reached out at my professor for a little help and they suggested me to
introduce a function in my code and with the help of function my code looks much better and easily
readable. The next challenge for me was how to extract information from API to human-friendly format, So
after searching a lot from youtube, I got to know about Pyom library in python. Using pyom library from
python I have extracted information from API from json format to Human-friendly format. After week 5 I
brought my weather bot to the next level as it has the capability of showing maximum temperature,
minimum temperature, average temperature, sunrise, sunset, wind speed weather conditions such as cloudy,
sunny, etc and it also shows humidity. I also tried to connect my weather bot with sqlite database but in the
end I found that it does not makes any sense to store what user search but if I implemented this chatbot on
any big scale then definitely I would connect it with database. In that week we integrated my weather bot
with my colleague lyric bot using git hub but however at the end of the week we did not find any future
integration with weather bot and lyric bot, therefore, we dropped weather bot. At last, my colleague who
created a lyric bot has to remove pyowm library and uses raw json format to generate details from API. So
in the final stage, we successfully connected our weather bot with the telegram