WETHWER APP PRO - Merged
WETHWER APP PRO - Merged
On
VIRTUAL ASSISTANT
Polytechnic college
Session: 2023-2024
Guided By Submitted By
HOD : Mr. SAMANT VERMA SUSHMA DEVI (21111C04057)
Mr. Raju Singh Paraste Mr. Samant Verma Mrs. Mranali Yadav
PROJECT ASSOCIATES
Sushma Devi
Anand Rathour
Arti Singh
Pushpendra Kewat
ACKNOWLEDGMEN
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
Certificate
Declaration
Acknowledgment
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
Key Features:
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.
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.
Stay ahead of the weather with [WETHER APP]. Download now and
never let the weather catch you by surprise again!,
2
OBJECTIVE
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.
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.
5
4. *Interactive Maps*:
- Weather radar showing precipitation.
- Satellite imagery for cloud cover and storm tracking.
- Temperature and wind speed maps.
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.
7
PROBLEM STAETEMENT
*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:*
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.
*Goals:*
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.
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
1
6. *Provide Interactive Weather Maps:*
- Integrate interactive radar and satellite maps to
offer users a visual representation of weather patterns
and developments.
1
HARDWARE AND SOFTWARE REQUIREMENTS
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.
1
Operating
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.
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
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.
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
1
.
1
IMPLEMENTATION
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.
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 .
2
IMPLEMENTATION DETAILS
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.
2
WORKING OF VIRTUAL ASSISTANTS
2
2
2
3. activated by compatible input methods like voice, text
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.
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.
- 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.
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.
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
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.
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.
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
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
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
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
Navigation languages
Most of VPAs can understand only English language
Internet access
VPA needs internet connection to give desired output
3
CONCLUSION
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.
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.
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.
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
1 Introduction 6
1.1 Background 7
1.2 Objectives 8
1.3 Purpose and Scope 9
2 Survey of Technology 10
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
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
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
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
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.
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
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
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.
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.
Hardware:
1
Web-Browse
Software:
IDE (vs-code)
Chrome
Node Js
4. SYSTEM DESIGN
4.1 ER DIAGRAM
1
4.4 SEQUENCE
1
4.5 SNAPSHOT
1
1
2
CITY.JS
if (!city) {
return {
notFound: true,
};
}
if (!data) {
return {
notFound: true,
};
}
return {
props: {
city: city,
timezone: data.timezone,
currentWeather: data.current,
weeklyWeather: data.daily,
hourlyWeather: hourlyWeather,
},
};
}
if (!id) {
return null;
}
if (city) {
return city;
} else {
return null;
}
};
return todaysData;
};
return (
<div>
<Head>
<title>{city.name} Weather App Project</title>
</Head>
<div className="page-wrapper">
<div className="container">
<Link href="/">
<a className="back-link"> ← Home</a>
</Link>
<SearchBox placeholder="Search for another city"/>
<TodaysWeather city={city}
weather={weeklyWeather[0]}
timezone={timezone} />
</div>
</div>
</div>
);
}
INDEX.JS
Websites referred
▪ www.stackoverflow.com
▪ www.pythonprogramming.net
▪ www.codecademy.com
▪ www.tutorialspoint.com
▪ www.google.co.in
THANK YOU
www.stackoverflow.comTHANK YOU