Path: csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: "Carlos E.R." Newsgroups: comp.os.linux.misc Subject: Re: Python/C/Pascal ... How To Choose ? Date: Fri, 14 Nov 2025 22:44:57 +0100 Lines: 116 Message-ID: References: <-RycnTDdvP2b54z0nZ2dnZfqnPGdnZ2d@giganews.com> <10f1cid$18fo7$2@dont-email.me> <10f1gs5$18fo7$4@dont-email.me> <7o2dnTVBfZNmCYv0nZ2dnZfqnPGdnZ2d@giganews.com> <4vljulxf0c.ln2@Telcontar.valinor> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Trace: individual.net hWs6cq0VZUebuRNDIy71ZAWUNX5V3gj1LtTNZs7UyM0JwO8KPP X-Orig-Path: Telcontar.valinor!not-for-mail Cancel-Lock: sha1:Cem+JJRXmdmGPG+2RkwroO1UyOM= sha256:R8OxIKRgZ5YD770tJ2zid4XvNVjgeWK+96I57MzwE9U= User-Agent: Mozilla Thunderbird Content-Language: es-ES, en-CA In-Reply-To: Xref: csiph.com comp.os.linux.misc:77555 On 2025-11-14 22:27, c186282 wrote: > On 11/14/25 08:04, Carlos E.R. wrote: >> >> Read with line wrap disabled. See below. >> >> On 2025-11-14 03:33, c186282 wrote: >>> On 11/13/25 19:54, Carlos E.R. wrote: >>>> On 2025-11-13 05:07, c186282 wrote: >> >> >>>>>    Anyway, I'm looking for fairly straight-up solutions >>>>>    that don't require 10,000 lines of code. >>>>> >>>>>    Govt-collected weather data - We The People have ALREADY >>>>>    paid for it. We should be able to GET it without issues. >>>>> >>>> curl v2.wttr.in >>>> >>>> gets you some weather info. I have in my machine "metar" from 2006, >>>> but it no longer runs, it was compiled for 32 bits. >>>> >>>> Chatgpt suggested these: >>>> >>>> >>>> >>>>      wego — nice TUI weather client written in Go >>>> >>>>      ansiweather — weather in your terminal using ANSI colors >>>> >>>>      weather-util — classic simple tool (weather command) >>>> >>>>      curl v2.wttr.in — alternative minimal text version >>>> >>>>      metar — shows aviation METAR weather reports >>> >>>    Did a lot of searching today and DID find some >>>    alternative sites - GIF loops, PNGs updated every >>>    five minutes, data pages with minimal BS that are >>>    fairly easy to parse. But good old .csv or .tsv >>>    tables ... nope. Long gone. >> >> Have a look at https://v2.wttr.in/, the page is simple. >> >> >> https://github.com/chubin/wttr.in >> >> «wttr.in — the right way to -check- curl the weather! >> >> wttr.in is a console-oriented weather forecast service that supports >> various information representation methods like terminal-oriented >> ANSI- sequences for console HTTP clients (curl, httpie, or wget), HTML >> for web browsers, or PNG for graphical viewers. > > >   They'd work fair, IF you can steer it to city near you. >   Still not .csv alas  :-) I can point it to the exact city. 2 Km away. The thing gives latitude and longitude of the site with 7 decimals. I have no idea why, if there is some kind of metering station at that spot. Not that I know. You can make it output in json > > >> Originally started as a small project, a wrapper for wego, intended to >> demonstrate the power of the console-oriented services, wttr.in became >> a popular weather reporting service, handling tens of millions¹ of >> queries daily. >> >> You can see it running here: wttr.in.» >> >> >> >> Query your city name: >> >> curl wttr.in/Madrid >> >> cer@Telcontar:~> curl wttr.in/Madrid >> Weather report: Madrid ...>> Location: Madrid, Área metropolitana de Madrid y Corredor del Henares, >> Comunidad de Madrid, España [40.4167047,-3.7035824] >> >> Follow @igor_chubin for wttr.in updates >> >> >> You can probably look at the source code and find out how they obtain >> the data. > > >   Kind of looks like the data comes from his Twitter acct ... there >   is an encoded link ref probably unique to each city. > > > >> Or: >> >> «Supported output formats and views >> >> wttr.in currently supports five output formats: >> >>      ANSI for the terminal; >>      Plain-text for the terminal and scripts; >>      HTML for the browser; >>      PNG for the graphical viewers; >>      JSON for scripts and APIs; >>      Prometheus metrics for scripts and APIs.» >> >> > -- Cheers, Carlos. ES🇪🇸, EU🇪🇺;