[squeak-dev] OpenWeatherMap.org api?
tim at rowledge.org
Thu Jul 14 00:35:32 UTC 2016
> On 13-07-2016, at 2:25 PM, Frank Shearar <frank.shearar at gmail.com> wrote:
> On 13 July 2016 at 11:24, tim Rowledge <tim at rowledge.org> wrote:
> I don’t suppose anyone has already written stuff to connect to www.openweathermap.org site?
> It's not Squeak, but here's a blog post describing how to do it with F#: http://evelinag.com/blog/2014/09-15-introducing-ariadne/journal/WeatherData.html
OK, so for some reason that made me think of Json, which reminded about a mail a few days ago on the "Re: rice paper background in trunk? “ thread that mentioned loading a package called JSON. So I installed it and to my surprise
`Json readFrom: (WebClient httpGet: ‘http://api.openweathermap.org/data/2.1/find/name?q=Nanaimo,CA') content readStream`
returned a completely plausible result. Cool! Quick, I must add “JSon expertise” to my LinkedIn page :-)
Now all I need to do is develop a little understanding of what on earth it is all about. Pointers to very, very, basic doc appreciated.
tim Rowledge; tim at rowledge.org; http://www.rowledge.org/tim
Any program that runs right is obsolete.
More information about the Squeak-dev