Skip to content

A small command-line utility for retrieving the forecast at a specific location or set of coordinates.

Notifications You must be signed in to change notification settings

mattismoel/tmpr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

What is this?

This is a small command-line utility for retrieving the forecast at a specific location or set of coordinates.

How do i install?

The program is simple to install if you have Golang installed on your system. Just clone the directory onto your system and run the following commands:

go build -o "./bin/tmpr" main.go # Creates a build of the program in the project diretory in directory "bin/".

The binary can now be run like this:

./bin/tmpr --help

Alternatively the binary can be run directly with Golang:

go run main.go --help

Usage

Help can always be found with tmpr --help. The basics are as following:

Get forecast at specific coordinates:

tmpr coord --unit="<unit>" --lat="<latitude>" --lon="<longitude>"
tmpr coord --unit="metric" --lat="55.6867243" --lon="12.5700724" # Example usage.

Get forecast given a query:

tmpr query --unit="<unit>" --query="<query>"
tmpr query --unit="metric" --query="New York, USA" # Example usage.

The --unit flag is required, and can be of following systems: "metric", "imperial", "standard".

About

A small command-line utility for retrieving the forecast at a specific location or set of coordinates.

Resources

Stars

Watchers

Forks

Languages