You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1.6 KiB


cli program to get the weather for your location


weather [--current]
        [--help] [--man]
        [--devel] [--debug]


This program will retrieve weather condition and forecast details for your location.


--current     print the current conditions
--forecast    print the 5 day forecast
--version     print the version and exit
--help        print this dialogue
--man         display the full documentation
--devel       use a development tier key for openweathermap
--debug       dump the internals and query responses


get the current conditions

weather --current

get the current conditions and 5 day forecast

weather --current --forecast


The configuration file for weather is located in the homedir of the running user, named .weatherrc

The file may contain two sections, production and development, under the parent section, openweathermap.

~ $ cat .weatherrc
production = 1q2w3e4r5t6y7u8i9o0p1q2w3e4r5t6y
development = 0p9o8i7u6y5t4r3e2w1q0p9o8i7u6y5t

The development section is required in the case of using the --devel switch for weather.

The production section is required in normal operation.


  • Getopt::Long
  • Pod::Usage
  • Config::Tiny
  • HTTP::Tiny
  • JSON::MaybeXS
  • Data::Dumper
  • Time::Piece


Blaine Motsinger,

This software is available under the MIT license.

Copyright (c) 2019 Blaine Motsinger