{"id":133,"date":"2011-10-01T21:19:46","date_gmt":"2011-10-02T01:19:46","guid":{"rendered":"http:\/\/www.cloppermillweather.org\/blog\/?p=133"},"modified":"2011-10-03T14:11:42","modified_gmt":"2011-10-03T18:11:42","slug":"weather-forecasts","status":"publish","type":"post","link":"https:\/\/www.cloppermillweather.org\/blog\/2011\/10\/01\/weather-forecasts\/","title":{"rendered":"Weather Forecasts"},"content":{"rendered":"<p>I wrote the PHP code to parse the weather forecast, and created the web pages to display it.\u00a0 The forecast is in the form of an ATOM feed, and not too hard to parse, but it does have a few twists.\u00a0 If I wanted to be lazy, there are some existing PHP scripts that get the weather forecast by screen scraping the NWS forecast page that I could download and use as a starting point.\u00a0 I&#8217;m not a big fan of screen scraping, only because you are dependent on the provider not changing their HTML layout.\u00a0 If they do change, you may have to make corresponding changes.\u00a0 The feed is based on a documented interface, so it shouldn&#8217;t change, at least in theory.\u00a0 This is just my preference for less maintenance.\u00a0 I have no real issues with anybody using the screen scraping approach.<\/p>\n<p>I&#8217;m continuing to add back the pages from my old ISP, clean them up a bit, and add a few new features.\u00a0 Some of the pages don&#8217;t need much work to get them in shape.\u00a0 The big ones remaining are the traffic page, webcam page, astronomy page, and the rest of the statistics page.\u00a0 The web cam will probably wait until last, as I need to decide how I want to set up the cam and which computer I will use with it.\u00a0 After I get bored of the Web site, I&#8217;ll go back to working on the hardware again.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I wrote the PHP code to parse the weather forecast, and created the web pages to display it.\u00a0 The forecast is in the form of an ATOM feed, and not too hard to parse, but it does have a few &hellip; <a href=\"https:\/\/www.cloppermillweather.org\/blog\/2011\/10\/01\/weather-forecasts\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-133","post","type-post","status-publish","format-standard","hentry","category-weather"],"_links":{"self":[{"href":"https:\/\/www.cloppermillweather.org\/blog\/wp-json\/wp\/v2\/posts\/133","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.cloppermillweather.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.cloppermillweather.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.cloppermillweather.org\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.cloppermillweather.org\/blog\/wp-json\/wp\/v2\/comments?post=133"}],"version-history":[{"count":0,"href":"https:\/\/www.cloppermillweather.org\/blog\/wp-json\/wp\/v2\/posts\/133\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.cloppermillweather.org\/blog\/wp-json\/wp\/v2\/media?parent=133"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.cloppermillweather.org\/blog\/wp-json\/wp\/v2\/categories?post=133"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.cloppermillweather.org\/blog\/wp-json\/wp\/v2\/tags?post=133"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}