{"id":16196206,"url":"https://github.com/debasishray16/weathercast","last_synced_at":"2025-04-07T16:51:04.436Z","repository":{"id":215960552,"uuid":"734343357","full_name":"debasishray16/WeatherCast","owner":"debasishray16","description":"WeatherCast is a GUI-based Appication used to navigate through cities according to user's input to know about climatic and geographical condition like Atmospheric Pressure,, Wind Speed , Description etc.","archived":false,"fork":false,"pushed_at":"2024-01-03T18:15:09.000Z","size":138,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-13T19:16:12.775Z","etag":null,"topics":["gui-application","internship-task","json-api","oasis-infobyte","tkinter-python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/debasishray16.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2023-12-21T12:56:04.000Z","updated_at":"2024-09-25T19:25:12.000Z","dependencies_parsed_at":"2024-01-07T17:48:44.299Z","dependency_job_id":"4b946f6f-96df-4a74-bb0a-690d97e4c19a","html_url":"https://github.com/debasishray16/WeatherCast","commit_stats":null,"previous_names":["debasishray16/weathercast"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/debasishray16%2FWeatherCast","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/debasishray16%2FWeatherCast/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/debasishray16%2FWeatherCast/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/debasishray16%2FWeatherCast/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/debasishray16","download_url":"https://codeload.github.com/debasishray16/WeatherCast/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247694894,"owners_count":20980731,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["gui-application","internship-task","json-api","oasis-infobyte","tkinter-python"],"created_at":"2024-10-10T08:46:54.673Z","updated_at":"2025-04-07T16:51:04.392Z","avatar_url":"https://github.com/debasishray16.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# WeatherCast\n\nWeatherCast is a GUI-based application designed to display the latest information about climatic situations and factors like:\n\n1. Humidity (in percentage)\n2. Atmospheric Pressure (in mB)\n3. Description (about weather conditions)\n4. Wind Speed (in knots)\n\nThis application aims to provide life updates about climatic conditions based on user input. It even provides the current date and time of place.\n\n## Installation\n\nUse the package manager [pip](https://pip.pypa.io/en/stable/) to install certain packages.\n\n```bash\npip install tkinter\npip install pytz\npip install timezonefinder\npip install geopy\n\n```\n\n## Usage\n\n```python\nfrom tkinter import *\nimport tkinter as tk\nfrom geopy.geocoders import Photon\nfrom tkinter import ttk,messagebox\nfrom timezonefinder import TimezoneFinder\nfrom datetime import datetime\n\n\nimport requests\nimport pytz\n```\n\n## API usage\n\nWebsite used: OpenWeatherMap\n[OpenWeather API](https://openweathermap.org/)\n\n\n\nBefore getting your API key, You need to login into it. If you are first time user, Create an account and get access to API key.\nAfter getting your own API key and add it to following code:\n``` python\ndef getWeather():\n    try:\n        city=textfield.get()\n\n        geolocator=Photon(user_agent=\"geoapiExercises\")\n        location=geolocator.geocode(city)\n        obj=TimezoneFinder()\n    \n        result=obj.timezone_at(lng=location.longitude,lat=location.latitude)\n        home=pytz.timezone(result)\n        local_time=datetime.now(home)\n        current_time=local_time.strftime(\"%I:%M %p\")\n        clock.config(text=current_time)\n        name.config(text=\"Current Time\")\n\n        # weather api add here\n        api = \"https://api.openweathermap.org/data/2.5/weather?q=\"+city+\"\u0026appid=_____________________________\"\n\n        json_data=requests.get(api).json()\n        condition=json_data['weather'][0]['main']\n        description=json_data['weather'][0]['description']\n        temp=int(json_data['main']['temp']-273.15)\n        pressure=json_data['main']['pressure']\n        humidity=json_data['main']['humidity']\n        wind=json_data['wind']['speed']\n\n\n```\n\n\n\n## Application Insights\n\n![Preview 1](images/preview1.jpg)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdebasishray16%2Fweathercast","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdebasishray16%2Fweathercast","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdebasishray16%2Fweathercast/lists"}