Neofetch/pfetch, but for weather

Overview

Wfetch

Neofetch/pfetch, but for weather

Logo

oxygen

contributions

Features

  • Information about the weather outside:

    1. Weather condition
    2. Temperature
    3. Humidity
    4. Pressure
    5. Wind
    6. Sunrise-sunset time
  • Cool logo for each weather condition

  • Abilty to choose logos

  • See weather at different places

Requirements

Python3

Installation

Install through pip

WIP

Or from github

git clone https://github.com/Gcat101/wfetch
cd wfetch
sh ./install.sh
cd ../

Usage

Get the weather at your current location:

wfetch

Specify the ascii logo:

wfetch --ascii="mist"

Get the weather from a different location:

wfetch --place="London, UK"

Get the manual:

wfetch --help
Comments
  • Unable to pull city data

    Unable to pull city data

    I am unable to pull my city data however, OWM does see my city on their site. I get a "Place not found" error.

    My city: Lake City, FL Listed here as Lake City, US I'm defaulted to Jacksonville when I run without --place

    Perhaps allow for selecting location based on location ID, which in my case would be the 4161187 part of the URL.

    Bug 
    opened by brandonneal 5
  • Error after update

    Error after update

    nodnarb@Odyssey:~/Downloads/Wfetch$ sudo ./install.sh Installing package requirements... Installing package... Cleaning up... Package Installed!

    Please add this line to your shell profile (You are using /bin/bash): 'export WEATHER_CLI_API='

    nodnarb@Odyssey:~/Downloads/Wfetch$ wfetch Traceback (most recent call last): File "/usr/local/bin/wfetch", line 81, in main try: ICON = open(os.path.join(ICONPATH, 'neutral', f'{STATUS}.txt')).read().splitlines() # Get neutral icon from /icons/neutral directory FileNotFoundError: [Errno 2] No such file or directory: '/home/nodnarb/.wfetch/icons/neutral/clear_sky.txt'

    During handling of the above exception, another exception occurred:

    Traceback (most recent call last): File "/usr/local/bin/wfetch", line 83, in main try: ICON = open(os.path.join(ICONPATH, ASCIITYPE, f'{STATUS}.txt')).read().splitlines() # Get icon from /icons/(day|night) directory FileNotFoundError: [Errno 2] No such file or directory: '/home/nodnarb/.wfetch/icons/night/clear_sky.txt'

    During handling of the above exception, another exception occurred:

    Traceback (most recent call last): File "/usr/local/bin/wfetch", line 125, in Fire(main) # Launch main function with arguments File "/home/nodnarb/.local/lib/python3.8/site-packages/fire/core.py", line 141, in Fire component_trace = _Fire(component, args, parsed_flag_args, context, name) File "/home/nodnarb/.local/lib/python3.8/site-packages/fire/core.py", line 466, in _Fire component, remaining_args = _CallAndUpdateTrace( File "/home/nodnarb/.local/lib/python3.8/site-packages/fire/core.py", line 681, in _CallAndUpdateTrace component = fn(*varargs, **kwargs) File "/usr/local/bin/wfetch", line 84, in main except FileNotFoundError: ICON = open(os.path.join(ICONPATH, 'unknown.txt')).read().splitlines() # If not found, display "?" FileNotFoundError: [Errno 2] No such file or directory: '/home/nodnarb/.wfetch/icons/unknown.txt' nodnarb@Odyssey:~/Downloads/Wfetch$

    I got an error after initially trying to update and thought I fat fingered it so, I removed all traces of wfetch from my system git cloned again and ran the install script now I'm getting this error. Also before I could run it I had to fix line 1 in install.sh because it read "#!bin/bash" instead of "#!/bin/bash"

    opened by brandonneal 2
  • Missing icons

    Missing icons

    Followed the instructions and got it to work after I manually copied the icons/ directory to /usr/local/bin which is not recommended, obviously.

    I don't have time right now to figure this out, but I guess you also need to copy the icons directory somewhere sane and then look for it there first.

    Otherwise, great work!

    Running on Ubuntu (Kubuntu) 20.04.3 LTS.

    Bug 
    opened by nicc777 2
  • Cleaned up the files and changed the installation script

    Cleaned up the files and changed the installation script

    • Fixed a typo in the README. 80298c1266aaf04ca53c9e2b3bf5d9ab1e902bf9
    • Added visual studio code and python files to ./.gitignore to remove the cache files. 88e8f988733d71b0400b9629eb4ca4df581bebdd

    Installation Script Changes: 30994164fc7c461ba93b28570eca60a49c0d82d1

    • Requires running with sudo using sudo bash install.sh to copy to /usr/local/bin/
    • Exits on command errors showing which command exited with error.
    • New Script Output (doesn't show pip output):
    ❯ sudo bash "install.sh"
    [sudo] password for pure-cheekbones: 
    Installing package requirements...
    Installing package...
    Cleaning up...
    Package Installed! 
    
    Please add this line to your shell profile (You are using /bin/bash):
    'export WEATHER_CLI_API=<your OWM api key>'
    
    opened by mina-andajos 1
  • Support XDG_CONFIG_HOME

    Support XDG_CONFIG_HOME

    I wanted to check out your project and when I installed it, I noticed it was wanting to put filed in my home directory and not in ~/.config per the XDG Base Directory standard. It was a pretty low lift to change a few things around.. All I did was check to see if XDG_CONFIG_HOME was set.. and if its set we put the icons in ~/.config/wfetch as apposed to ~/.wfetch. If the environment variable is unset I just default to your original values of using ~/.wfetch.

    opened by usmcamp0811 0
Releases(1.0)
Owner
G_cat
WHO?
G_cat
Design and build a wrapper for the Open Weather API current weather data service

Design and build a wrapper for the Open Weather API current weather data service that returns a city's temperature, with caching, also allowing for the temperature of the latest queried cities that are still validly cached to be retrieved.

Duan Rafael Ribeiro 1 Jun 27, 2022
Insane Weather Bot is here! Give suggestions, fork, and do much more to help us enhance the abilities of Insane Weather Bot.

Insane_Weather_Bot Insane Weather Bot is here! Give suggestions, fork, and do much more to help us enhance the abilities of Insane Weather Bot. Weathe

null 1 Jan 2, 2022
Weather Tracker, made with Python using Open Weather API

Weather Tracker Weather Tracker, made with Python using Open Weather API

Sahil Kumar 1 Feb 7, 2022
A thin Python Wrapper for the Dark Sky (formerly forecast.io) weather API

Dark Sky Wrapper This is a wrapper for the Dark Sky (formerly forecast.io) API. It allows you to get the weather for any location, now, in the past, o

Ze'ev Gilovitz 414 Nov 16, 2022
Python wrapper library for World Weather Online API

pywwo Python wrapper library for World Weather Online API using lxml.objectify How to use from pywwo import * setKey('<your_key>', 'free') w=LocalWeat

World Weather Online 20 Dec 19, 2022
Wetterdienst - Open weather data for humans

We are a group of like-minded people trying to make access to weather data in Python feel like a warm summer breeze, similar to other projects like rdwd for the R language, which originally drew our interest in this project.

null 226 Jan 4, 2023
Home Assistant for Opendata CWB. Get the weather forecast of the city in Taiwan.

Home assistant support for Opendata CWB. The readme in Traditional Chinese. This integration is based on OpenWeatherMap (@csparpa, pyowm) to develop.

null 11 Sep 30, 2022
Replacement for the default Dark Sky Home Assistant integration using Pirate Weather

Pirate Weather Integrations This integration is designed to replace the default Dark Sky integration in Home Assistant with a slightly modified, but f

Alexander Rey 129 Jan 6, 2023
This project checks the weather in the next 12 hours and sends an SMS to your phone number if it's going to rain to remind you to take your umbrella.

RainAlert-Request-Twilio This project checks the weather in the next 12 hours and sends an SMS to your phone number if it's going to rain to remind yo

null 9 Apr 15, 2022
Analog clock that shows the weather instead of the actual numerical hour it points to.

Eli's weatherClock An digital analog clock but instead of showing the hours, the clock shows the weather at that hour of the day. So instead of showin

Kovin 154 Dec 1, 2022
A Python interface between Earth Engine and xarray for processing weather and climate data

wxee What is wxee? wxee was built to make processing gridded, mesoscale time series weather and climate data quick and easy by integrating the data ca

Aaron Zuspan 160 Dec 31, 2022
Changes your desktop wallpaper based on the weather.

WallPaperChanger ??️ Description ⛈️ This Python script changes your desktop wallpaper based on the weather. Cloning ?? $ git clone https://github.com/

Clarence Yang 74 Nov 29, 2022
Framework to collect and process weather data from wttr.in.

Weathercrawler Automatic extraction and processing framework for weather data from wttr.in Installation tested with: Python 3.7.3 Python 3.9.4 git clo

Maurice Günder 0 Jul 26, 2021
Live Weather Updates using Flask and OpenWeather

AuraX Live Weather Updates using Flask and OpenWeather Installation To setup this project on your local machine, first clone this repository and insta

Ayush Gupta 3 Nov 2, 2021
Weather App using openweathermap API

This is my hobby project used to learn how to use public api for project.In this i used the api of openweathermap to featch the weather details of various city across the globe by giving city name as input.

Subramanya K S 1 Nov 6, 2021
Open Source Discord bot with many cool features like Weather, Balance, Avatar, User, Server, RP-commands, Gif search, YouTube search, VK post search etc.

Сокобот Дискорд бот с открытым исходным кодом. Содержит в себе экономику, полезные команды (!аватар, !юзер, !сервер и тд.), рп-команды (!обнять, !глад

serverok 2 Jan 16, 2022
Weather_besac is a French twitter bot that tweet the weather of the city of Besançon in Franche-Comté in France every day at 8am and 4pm.

Weather Bot Besac Weather_besac is a French twitter bot that tweet the weather of the city of Besançon in Franche-Comté in France every day at 8am and

Rgld_ 1 Nov 15, 2021
A python script that changes our background based on current weather and time of the day.

Desktop background on Windows 10, based on current weather and time A python script that changes our background based on current weather and time of t

Maj Gaberšček 1 Nov 16, 2021
Information about the weather in a city written using Python

Information about the weather in a city Enter the desired city Climate information of the target city This program is written using Python programming

Amir Hussein Sharifnezhad 4 Nov 17, 2021