from Hacker News

Weather from the Command Line

by zoidb on 9/1/24, 6:57 AM with 1 comments

  • by reify on 9/1/24, 7:27 AM

    wttr is my favourite

    for me this is the most accurate for my local weather.

    loads of settings though I just set up a simple alias

    alias weather='curl wttr.in/London=?3M'

    or not for a simple day weather output

    curl wttr.in/London?format="Weather:+%C,+%t,+%h,+%w,+%W+%P\nTimezone:+%Z\nTime:+%T+|+Dawn:+%D+++|+Sunrise:+%S\nZenith:++%z+++|+Sunset:+%s+|+Dusk:+%d\nLocation:+London,+England\n"