Command line tool to show the weather information of your city

Overview

go-weather

when you type weather <city>, it will show you the weather of the city you input.

Useful API comes from openweathermap.org. You can register an account and get API KEY. 4845f22236e074cdac59ae174aa580a3is the KEY I will use. After you get the KEY, you can type:

http://api.openweathermap.org/data/2.5/weather?q=Beijing&appid=4845f22236e074cdac59ae174aa580a3

in you brower url. and then the server will return you a json data.

What does it look like?

After compiling the binary using go build -o main.go, you can copy ./weather to /usr/local/bin/weather, and then you can $ weather <CITY_NAME> to see the weather of your city.

# go-weather on 🌱 main [?] via 🐹 v1.17.2 
❯ go run main.go chengdu
Weather: Haze
Description: haze
Current Tempreature: 21.09 Celsius
Feels like: 20.60 Celsius
Humidity: 52
Pressure: 1009 Pascal

The project is inspired by this video.

You might also like...
weather app for the terminal
weather app for the terminal

wego is a weather client for the terminal. Features show forecast for 1 to 7 days nice ASCII art icons displayed info (metric or imperial units): temp

Golang Bubble Tea Weather Demo

Golang Bubble Tea Weather Demo Demo weather app writen in Golang using Bubble Tea. Video Instructions go mod download go build ./go-tea-weather Discl

Simple Weather CLI for funz - only 175 LOC
Simple Weather CLI for funz - only 175 LOC

A Simple Weather CLI After being tired of going to different weather sources / websites filled with ads, I decided to create a simplistic free-to-use

GO project that retrieve and return weather data from airports sensors

Airport Project GO project that retrieve and return weather data from airports sensors (temperature, wind speed and atmospheric pressure). Built with

git-xargs is a command-line tool (CLI) for making updates across multiple Github repositories with a single command.
git-xargs is a command-line tool (CLI) for making updates across multiple Github repositories with a single command.

Table of contents Introduction Reference Contributing Introduction Overview git-xargs is a command-line tool (CLI) for making updates across multiple

git-xargs is a command-line tool (CLI) for making updates across multiple GitHub repositories with a single command
git-xargs is a command-line tool (CLI) for making updates across multiple GitHub repositories with a single command

git-xargs is a command-line tool (CLI) for making updates across multiple GitHub repositories with a single command. You give git-xargs:

A command line tool for simplified docker volume command built with go

dockervol A command line tool for simplified docker volume command built with go. Features: Remove anonymous volume (beta) Remove volume by matching n

Watch your favourite anime using the video player of your choice directly from the command line

anime-cli Watch your favourite anime using the video player of your choice direc

GoTTY is a simple command line tool that turns your CLI tools into web applications.
Owner
常乐村喵蕉君
Deep ♂ Dark ♂ Fantasy
常乐村喵蕉君
rj is a command line tool show the HTTP Response as JSON

rj rj is a command line tool show the HTTP Response as JSON Installation

Yusuke Wada 44 Dec 31, 2022
An open-source GitLab command line tool bringing GitLab's cool features to your command line

GLab is an open source GitLab CLI tool bringing GitLab to your terminal next to where you are already working with git and your code without switching

Clement Sam 2.1k Dec 30, 2022
A zoom meeting scanner made in go and it will show the meeting information

zoom-scanner A zoom meeting scanner made in go and it will show the meeting information Installation: git clone https://github.com/krishpranav/zoom-sc

Krisna Pranav 7 Aug 31, 2022
Contextual information about your git projects, right on the command-line

gitty gitty is a smart little CLI helper for git projects, that shows you all the relevant issues, pull requests and changes at a quick glance. It cur

Christian Muehlhaeuser 406 Jan 8, 2023
🖼️ A command-line system information tool written in bash 3.2+

A command-line system information tool written in bash 3.2+ Neofetch is a command-line system information tool written in bash 3.2+. Neofetch displays

dylan 16.9k Dec 30, 2022
Gofetch is a pretty command-line "Go and System information" tool written in Go

GoFetch Show off your Go information with this cool command-line tool! Report Bug || Request Feature Table of Contents About the Project Built With Ge

null 77 Nov 1, 2022
Command line tool for searching Pokémon information

Pokesearch Command line tool for searching Pokemon information. Work in progress To-do Usage details Finish README.md Research release details Command

Adory Vo 0 Jan 27, 2022
A command line tool to prompt for a value to be included in another command line.

readval is a command line tool which is designed for one specific purpose—to prompt for a value to be included in another command line. readval prints

Venky 0 Dec 22, 2021
🧑‍💻📊 Show off your most used shell commands

tsukae ??‍?? ?? Tsukae, 使え - means use in Japanese (so it refers to commands that you use) Built on top of termui and cobra Big shoutout to jokerj40 f

Ilya Revenko 430 Dec 17, 2022
Show Languages In Code. A fast and lightweight CLI to generate stats on the languages inside your project

slic Show Languages In Code. Usage Run it with an -h flag to list all commands. -d flag can be used to specify the directory of search -i flag can be

Saurav Pal 3 Dec 25, 2021