Path: csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: rbowman Newsgroups: comp.os.linux.misc Subject: Re: Python/C/Pascal ... How To Choose ? Date: 12 Nov 2025 20:10:10 GMT Lines: 65 Message-ID: References: <-RycnTDdvP2b54z0nZ2dnZfqnPGdnZ2d@giganews.com> <10f1cid$18fo7$2@dont-email.me> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Trace: individual.net 45XmCJYDbXKDSRwI8/E4kA+wG/EOrDwCOuqs+VjCAehCMdwLbd Cancel-Lock: sha1:1vcSKqbxtd0NwGRKZ8x4lVgkeKA= sha256:M6x9gtKNNO1rk2cA/n13zkPvM/5TvGViSyAai/R2a7w= User-Agent: Pan/0.162 (Pokrosvk) Xref: csiph.com comp.os.linux.misc:77420 On Wed, 12 Nov 2025 02:26:11 -0500, c186282 wrote: > On 11/12/25 02:21, vallor wrote: >> At 11 Nov 2025 20:16:41 GMT, rbowman wrote: >> >>> On Mon, 10 Nov 2025 23:22:22 -0500, c186282 wrote: >>> >>>> On 11/10/25 02:46, rbowman wrote: >>>>> On Mon, 10 Nov 2025 00:36:58 -0500, c186282 wrote: >>>>> >>>>>> On 11/9/25 14:28, rbowman wrote: >>>>>>> On Sun, 09 Nov 2025 11:25:36 +0000, Diego Garcia wrote: >>>>>>> >>>>>>>> Try to predict the weather using Python. You'll be getting >>>>>>>> tomorrows forecast next week, or even next month. >>>>>>> >>>>>>> How about in a second or two? The starting point is >>>>>>> url = >>>>>>> f"https://api.weather.gov/points/{latitude},{longitude}" >>>>>> >>>>>> Keep getting "invalid point" >>>>> >>>>> Try >>>>> >>>>> https://api.weather.gov/points/42.934,-90.567 >>>> >>>> That works ... but change the coords a bit and it won't. Seems it >>>> only knows a handful of locations. >>> >>> I picked that at random. >>> >>> https://api.weather.gov/points/36.934,-72.567 Chincoteague, VA >>> >>> https://api.weather.gov/points/40.934,-94.567 Lenox, IA >>> >>> https://api.weather.gov/points/36.934,-84.567 Burnside KY >>> >>> https://api.weather.gov/points/58.114,-134.666 Juneau, AK >>> >>> https://api.weather.gov/points/38.114,-134.666 no data, but it's 886 >>> km off the coast of northern California. >>> >>> https://api.weather.gov/points/19.66,-156.012 Kailua, HI >>> >>> You do have to pick points in the US. >>> >>> https://api.weather.gov/points/51.130,-114.218 is Calgary AB and no >>> data. >> >> This is pretty slick. I was able to grab the local weather forecast. >> It even includes icons for the weather. >> >> Thank you for posting about it. > > All I get are pages of links to links to links ... > > And 'icons' are NOT what I'm looking for - I want comma/tab-delimited > tables which automation can easily get/process. It's JSON. If you can't process that you might want to join the 21st century. That's what you're going to get out of most REST APIs.