Futurastic Project

You might also like

Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 2

Customization and Personalization:

Users can typically customize the app to suit their preferences, such as choosing
their preferred units (e.g., Celsius or Fahrenheit) and adding favorite locations
for quick access.
Weather Widgets:

On smartphones, weather apps may provide widgets that display current weather
information on the home screen without the need to open the app.
Astronomical Data:

Some weather apps include information on sunrise, sunset, moon phases, and other
celestial events.
Additional Features:

Weather apps may also include additional features like pollen forecasts, air
quality index (AQI) information, UV index reports, and more, depending on the app's
complexity
Current Weather Information:

Temperature: The app displays the current temperature, usually in degrees Celsius
or Fahrenheit.
Conditions: It provides a brief description of the current weather conditions, such
as "sunny," "cloudy," "rainy," "snowy," or "partly cloudy."
Humidity: The humidity level, often expressed as a percentage, is shown to give
users an idea of the moisture content in the air.
Wind Speed and Direction: Information about the current wind speed and direction is
essential for outdoor activities and planning.
Hourly and Daily Forecasts:

Hourly Forecast: Weather apps often provide hourly forecasts for the next 24 to 48
hours, including temperature, precipitation chances, and wind information.
Daily Forecast: Users can check forecasts for the next several days, which include
high and low temperatures, precipitation probability, and other relevant details.
Interactive Maps:

Many weather apps feature interactive maps that allow users to explore weather
patterns and conditions in their area or other locations of interest. These maps
may include radar, satellite imagery, and weather overlays.
Severe Weather Alerts:

Weather apps can send alerts and notifications to users for severe weather events
like thunderstorms, hurricanes, tornadoes, or extreme temperature conditions,
helping them stay safe and prepared.
Location-Based Forecasting:

Weather apps ofte

# import required libraries


import requests
from bs4 import BeautifulSoup
from win10toast import ToastNotifier

# create an object to ToastNotifier class


n = ToastNotifier()
# define a function
def getdata(url):
r = requests.get(url)
return r.text

htmldata = getdata("https://weather.com/en-IN/weather/today/l/25.59,85.14?
par=google&temp=c/")

soup = BeautifulSoup(htmldata, 'html.parser')

current_temp = soup.find_all("span", class_= "_-_-components-src-organism-


CurrentConditions-CurrentConditions--tempValue--MHmYY")

chances_rain = soup.find_all("div", class_= "_-_-components-src-organism-


CurrentConditions-CurrentConditions--precipValue--2aJSf")

temp = (str(current_temp))

temp_rain = str(chances_rain)

result = "current_temp " + temp[128:-9] + " in patna bihar" + "\n" +


temp_rain[131:-14]
n.show_toast("live Weather update",
result, duration = 10)

You might also like