Skip to content

Climafetch aims to be an easy to use weather app that retrieves the current weather conditions and displays them in a Linux bash terminal.

License

Notifications You must be signed in to change notification settings

AptGetMe/Climafetch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Climafetch Logo

Fun Bash Scripts 📃 Climafetch ⛅

See the current outdoor climate in bash terminal like wthrr or wego but display it like neofetch

Climafetch aims to be a free, easy-to-use weather app that retrieves the current weather conditions and displays them in a Linux bash terminal. Here's some examples!

✨ Features

Climafetch Sunny

Day Time 🌞

Climafetch Night

Night Time 💫

🧩 Install

Thank you for wanting to try Climafetch 🥰️ Hopefully, this guide will get you started!

Important

Climafetch is in development and is unstable. Climafetch has only been tested on Debian Linux system, but will probably work on other distros. Open-Metro is the weather service that climafetch uses. The free version of Open-Metro is pretty generous, but only allows non-commercial use and reasonable traffic. Since climafetch uses Open-Metro free API, please make sure you use it within their guidelines! Mac and Windows are currently untested/unsupported.

Note

Windows users! Because Windows doesn't have bash, you need WSL. There is an issue open to try and integrate Windows for a future version! (which I have no idea when...) Location is currently only recognized as gps coordinates.

  • Open a bash terminal

  • Install dependencies (they may already be installed):

    sudo apt install curl jq figlet lolcat bc
    
  • Download latest release via commandline or by going to the release page:

    wget https://github.com/AptGetMe/Climafetch/releases/latest/download/climafetch
    
  • Navigate to the folder that you downloaded the script into and allow execution permissions:

    chmod +x climafetch
    
  • Move to /usr/local/bin so it is a visible command

    sudo mv climafetch /usr/local/bin
    
  • All done installing!

🚀 Run

Open a new terminal and execute app.

climafetch                  # defaults location to 41.65° N and -83.54° W (Toledo Ohio US)
climafetch -- 46.78 -92.10  # set location to 46.78°N 92.10°W (Duluth Minnesoda)

Here are some commandline options you can use

climafetch -v  # show version
climafect -h   # show help page

🗑️ Uninstall

Open a terminal and remove script.

sudo rm /usr/local/bin/climafetch

🛠️ Build It Yourself or Contribute

A bash terminal and a text editor is sufficient for developing bash scripts! However, here are my recommendations that may make the task easier.

  • Clone Github Repository

    git clone https://github.com/AptGetMe/Climafetch.git
    
  • Make sure to install the dependencies mentioned above

  • In a code editor (like Zed or VSCode), open the cloned folder as a new project

  • Test to make sure the environment is working by running script in the intergrated terminal

    ./climafetch
    ./climafetch -- TestApiData  # will use the test data file in repo
    
  • Program away!

Tip

Develop on a Linux installation because Bash is the default shell (Debian 12 is what I use) and use the ShellCheck extention

  • Open a new pull request to submit changes!

⭐ Support the Project

If you enjoy this app, please star this repository and share it with your friends online! 😊

📝 License

This project is licensed under the MIT License.

About

Climafetch aims to be an easy to use weather app that retrieves the current weather conditions and displays them in a Linux bash terminal.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages