This is a small command-line utility for retrieving the forecast at a specific location or set of coordinates.
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
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"
.