{"id":9141,"date":"2006-12-08T11:00:00","date_gmt":"2006-12-08T11:00:00","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/powershell\/2006\/12\/08\/get-weather\/"},"modified":"2019-02-18T13:21:04","modified_gmt":"2019-02-18T20:21:04","slug":"get-weather","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/powershell\/get-weather\/","title":{"rendered":"Get-Weather"},"content":{"rendered":"<p>Jeffery Hicks has a very cool <a href=\"http:\/\/sapien.eponym.com\/blog\/_archives\/2006\/12\/7\/2549282.html\">blog entry<\/a> where he defines a Get-Weather script which downloads the weather from yahoo.com, casts the results to XML and then reports the weather using the Speech object.&nbsp; It&#8217;s totally cool.&nbsp; I&#8217;m going to show it off today during my demo.&nbsp; <\/p>\n<blockquote>\n<p>I&#8217;m down in LA meeting with MySpace and getting a tour of the operations and seeing how they use PowerShell to manage their production servers.&nbsp; I get to do a demo at their Friday &#8220;Dojo&#8221; meeting (Pizza and presentation).&nbsp; As a kid, I used to go to &#8220;old-school&#8221; Uechi-Ryu Dojo&nbsp;where they used to hit us while doing katas (sometimes with baseball bats!) to ensure that we were focusing our minds. &nbsp;&#8211; I&#8217;m hoping this Dojo is a little gentler than that. \ud83d\ude42<\/p>\n<\/blockquote>\n<p>&nbsp;I&#8217;m going to tweak Jeffery&#8217;s script to make it my own.&nbsp; I&#8217;m going the default ZIP code and temp scale and then use a HERE string and make one call to Speak().&nbsp; There is no good reason for this other than style and the fact that I just absolutely love here strings.&nbsp; <\/p>\n<p>Enjoy!<\/p>\n<p>Jeffrey Snover [MSFT]<br \/>Windows PowerShell\/MMC Architect<br \/>Visit the Windows PowerShell Team blog at:&nbsp;&nbsp;&nbsp; <a href=\"http:\/\/blogs.msdn.com\/PowerShell\">http:\/\/blogs.msdn.com\/PowerShell<\/a><br \/>Visit the Windows PowerShell ScriptCenter at:&nbsp; <a href=\"http:\/\/www.microsoft.com\/technet\/scriptcenter\/hubs\/msh.mspx\">http:\/\/www.microsoft.com\/technet\/scriptcenter\/hubs\/msh.mspx<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Jeffery Hicks has a very cool blog entry where he defines a Get-Weather script which downloads the weather from yahoo.com, casts the results to XML and then reports the weather using the Speech object.&nbsp; It&#8217;s totally cool.&nbsp; I&#8217;m going to show it off today during my demo.&nbsp; I&#8217;m down in LA meeting with MySpace and [&hellip;]<\/p>\n","protected":false},"author":600,"featured_media":13641,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-9141","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-powershell"],"acf":[],"blog_post_summary":"<p>Jeffery Hicks has a very cool blog entry where he defines a Get-Weather script which downloads the weather from yahoo.com, casts the results to XML and then reports the weather using the Speech object.&nbsp; It&#8217;s totally cool.&nbsp; I&#8217;m going to show it off today during my demo.&nbsp; I&#8217;m down in LA meeting with MySpace and [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/posts\/9141","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/users\/600"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/comments?post=9141"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/posts\/9141\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/media\/13641"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/media?parent=9141"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/categories?post=9141"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/tags?post=9141"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}