0% found this document useful (0 votes)
20 views63 pages

WETHWER APP PRO - Merged

Wether

Uploaded by

anandrathour912
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
20 views63 pages

WETHWER APP PRO - Merged

Wether

Uploaded by

anandrathour912
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 63

MAJOR PROJECT REPORT

On

VIRTUAL ASSISTANT
Polytechnic college

Diploma in Computer Science &Engineering

Session: 2023-2024

RAJIV GANDHI PROUDYOGIKI VISHWAVIDYALYA

BHOPAL (Madhya Pradesh)

Guided By Submitted By
HOD : Mr. SAMANT VERMA SUSHMA DEVI (21111C04057)

Lecturer: Mrs. MRANALI YADAV ANAND RATHOUR (21111C04010)

ARTI SINGH (21111C04040)

PUSHPENDRA KEWAT (21111C04039)

GOVERNMENT POLYTECHNIC COLLEGE ANUPPUR MP (484224)


CERTIFICATE

This is to certify project entitled “Virtual Assistant “for Polytechnic is


being submitted by Sushma Devi, Anand Rathour, Arti singh,
pushpendra Kewat , to the Dept. of Computer Science and Engineering
, Govt. Polytechnic College Anuppur, M.P.-484224, India, in the partial
fulfillment of the requirements for the award of the diploma in
“Computer Science and Engineering”. This work is carried out by
himself in the Dept. of Computer Science and Engineering under the
supervision of Mr. Samant Verma. The matter personified in the
project report has not been submitted for the award of any other
degree or diploma.

Mr. Raju Singh Paraste Mr. Samant Verma Mrs. Mranali Yadav

(Principal) (HOD) (Guide)


DECLARATIO

We hereby declare that work which is being presented in the project


report fulfillment of the requirement of the “Diploma in Computer
Science” branch is an Authentic record of our work carried out under
the guidance of “Mr. Samant Verma”. The work has been carried out at
Govt. Polytechnic College Anuppur(M.P) .

PROJECT ASSOCIATES
Sushma Devi

Anand Rathour

Arti Singh

Pushpendra Kewat
ACKNOWLEDGMEN

A project like one involves many people and it would be complete


without the mention of all those people whose guidance and
encouragement helped in the successful completion of this project.

We heartily thank our faculty member of the Department of Computer


Science Govt. Polytechnic College Anuppur for their efforts towards our
project.

We would like to thank our project in-charge Mr. Samant Verma who
has been a great source of inspiration for us and without whose humble
guidance the project was never shaped.

We are also indebted to our guide Mrs. Mranali Yadav for the
Encouragement Guidance and and support.

We are also thankful to all the many people whose timely help our the
paucity of space is restricting us from their name.

And finally, we also thank all my collegues who constant support during
the whole project.
INDEX FOR PROJECT REPORT

No. INDEX Page No.

Certificate
Declaration
Acknowledgment

01. Introduction 1-2


02. Objective 3-4
03. scope 5-7i
04. Problem statement 8-9
05. Hardware & Software 12-17
Requirements

06. 12
07. 13-14
08. Design 15-16
09. Implementation 17-18
10. Implementation Details 19
11. Working of Virtual Assistant 20-23
12. Virtual Assistant Architecture 24
13. Flow Chart 25
14. Feasibility 26-27
15. Features & Benefits 28-29
16. Advantage & Disadvantage 30
17. Conclusion 31-33
18. Reference 34
INTRODUCTION

User

Introduction wether app

Creating an introductory segment for a weather app involves


highlighting its key features, usability, and the benefits it offers to the
users. Here's a sample introduction for a weather app:

Welcome to [WETHER APP] – Your Ultimate Weather Companion!

Discover the most accurate, up-to-date weather information right at


your fingertips with [WETHER APP]. Whether you’re planning your day,
your week, or your next adventure, our app ensures you’re always
prepared for whatever the weather brings.

Key Features:

Real-Time Weather Updates: Get instant access to current weather


conditions, temperature, and forecasts for any location worldwide.

Extended Forecasts: Plan ahead with detailed hourly, daily, and 7-day
weather forecasts.

1
Severe Weather Alerts: Stay safe with timely notifications about
extreme weather conditions, including storms, hurricanes, and heavy
rain.

Interactive Radar Maps: Visualize weather patterns with our high-


resolution radar maps, showing precipitation, cloud cover, and more.

Personalized Experience: Save your favorite locations and receive


weather updates tailored to your needs.

Air Quality Index: Monitor air quality levels to stay informed about
pollution and allergens.

Sunrise & Sunset Times: Know the exact times for sunrise and sunset to
make the most of your day.

Why Choose [WETHER APP]?

Accuracy You Can Trust: Powered by advanced weather tracking


technology and trusted meteorological data sources, our app provides
the most reliable weather information.

User-Friendly Interface: Enjoy a sleek, intuitive design that makes


navigating weather updates simple and straightforward.

Customizable Notifications: Choose which weather alerts you want to


receive and how you want to be notified.

Global Coverage: Access weather information for any location


worldwide, whether you’re at home or traveling.

Stay ahead of the weather with [WETHER APP]. Download now and
never let the weather catch you by surprise again!,

2
OBJECTIVE

The primary objective of [Your App Name] is to provide users


with accurate, real-time weather information and forecasts to
help them make informed decisions about their daily
activities and long-term plans. Our goal is to enhance the
safety, convenience, and quality of life for our users by
delivering comprehensive and reliable weather data.

Key objectives include:

Accuracy and Reliability: Ensure that users receive the most


precise and up-to-date weather information by utilizing
advanced meteorological data sources and technologies.

User Empowerment: Empower users to plan their day and


week with confidence by providing detailed weather
forecasts, including hourly, daily, and extended outlooks.

Safety and Preparedness: Enhance user safety by offering


timely alerts and notifications about severe weather
conditions, helping users prepare for and respond to weather
emergencies effectively.

3
Ease of Use: Provide a user-friendly interface that makes
accessing weather information intuitive and straightforward,
catering to users of all ages and technical backgrounds.

Personalization: Offer personalized weather updates and


notifications based on users' preferences and saved
locations, ensuring that the information is relevant and
useful to them.

Comprehensive Coverage: Deliver weather information for


any location worldwide, ensuring that users can access the
data they need whether they are at home or traveling.

Additional Features: Integrate supplementary features such


as air quality indices, sunrise and sunset times, and
interactive radar maps to provide a holistic weather-tracking
experience.

By achieving these objectives, [WETHER APP] aims to


become the go-to weather app for users, helping them stay
informed and prepared for all weather conditions.

This description outlines the core goals of a weather app,


emphasizing accuracy, user empowerment, safety, ease of
use, personalization, comprehensive coverage, and
additional useful features
4
SCOPE

1. *Current Weather Conditions*:


- Temperature, humidity, wind speed, and direction.
- Atmospheric pressure, visibility, and UV index.

2. *Forecasts*:
- Hourly forecasts for the next 24 hours.
- Daily forecasts for the next 7-10 days.
- Detailed information like high/low
temperatures, precipitation chances, and
sunrise/sunset times.

3. *Severe Weather Alerts*:


- Real-time notifications for severe weather conditions
like storms, floods, heatwaves, and more.
- Integration with local weather agencies for
reliable alerts.

5
4. *Interactive Maps*:
- Weather radar showing precipitation.
- Satellite imagery for cloud cover and storm tracking.
- Temperature and wind speed maps.

5. *Air Quality Index (AQI)*:


- Real-time air quality data.
- Pollutant levels and health advisories.

6. *Customization Options*:
- Multiple locations tracking.
- Customizable units (Celsius/Fahrenheit, mph/kmh).
- Themes or color schemes for the app interface.

7. *Additional Features*:
- Widget support for quick weather updates.

6
- Integration with voice assistants like Siri,
Google Assistant, or Alexa.
- Historical weather data.
- Social sharing for weather updates.

8. *User Experience Enhancements*:


- Simple and intuitive user interface.
- Offline mode for basic weather information without
an internet connection.
- Localization for different languages and regions.

Including these features will provide a comprehensive


and user-friendly weather app experience.

7
PROBLEM STAETEMENT

### Problem Statement for a Weather App

*Title: Comprehensive Weather Application Development*

*Objective:*
To develop a user-friendly and reliable weather application that provides accurate and up-to-
date weather information, forecasts, and alerts to users, enhancing their ability to plan and
respond to weather conditions effectively.

*Problem Description:*

With the increasing impact of weather conditions on daily activities and safety, there is a
significant demand for a comprehensive weather application that offers precise and timely
weather updates. Existing weather apps often lack user customization, detailed forecasts,
or real-time alerts, leading to inadequate user satisfaction and preparedness.

*Key Challenges:*

1. *Accuracy and Timeliness of Data:*


- Ensuring the app provides real-time weather data that is accurate and reliable.
- Integrating with reputable weather data sources and APIs.

2. *User Experience and Accessibility:*


- Designing an intuitive and visually appealing user interface that is easy to navigate.
- Ensuring the app is accessible across various devices and platforms.

3. *Comprehensive Features:*
- Providing detailed weather information, including current conditions, hourly and
daily forecasts, and severe weather alerts.
- Offering additional features like air quality index, weather maps, and historical data.

4. *Customization and Personalization:*


- Allowing users to customize settings such as units of measurement, location tracking,
and notification preferences.
- Supporting multiple languages and regions.

5. *Performance and Reliability:*


- Ensuring the app performs well under various network conditions and does not
drain device resources excessively.
- Implementing robust error handling and user support features.

*Goals:*

1. *Develop a Reliable Backend System:*

8
- Integrate with multiple weather data providers to ensure data accuracy and redundancy.
- Implement a backend infrastructure that can handle real-time data processing and delivery.

2. *Create an Intuitive User Interface:*


- Design a clean, easy-to-use interface that presents weather information clearly
and attractively.
- Ensure the app is responsive and works seamlessly on smartphones, tablets, and
possibly desktop browsers.

3. *Implement Key Features:*


- Real-time weather updates and current conditions.
- Hourly and daily forecasts with detailed information.
- Severe weather alerts and notifications.
- Interactive weather maps with radar and satellite imagery.
- Air quality index and health advisories.

4. *Enhance User Experience:*


- Allow users to personalize their experience with customizable settings.
- Provide multilingual support and localization for global users.
- Develop widgets and integration with voice assistants for quick access.

5. *Ensure Robust Performance:*


- Optimize the app for performance and low resource usage.
- Implement offline functionality for basic weather information.

By addressing these challenges and goals, the developed weather app will provide a
comprehensive solution that meets the needs of users for accurate, timely, and customizable
weather information, enhancing their ability to stay informed and prepared for various
weather conditions.

9
PURPOSE

### Purpose of the Weather App

The purpose of the weather app is to provide users


with accurate and timely weather information, enabling
them to make informed decisions and stay safe in
changing weather conditions. Specifically, the app
aims to:

1. *Deliver Real-Time Weather Data:*


- Provide up-to-date information on current weather
conditions, including temperature, humidity, wind
speed, and precipitation.

2. *Offer Detailed Forecasts:*


- Supply hourly and daily forecasts to help users
plan their activities with confidence, whether it’s for
the day ahead or the coming week.

3. *Enhance Safety with Alerts:*


- Issue real-time severe weather alerts and
notifications, such as warnings for storms, floods, or
heatwaves, to ensure users can take timely
precautions.

4. *Improve Air Quality Awareness:*


- Include air quality index (AQI) data and health
advisories to inform users about current air conditions
and potential health impacts.

5. *Enable Customization and Personalization:*


- Allow users to personalize their experience by
setting preferred units of measurement, tracking
1
multiple locations, and customizing notification
preferences.

1
6. *Provide Interactive Weather Maps:*
- Integrate interactive radar and satellite maps to
offer users a visual representation of weather patterns
and developments.

7. *Enhance User Experience:*


- Design an intuitive and visually appealing
interface that ensures ease of use and accessibility
across different devices and platforms.

8. *Support Informed Decision-Making:*


- Empower users to make informed decisions about
their daily activities, travel plans, and outdoor events
based on accurate and detailed weather information.

By fulfilling these purposes, the weather app aims to


become an essential tool for users, helping them
navigate and adapt to weather conditions with greater
ease and safety.

1
HARDWARE AND SOFTWARE REQUIREMENTS

### Purpose of the Weather App

The purpose of the weather app is to provide users with accurate


and timely weather information, enabling them to make informed
decisions and stay safe in changing weather conditions.
Specifically, the app aims to:

1. *Deliver Real-Time Weather Data:*


- Provide up-to-date information on current weather conditions,
including temperature, humidity, wind speed, and precipitation.

2. *Offer Detailed Forecasts:*


- Supply hourly and daily forecasts to help users plan their
activities with confidence, whether it’s for the day ahead or the
coming week.

3. *Enhance Safety with Alerts:*


- Issue real-time severe weather alerts and notifications, such as
warnings for storms, floods, or heatwaves, to ensure users can
take timely precautions.

4. *Improve Air Quality Awareness:*


- Include air quality index (AQI) data and health advisories
to inform users about current air conditions and potential
health impacts.

1
5. *Enable Customization and Personalization:*
- Allow users to personalize their experience by setting
preferred units of measurement, tracking multiple locations, and
customizing notification preferences.

6. *Provide Interactive Weather Maps:*


- Integrate interactive radar and satellite maps to offer users a
visual representation of weather patterns and developments.

7. *Enhance User Experience:*


- Design an intuitive and visually appealing interface that
ensures ease of use and accessibility across different devices and
platforms.

8. *Support Informed Decision-Making:*


- Empower users to make informed decisions about their daily
activities, travel plans, and outdoor events based on accurate and
detailed weather information.

By fulfilling these purposes, the weather app aims to become an


essential tool for users, helping them navigate and adapt to
weather conditions with greater ease and safety.

1
Operating

An up-to-date operating system is a requirement for many online


programs. Windows XP, 2000, NT, or 98 are usually acceptable. For Mac
users, you will need System 8.1 or higher. If you're not sure which
operating system you have, or whether it's compatible, contact your
enrollment advisor.

E-mail Address

E-mail is one tech component that's free. Most students have their own
private e-mail account through Gmail, Yahoo, Hotmail, or otherwise. If
you don't, set one up. You may also need to set up a school-based e-
mail account at your new college.

Microsoft Office (Word, Excel, PowerPoint, Publisher, Access)

For word processing and data analysis projects, you'll need


programs that can create text documents and spreadsheets. Microsoft
Office is the most common suite for this purpose. If you don't have
these programs installed on your computer, check with your school
before you purchase them. They may be supplied as part of your course
materials.

Programming Languages:

Three of the most important “front end” languages are HTML, CSS, and
JavaScript. These all have specific uses, and all three are used to design
websites. They help define form, function, and style – and are all
necessary skills to become web developer.

1
HT

This is one of the fundamental building blocks of the web. HTML, or


“HyperText Markup Language,”

Has been around in some form since roughly 1993, when it was created
by physicist Tim Berners-Lee. It’s now in its fifth generation, HTML5.

HTML isn’t a programming language, rather it’s a “Markup language.” It


uses a syntax of tags to change the way text is displayed, for instance. It
can also define where images go on a page.

What’s great is that HTML is relatively simple to learn. It provides a


great place to start for people who don’t have experience with
programming languages to learn the basics of coding.

CSS

CSS or “Cascading Style Sheets” works with HTML to create the format
for web pages. It works on top of the foundation of a page that was
created with HTML. It also helps adapt pages to different formats
optimized for desktops or mobile devices. The latest standard is CSS3,
meaning they are in their third generation.

CSS is what gives websites their polished and professional look. It also
allows for the addition of interactive elements like background color,
headers, shapes, graphics, and more that make websites and web
applications much more engaging to the viewer.

1
JavaScript

JavaScript, which is often abbreviated to JS, is another front-end


programming language that is one of the core technologies of the
World Wide Web, alongside HTML and CSS. As of 2022, 98% of
websites use JavaScript on the client side for webpage behavior, often
incorporating third-party libraries like JQuery. Whereas HTML & CSS are
used to control presentation, formatting, and layout, JavaScript is used
to control the behavior of different web elements.

It is important to learn HTML and CSS before learning JavaScript, since


HTML and CSS are the core technologies for building web pages and
applications. HTML defines the structure of your content, CSS
determines the style and layout, and JavaScript makes the content
interactive; therefore, it makes the most sense to learn them in that
order. JavaScript incorporates valuable skills such as object-oriented,
functional, and imperative styles of programming. Beginner developers,
in turn, can apply these skills to any new language they want to learn,
like Python and C#.

Understanding how to program in JavaScript is essential to landing any


web development job. JavaScript is more complex than both HTML and
CSS. However, that doesn’t mean it’s beyond anyone’s grasp. Both
professionals and amateur developers both use JavaScript code to
make professional-looking websites.

1
.

1
IMPLEMENTATION

A virtual assistant is working on a artificial way who provides


administrative services to clients while they are busy in office. This
virtual assistant typically operates out easy work and access the
necessary planning documents, such as shared calendars, remotely.

A virtual assistant is a self-employed worker who specializes in offering


administrative services to clients from a remote location, usually a
home office.

Typical tasks a virtual assistant might perform include scheduling


appointments, making phone calls, making travel arrangements, and
managing your email accounts.
Some virtual assistants specialize in offering bookkeeping, social media,
and marketing services.

For an user, one advantage of using a virtual assistant is the flexibility to


contract for just the services they need and zero cost with high
efficiency.

The specific duties of a virtual assistant vary according to the needs of


the user and the terms of the user’s condition. Some virtual assistants
handle clerical and bookkeeping tasks, while others may post regular
updates to social media or reading articles for a blog.

A well-rounded virtual assistant may also handle travel arrangements,


appointment scheduling, data entry, and online file storage. For small
business owners, hiring a virtual assistant can help them free up
valuable hours to focus on growing the business and generating
revenue.

1
It can be easier and more cost-effective to outsource tasks that are
tedious and time-consuming to someone who is skilled at them. A
computer primarily based approach for performing a command via a
voice consumer interface on a subset of objects.

The subset is selected from a fixed of items, each having an object type
at least one taggable field is associated with the object type and has a
corresponding value. The set of objects is saved in the laptop memory.

An utterance is acquired from the person and consists of a command,


an object type choice, a tag-gable field selection, and a price for the
taggable discipline.

Responsive to the utterance, at least one item is retrieved from the set
of gadgets, the item of the sort selected through the user and having a
price within the taggable area selection that matches the taggable field
fee obtained from the user the command is done on the item. The
object includes textual content that’s converted to voice output .

They envisioned that someday computers will recognize natural


language and count on what we need, whilst and where we need it, and
proactively whole responsibilities on our behalf.

2
IMPLEMENTATION DETAILS

Setting up the environment to code:

The first and foremost thing for an A.I. assistant is to speak. To make
our bot(virtual assistant) talk, we will code a speak() function. This
function will take audio as an argument, and then, it will pronounce it.

Now, I will start by stating what I want this program to do. This program
will run specific commands once a wake word is given by the user’s
voice. This program will then execute those commands audibly back to
the user.

The commands to be executed are as follows:

1. Say the greeting when user run the program.


2. Get the date for the user.
3. Get the time for the user.
4. Get the browser command to the user.
5. Get weather command for the user.
6. Search online command for user.

2
WORKING OF VIRTUAL ASSISTANTS

There are many virtual assistant apps available in the market


nowadays. Most of them work on the same technique as discussed in a
stepwise manner below:

1. First and foremost step while using assistant is that it needs to be


activated. It can be

2
2

2
3. activated by compatible input methods like voice, text

4. After the assistant is activated by the input method the request


made in the form of input goes to the server of the company which
developed that particular virtual assistant.

5. When the input reaches the server it tries to examine the input with
the help of an algorithm to match it with the available commands.

6. The virtual assistant may or may not recognize the user’s command
fully based on what percent of the information input by the user is
understood by the virtual assistant. This is the reason for not getting
the accurate response all the time. When the virtual assistant is
unable to comprehend the user’s input it may give a warning about
not actually understanding the input.

7. Some offline commands like “turn on the light” and “pause the
music” do not require communication of virtual assistant with the
server.

8. Next step is the response from the server to virtual assistant.

7. The user may then get the response from virtual assistant. The
response can be in any form from text to audio.

It starts with a signal word. Users say the names of their voice
assistants for the same reason. They might say, “Hey Siri!” or simply,
“Alexa!” Whatever the signal word is, it wakes up the device. It signals
to the voice assistant that it should begin paying attention. After the
voice assistant hears its signal word, it starts to listen. The device waits
for a pause to know you’ve finished your request. The voice assistant

2
then sends our request over to its source code. Once in the source
code, our request is compared to other requests.

It’s split into separate commands that our voice assistant can
understand. The source code then sends these commands back to the
voice assistant. Once it receives the commands, the voice assistant
knows what to do next.

If it understands, the voice assistant will carry out the task we asked
for. For example, “Hey NOVA! What’s the weather?” NOVA reports
back to us in seconds. The more directions the devices receive, the
better and faster they get at fulfilling our requests.

The user gives the voice input through microphone and the assistant is
triggered by the wake up word and performs the STT (Speech to Text)
and converts it into a text and understands the Voice input and further
performs the task said by the user repeatedly and delivers it via TTS
(Text to Speech) module via AI Voice.

These are the important features of the voice assistant but other than
this, we can do an plenty of things with the assistant.

List of features that can be done with the assistant:

- Playing some video which, the user wants to see.

- Telling some random fact at the start of the day with which the
user can do their work in an informative way and the user will also
learn something new.

- One of the features which will be there in every assistant is


playing some game so that the user can spend their free time in a
fun way.

2
- Users might forget to turn off the system which might contain
some useful data but with a voice assistant, we can do that even
after leaving the place where the system is just by commanding
the assistant to turn the system off.

- As discussed about the mandatory features to be listed in voice


assistant are implemented in this work, brief explanation is given
below.

API CALLS

We have used API keys for getting news information from news api and
weather forecast from open weather map which can accurately fetch
information and give results to the user.

SYSTEM CALLS

In this feature, we have used OS & Web Browser Module to access the
desktop, calculator, task manager, command prompt & user folder. This
can also restart the pc and open the chrome application.

CONTENT EXTRATION

This can Perform content extraction from YouTube, Wikipedia and


Chrome using the web driver module from selenium which provides all
the implementations for the web drive like searching for a specific
video to play, to get a specific information in google or from Wikipedia.

2
2
FLOW

2
Feasibility

Feasibility study can help you determine whether or not you should
proceed with your project. It is essential to evaluate cost and benefit. It
is essential to evaluate cost and benefit of the proposed system. Five
types of feasibility study are taken into consideration.

Technical feasibility: It includes finding out technologies for the


project, both hardware and software. For virtual assistant, user must
have microphone to convey their message and a speaker to listen when
system speaks. These are very cheap now a days and everyone
generally possess them. Besides, system needs internet connection.
While using, make sure you have a steady internet connection. It is also
not an issue in this era where almost every home or office has Wi-Fi.

Operational feasibility: It is the ease and simplicity of operation of


proposed system. System does not require any special skill set for users
to operate it. In fact, it is designed to be used by almost everyone. Kids
who still don’t know to write can read out problems for system and get
answers.

Economic feasibility: Here, we find the total cost and benefit of the
proposed system over current system. For this project, the main cost is
documentation cost. User also, would have to pay for microphone and
speakers. Again, they are cheap and available. As far as maintenance is
concerned, it won’t cost too much.

Organizational feasibility: This shows the management and


organizational structure of the project. This project is not built by a
team. The management tasks are all to be carried out by a single
person. That won’t create any management issues and will increase the
feasibility of the project.

2
Cultural feasibility: It deals with compatibility of the project with
cultural environment. Virtual assistant is built in accordance with the
general culture. This project is technically feasible with no external
hardware requirements. Also, it is simple in operation and does not
cost training or repairs. Overall feasibility study of the project reveals
that the goals of the proposed system are achievable. Decision is taken
to proceed with the project.

3
FEATURES & BENEFITS

Companies are investing in harnessing the power of Speech Recognition


and a key testimony to this fact is the penetration of newer offerings
such as Alex (Echo) from Amazon in addition to existing behemoths
such as Sir (Apple) and (Microsoft). On the flipside, customer-facing
enterprises are realizing the intuitive benefits of voice-based assistants
to modernize and strengthen the customer support apparatus.
Remote Access

The virtual resources let the user access support systems through the
natural course of speech without the need for being present at a specific
location/access a dedicated device. Plus, the program lets users find
answers, initiate transactions, resolve issues and do a lot more without
typing.
Minimal Hardware Requirement

Since voice assistants have been developed to work with little hardware
intervention, the user can get information on their personal devices such
as smart phones or PC.
Cost-effective Package

The software product is offered as a package through a single


application with a simple interface and easy integration. It nearly works
on the concept of Plug and Play and therefore the monetary implications
work out to be optimal.

3
Results on the Go

The most intriguing feature of Virtual Assistants is that the user can
perform a search or initiate a query anywhere using mobile devices. The
bare minimum requirement is internet/phone connectivity.
. Time – Saver

Imagine an interactive system where there is a drastic reduction in the


time required to access the support by eliminating unwanted options and
mediums. A Virtual Assistant helps in factoring time-saving choices for
the user to help him/her exit quickly after receiving the required
assistance.
Available in Major Languages

Stakeholders concerned about offering manned support in multiple


languages can breathe easy with Voice Assistant integration. It supports
major languages and dialects around the world, helping in localizing
support.

3
ADVANTAGES:-
 These applications make small and smart hand held devices
to combine
 Multiple features
 They allow you to export and import data.
 Store various information
 Make to do lists.
 Recognizes voice commands
 Controls various applications of device
 Provides services regarding your location
 Helps to plan your whole day

DISADVANTAGES:-
 Listening problem
VPA get problem to process wrong pronounced words and miscellaneous words

 Silent mode support


VPA gives response in voice output thus it doesn’t work property in silent mode

 Navigation languages
Most of VPAs can understand only English language

 Internet access
VPA needs internet connection to give desired output

3
CONCLUSION

Virtual Personal Assistants are very effective way to organize your


schedule. Now there are many Smart Personal Digital Assistant
applications available in market for various device platforms.

These new Software Applications are performing really well then PDA
devices as they provided with all resources of your smart phone.

VPAs are also reliable than Human Personal Assistant because, VPAs
are more portable and you can use them anytime .They also have IOT
of information than any assistant as they connected with internet.

In this paper, we researched about a web based AI chat bot which is


based on Google Assistant API, JavaScript, Python, CSS and HTML. We
created text based input and output web interface and code pattern
uses Google API Dialog Flow to control the conversation flow between
user and chat bot.

Our recommendation to disclose to customers is that they are


interacting with a non-human interlocutor. By showing that CAs can be
the source of persuasive messages, we provide evidence that
attempting to fool customers into believing they are interacting with a
human might not be necessary nor desirable.

The focus should be on employing strategies to achieve greater human


likeness through anthropomorphism by indicating, for instance,
identity, small-talk, and empathy, which we have shown to have a
positive effect on user compliance. When employing CAs, and chat bots

3
in particular, providers should design dialogs as carefully as they design
the user interface. Besides focusing on dialogs that are as close as
possible to human-human communications, providers can employ and
test a variety of other strategies and techniques. AI-based CAs have
become increasingly popular in various settings and potentially offer a
number of time- and cost-saving opportunities.

However, many users still experience unsatisfactory encounters with


chat bots (e.g., high failure rates), which might result in skepticism and
resistance against the technology, potentially inhibiting that users
comply with recommendations and requests made by the chat bot.

In our study we designed a web-based AI application to show how


Machine Learning, Python & JavaScript techniques increase user
compliance with a chat bot’s request for service feedback. Our study is
thus an initial step towards better understanding how AI-based CAs
may improve user compliance by leveraging the effects of Machine
learning and AI as the need to stay consistent in the context of
electronic markets and customer service.

Consequently, this piece of research extends prior knowledge of CAs as


anthropomorphic information agents in customer-service. We hope
that our study provides impetus for future research on compliance
mechanisms in CAs and improving AI-based abilities in and beyond
electronic markets and customer self-service contexts. The paper
provides several avenues for future research focusing on the design of
chat bot as information agents and may help in improving the
interaction of AI-based CAs through user compliance and feedback.

Moreover, with the rise of AI and other technological advances,


intelligent CAs will become even more important in the future and will

3
further influence user experiences in, for example, decision-makings,
on boarding journeys, and technology adoptions. Since the study was
conducted in an experimental setting with a simplified version of an
instant messaging application, future research needs to confirm and
refine the results in a more realistic setting, such as in a field study.

In future research we need to examine how to influence users to start


the chat bot interaction but who just simply end the questionnaire after
their inquiry has been solved, a common user behavior in service
contexts that does not even allow for the emergence of survey
requests. Furthermore, our sample consisted of only German
participants, so that future researchers may want to test the
investigated effects in other cultural contexts.

Users might get used to the presented cues and will respond differently
over time, once they are acquainted to the new technology and the
influences attached to it.

3
REFERENCE

 https://www.scribd.com/document/525812125/Virtual-
Assistant-Project-REPORT

 https://www.studocu.com/in/document/manonmaniam-
sundaranar-university/computer-graphics-and-
visualization/project-report-on-virtual-assistant-subm/26288529

 https://www.academia.edu/40229169/PROJECT_REPORT_ON_V
IRTUAL_ASSISTANT_SUBMITTED_BY_NAAZNEEN_JATU

 https://www.researchgate.net/figure/Virtual-Assistant-
Intelligent-Module-Architecture_fig1_346823989

3
5

Table of Contents

Sr.No Title Page No

1 Introduction 6
1.1 Background 7
1.2 Objectives 8
1.3 Purpose and Scope 9

2 Survey of Technology 10

3 Requirement and Analysis 12

3.1 Feasibility study


12
3.2 Hardware and Software Requirements
13

4 System Design 14

4.1 ER Diagram 14
4.2 Activity Diagram 15
4.3 Use Case Diagram 16
4.4 Sequence Diagram 17
4.5 Snapshot 18
4.6 Data Flow Diagram 20
4.7 Source Code 21

Reference and Bibliography 23


6

Weather App

1. INTRODUCTION
Weather forecasting is the application of science and technology to predict the conditions of the
atmosphere for a given location and time.

Human beings have attempted to predict the weather informally for millennia and formally since
the 19th century. Weather forecasts are made by collecting quantitative data about the current
state of the atmosphere at a given place and using meteorology to project how the atmosphere
will change.

Once a human-only endeavor based mainly upon changes in barometric pressure, current
weather conditions, and sky condition or cloud cover, weather forecasting now relies on
computer-based models that take many atmospheric factors into account. Human input is still
required to pick the best possible forecast model to base the forecast upon, which involves
pattern recognition skills, tele-connections, knowledge of model performance, and knowledge of
model biases. The inaccuracy of forecasting is due to the chaotic nature of the atmosphere, the
massive computational power required to solve the equations that describe the atmosphere, the
error involved in measuring the initial conditions, and an incomplete understanding of
atmospheric processes. Hence, forecasts become less accurate as the difference between current
time and the time for which the forecast is being made (the range of the forecast) increases. The
use of ensembles and model consensus help narrow the error and pick the most likely outcome.

There are a variety of end uses to weather forecasts. Weather warnings are important forecasts
because they are used to protect life and property. Forecasts based on temperature and
precipitation are important to agriculture, and therefore to traders within commodity markets.

Temperature forecasts are used by utility companies to estimate demand over coming days. On
an everyday basis, people use weather forecasts to determine what to wear on a given day. Since
outdoor activities are severely curtailed by heavy rain, snow and wind chill, forecasts can be
used to plan activities around these events, and to plan ahead and survive them. In 2009, the US
spent $5.1 billion on weather forecasting.

1.1 BACKGROUND
There are numerous apps and websites available on the Internet to get accurate weather
radar data. However, many require a fee, either to purchase the app or to subscribe to the radar
data itself. While most of these paid options will give you real-time live radar data, a few free
radar websites and apps offer user-friendly radar imagery with minimal delay. A few examples
of both free to download and use sites available in market are discussed in this section along with
the tasks they can provide and their drawbacks.
7

National Weather Service

Website: https://radar.weather.gov

The National Weather Service offers radar data free from its website and is relatively easy to use,
and the site was recently updated, making it easier to use than before. A new user interface
allows users to zoom in and out easily, and it’s usable on both desktops and mobile phones. You
can view animations and view other radar products that show wind velocity and rainfall as well.
The site also layers warning boxes over the imagery so you can see which storms have severe
warnings.

Despite the drastically improved interface, many of the old negatives remain. The radar
resolution is still a bit grainy, and it isn’t as quick to update as some other apps. There’s still no
app either, but that’s due to a non-compete clause with the private industry in Federal law. So
you won’t get notifications of severe weather for your area.

Pros

 Offers a full suite of radar products for free

 Much improved user interface which is easy to navigate on a mobile device


Cons

 Resolution is grainy

AccuWeather

Website: https://www.accuweather.com/en/us/national/weather-radar

AccuWeather is another app that does a whole lot more than just radar. Along with radar, you
also have access to AccuWeather’s 15-day forecasts and a host of other weather data. The radar
also has a future radar option, but unlike the Weather Channel’s, it only goes out three hours in
advance. Zooming in and out is easy too.

While it doesn’t smooth the radar images to the degree The Weather Channel’s app does, it is
still enough that it may cause some inaccuracy. The user interface is not as intuitive as others on
our list, but in terms of the amount of data available, it is one of the more feature-
8

Pros

 Access to AccuWeather content

 Lots of data options


Cons

 Radar images aren’t the best resolution

 Future radar only goes out 3 hours

1.2 OBJECTIVES

Weather forecasting is very necessary for our daily lives. It helps us to prepare and make plans
depending on the expectations. Many weather stations are placed around the world fetching real-
time weather elements’ data.

This data includes three components namely

 Today’s weather

 Hourly weather

 Weekly weather

Where we will get to know temperature, sunrise-sunset timing, weather details through icons
and weeklong weather forecast. With these, you can analyze trends and know the prediction of
tomorrow’s data or forecast the weather.

Most of these large chunks of data are processed at base stations using powerful and
sophisticated systems. They then share this data, (either analyzed over a long time or real-time

data) through APIs. Companies that do this includes OpenWeatherMap and Dark
9

1.3 PURPOSE AND SCOPE

Purpose

The purpose of developing weather app is to fetch the weather data from all over the world and
to provide it to people at their fingertips with simple and easy to use interface. Another purpose
for developing this site is to reduce the risk of distorting daily plans and arrangements which can
be ruined if we don’t know the weather around us since nobody really knows for certain what is
likely to happen in the nearest minute.

Scope

In ancient times, forecasting was mostly based on weather pattern observation. Over the years,
the study of weather patterns has resulted in various techniques for rainfall forecasting. Present
rainfall forecasting embodies a combination of computer models, interpretation, and an
acquaintance of weather patterns. Now days we use many advanced technologies for weather
forecasting such as Ensemble Forecasting, Radar, Weather Satellites and Weather Maps and
in future we will evolve more. The scope of the project is the system on which the Node.js is
installed, i.e. the project is developed as a desktop application, and it will work for a particular.
But later on the project can be modified to operate it online.

2. SURVEY OF TECHNOLOGY

Next Js
1

Created by Vercel, a cloud company for hosting frontends and serverless functions, Next.js is
a React framework capable of creating applications that run both on the client and the server,
otherwise known as Universal JavaScript applications. This framework helps you build
universal apps faster by streamlining basic features like client-side routing and page layout
while simplifying advance features like server-side rendering and code splitting.

Node Js

Node Js is a Java Runtime Environment. A Java Runtime Environment (JRE) is software that is
made to execute other software. A JRE often contains three of the following elements: A Java
Virtual Machine, a Java Classloader, and a Java Class Library. The ClassLoader is used to load
everything needed to execute a program. The Java Class Library contains a set (or library) of
reusable code that can be used to make programs, and the Java Virtual Machine allows a
computer to execute programs and applications written in Java.
Node JS contains all these elements thanks to Chrome’s V8, which was the engine used to build
it. In short, Node Js is a Javascript Runtime Environment, and it’s used to execute JavaScript
code outside of a browser.

Npm

npm is the package manager for the Node JavaScript platform. It puts modules in place so that
node can find them, and manages dependency conflicts intelligently.

It is extremely configurable to support a wide variety of use cases. Most commonly, it is used to
publish, discover, install, and develop node programs.

Javascript

JavaScript is a text-based programming language used both on the client-side and server-side
that allows you to make web pages interactive. Where HTML and CSS are languages that give
structure and style to web pages, JavaScript gives web pages interactive elements that engage a
user. Common examples of JavaScript that you might use every day include the search box on
Amazon, a news recap video embedded on The New York Times, or refreshing your Twitter
feed.

React

React. js is an open-source JavaScript library that is used for building user interfaces specifically
for single-page applications......React allows developers to create large web applications that can
change data, without reloading the page. The main purpose of React is to be fast, scalable, and
simple.

OpenWeatherMap
1

OpenWeatherMap is an online service, owned by OpenWeather Ltd, that provides


global weather data via API, including current weather data, forecasts, nowcasts and historical
weather data for any geographical location. The company provides a minute-by-minute
hyperlocal precipitation forecast for any location.

3. REQUIREMENT AND ANALYSIS

3.1 Feasibility Study

Feasibility study can help you determine whether or not you should proceed with your
project. It is essential to evaluate cost and benefit. It is essential to evaluate cost and benefit of
the proposed system. Five types of feasibility study are taken into consideration.
1

Technical feasibility: It includes finding out technologies for the project, both hardware and
software. For weather app user must stable internet connection. While using weather app, make
sure you have a steady internet connection. It is also not an issue in this era where almost every
home or office has Wi-Fi.

Operational feasibility: It is the ease and simplicity of operation of proposed system.


System does not require any special skill set for users to operate it. In fact, it is designed to be
used by almost everyone. Kids who still don’t know to write can read out problems for system
and get answers.

Economical feasibility: Here, we find the total cost and benefit of the proposed system
over current system. For this project, the main cost is documentation cost. User just needs to pay
for their internet charge.

This project is technically feasible with no external hardware requirements. Also it is


simple in operation and does not cost training or repairs. Overall feasibility study of the
project reveals that the goals of the proposed system are achievable. Decision is taken to
proceed with the project.

3.2 HARDWARE AND SOFTWARE REQUIREMENTS

The software is designed to be light-weighted so that it doesn’t be a burden on the


machine running it. This system is being build keeping in mind the generally available hardware
and software compatibility. Here are the minimum hardware and software requirement for
virtual assistant.

Hardware:
1

 Pentium-pro processor or later.

 RAM 512MB or more.

 Web-Browse

Software:

 Windows 7(32-bit) or above.

 IDE (vs-code)

 Chrome

 Node Js

4. SYSTEM DESIGN

4.1 ER DIAGRAM
1

4.2 ACTIVITY DIAGRAM


1

4.3 USE CASE


1

4.4 SEQUENCE
1

4.5 SNAPSHOT
1
1
2

4.6 DATA FLOW DIAGRAM

4.7 SOURCE CODE


2

CITY.JS

import React from "react";


import cities from "../../lib/city.list.json";
import Head from "next/head";
import moment from "moment-timezone";
import TodaysWeather from "../../components/TodaysWeather";
import HourlyWeather from "../../components/HourlyWeather";
import WeeklyWeather from
"../../components/WeeklyWeather"; import SearchBox from
"../../components/SearchBox";
import Link from "next/link";

export async function getServerSideProps(context) {


const city = getCity(context.params.city);

if (!city) {
return {
notFound: true,
};
}

const res = await fetch(


`https://api.openweathermap.org/data/2.5/onecall?lat=${city.coord.lat}&lon=$
{city.coord.lon}&appid=${process.env.API_KEY}&units=metric&exclude=minutely`
);

const data = await res.json();

if (!data) {
return {
notFound: true,
};
}

const hourlyWeather = getHourlyWeather(data.hourly, data.timezone);

return {
props: {
city: city,
timezone: data.timezone,
currentWeather: data.current,
weeklyWeather: data.daily,
hourlyWeather: hourlyWeather,
},
};
}

const getCity = (param) => {


const cityParam = param.trim();
// get id of city
2

const splitCity = cityParam.split("-");


const id = splitCity[splitCity.length - 1];

if (!id) {
return null;
}

const city = cities.find((city) => city.id.toString() == id);

if (city) {
return city;
} else {
return null;
}
};

const getHourlyWeather = (hourlyData, timezone) => {


const endOfDay = moment().tz(timezone).endOf("day").valueOf();
const eodTimeStamp = Math.floor(endOfDay / 1000);

const todaysData = hourlyData.filter((data) => data.dt < eodTimeStamp);

return todaysData;
};

export default function City({


hourlyWeather,
currentWeather,
weeklyWeather,
city,
timezone,
}) {

return (
<div>
<Head>
<title>{city.name} Weather App Project</title>
</Head>

<div className="page-wrapper">
<div className="container">
<Link href="/">
<a className="back-link"> &larr; Home</a>
</Link>
<SearchBox placeholder="Search for another city"/>

<TodaysWeather city={city}
weather={weeklyWeather[0]}
timezone={timezone} />

<HourlyWeather hourlyWeather={hourlyWeather} timezone={timezone} />


2

<WeeklyWeather weeklyWeather={weeklyWeather} timezone={timezone} />

</div>
</div>
</div>
);
}

INDEX.JS

import Head from "next/head";


import SearchBox from "../components/SearchBox";
import FamousPlaces from
"../components/FamousPlaces";

export default function Home() {


return (
<div>
<head>
<title>Weather App</title>
</head>
<div className="home">
<div className="container">
<SearchBox placeholder="Search for a city..." />
<FamousPlaces />
</div>
</div>
</div>
);
}
2

REFERENCE AND BIBLIOGRAPHY

Websites referred

▪ www.stackoverflow.com

▪ www.pythonprogramming.net

▪ www.codecademy.com

▪ www.tutorialspoint.com

▪ www.google.co.in

THANK YOU
 www.stackoverflow.comTHANK YOU

You might also like