README - owm - Print 5 day / 3 hour forecast using api.openweathermap.org
 (HTM) hg clone https://bitbucket.org/iamleot/owm
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
       ---
       README
       ---
            1 owm is a shell one-liner^W script that prints 5 day / 3 hour forecast
            2 using api.openweathermap.org.
            3 
            4 The output is a TSV (tab-separated values) with 3 fields, in the
            5 following order (to add an header to print them please pass the
            6 `-h` option to owm):
            7 
            8  - date
            9  - temperature in °C
           10  - condition
           11 
           12 An API key and city are needed and are passed to `owm` respectively
           13 via OWM_APIKEY and OWM_CITYID environment variables, e.g.:
           14 
           15     % date
           16     Sat Jun  8 21:08:21 CEST 2019
           17     % env OWM_APIKEY=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX OWM_CITYID=6539761 owm -h
           18     Date        °C     Condition
           19     2019-06-08 21:00    Clear   21.69
           20     2019-06-09 00:00    Clouds  20.53
           21     2019-06-09 03:00    Clouds  20.12
           22     2019-06-09 06:00    Clouds  24.63
           23     2019-06-09 09:00    Clear   31.88
           24     2019-06-09 12:00    Clear   34.69
           25     2019-06-09 15:00    Clouds  34.13
           26     2019-06-09 18:00    Clouds  29.61
           27     2019-06-09 21:00    Clouds  25.42
           28     2019-06-10 00:00    Clouds  23.85
           29     2019-06-10 03:00    Clouds  22.25
           30     2019-06-10 06:00    Clouds  26.14
           31     2019-06-10 09:00    Clouds  32.99
           32     2019-06-10 12:00    Clouds  35.83
           33     2019-06-10 15:00    Clouds  33.56
           34     2019-06-10 18:00    Clouds  28.57
           35     2019-06-10 21:00    Clouds  24.84
           36     2019-06-11 00:00    Clouds  22.64
           37     2019-06-11 03:00    Clear   21.15
           38     2019-06-11 06:00    Rain    24.28
           39     2019-06-11 09:00    Rain    27.05
           40     2019-06-11 12:00    Clouds  30.6
           41     2019-06-11 15:00    Clouds  29.9
           42     2019-06-11 18:00    Clouds  26.15
           43     2019-06-11 21:00    Clear   22.85
           44     2019-06-12 00:00    Clouds  21.25
           45     2019-06-12 03:00    Clouds  20.55
           46     2019-06-12 06:00    Clouds  24.45
           47     2019-06-12 09:00    Rain    29.97
           48     2019-06-12 12:00    Clouds  32.43
           49     2019-06-12 15:00    Clear   31.85
           50     2019-06-12 18:00    Clear   28.27
           51     2019-06-12 21:00    Clear   23.87
           52     2019-06-13 00:00    Clear   22.33
           53     2019-06-13 03:00    Clouds  21.75
           54     2019-06-13 06:00    Clouds  26.1
           55     2019-06-13 09:00    Clear   32.44
           56     2019-06-13 12:00    Clouds  33.47
           57     2019-06-13 15:00    Clouds  32.39
           58     2019-06-13 18:00    Clouds  29.89
           59 
           60 To use `owm` `curl` and `jq` are needed.