Skip to main content

Obtain local weather information based on zipcode.

Project description

Weather Wise

Overview

Get the current weather forecast and other weather related information from a zipcode. This module uses the U.S. Census 2022 Gazetteer (Zip Code Tabulation Areas). The original file has been modified to JSON.

Usage

import json
from weather_wise.weather_wise import WeatherWise

weather = WeatherWise("32904")

# Internal weather methods.
print(weather._load_json_data())
print(weather._get_latitude_longitude())
print(weather._get_weather_forecast_url())
print(json.dumps(weather._get_weather_data(), indent=2))

# Get the short forecast.
short_forecast = weather.get_short_forecast()
print(short_forecast)

# Get the detailed forecast.
detailed_forecast = weather.get_detailed_forecast()
print(detailed_forecast)

# Get the temperature in fahrenheit.
temperature_in_fahrenheit = weather.get_temperature_in_fahrenheit(temperature_unit=True)
print(temperature_in_fahrenheit)

# Get the temperature in celsius.
temperature_in_celsius = weather.get_temperature_in_celsius()
print(temperature_in_celsius)

# Get the chance of rain.
chance_of_rain = weather.get_probability_of_precipitation()
print(chance_of_rain)

# Get the wind.
wind = weather.get_wind()
print(wind)

References

TODO

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

weather_wise-0.1.4.tar.gz (1.4 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

weather_wise-0.1.4-py3-none-any.whl (1.5 MB view details)

Uploaded Python 3

File details

Details for the file weather_wise-0.1.4.tar.gz.

File metadata

  • Download URL: weather_wise-0.1.4.tar.gz
  • Upload date:
  • Size: 1.4 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.2 CPython/3.10.6 Linux/5.15.133.1-microsoft-standard-WSL2

File hashes

Hashes for weather_wise-0.1.4.tar.gz
Algorithm Hash digest
SHA256 4d487558566f7961d48d0428c85550198e0622c9fa724742535e41f033970951
MD5 81704eb42b0983341ab678a6bbaeff81
BLAKE2b-256 177c0cd250360f3ec7326affa68d0aefae8461b46f1bd4918cd8929b2675a17a

See more details on using hashes here.

File details

Details for the file weather_wise-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: weather_wise-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 1.5 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.2 CPython/3.10.6 Linux/5.15.133.1-microsoft-standard-WSL2

File hashes

Hashes for weather_wise-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 fbc0471a21aaa97ff69c6ffdf204aa4811fa8f40f34266132488ac01d0c17d72
MD5 fe0e34c15030e50df60ef41c0c28ea8f
BLAKE2b-256 0f5475b19d6f457d364daf8b06b1377556226c80d53530693495b4fa6b9843cc

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page