wttr.inは2016年から開発を続けてきた天気情報を取得できるサーバーだ。Linuxであればcurlやwget、PowerShellはInvoke-RestMethodを用いることで、現在地の天気情報を端末などに表示できる。 既定では現在地の天気を示し出すが、「curl wttr.in/London」なら英国のロンドン ...
灼熱極まる今夏の状況にAPIからPowerShellに気温を取得し、カスタマイズする日々を送る筆者であったが、このニュースを目にし、ふと 気象状況を絵文字で表示できないか? そう考えた。OpenWeatherでは気象情報に対応するアイコンコードが細かく指定されて ...
PowerShellはコンピュータを操作するための強力なツールです。このPowerShellには2つの系統があります。 PowerShell 5.1 はWindows専用のパワーシェル。 PowerShell 7.x はWindowsだけでなくMacでも使える新しいパワーシェル。 PowerShellをMacで使っているなんて聞いたことが ...
APIs seem to be everywhere these days. Every popular online service has one. APIs allow developers to interact with online services without actually having to point and click their way through a UI.
Last time we looked at one of the new PowerShell v3 cmdlets for working with web data, Invoke-WebRequest. This week we'll look at a cmdlet that I think you'll find even easier to use, ...