{"id":309,"date":"2023-08-07T14:44:34","date_gmt":"2023-08-07T14:44:34","guid":{"rendered":"http:\/\/theshanty.us\/?page_id=309"},"modified":"2026-02-02T22:10:05","modified_gmt":"2026-02-02T22:10:05","slug":"weather-stuff","status":"publish","type":"page","link":"http:\/\/blog.theshanty.us\/index.php\/weather-stuff\/","title":{"rendered":"Weather Stuff"},"content":{"rendered":"\n<p>Overview  (Scroll down for specifics)<\/p>\n\n\n\n<table>\n    <tr>\n        <td><img decoding=\"async\" src=\"http:\/\/blog.theshanty.us\/image\/temperature.png\" alt=\"Temperature\"><\/td>\n        <td><img decoding=\"async\" src=\"http:\/\/blog.theshanty.us\/image\/pressure.png\" alt=\"Pressure\"><\/td>\n    <\/tr>\n    <tr>\n        <td><img decoding=\"async\" src=\"http:\/\/blog.theshanty.us\/image\/humidity.png\" alt=\"Humidity\"><\/td>\n        <td><img decoding=\"async\" src=\"http:\/\/blog.theshanty.us\/image\/speed.png\" alt=\"Speed\"><\/td>\n    <\/tr>\n<\/table>\n\n\n\n<p>Wind Gusts in MPH: <\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td>Todays recorded High and Low Temperature<br><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity is-style-wide\" style=\"margin-top:var(--wp--preset--spacing--60);margin-bottom:var(--wp--preset--spacing--60)\"\/>\n\n\n\n<p>Break out charts<\/p>\n\n\n\n<img src=http:\/\/blog.theshanty.us\/image\/temperature.png>\n\n\n\n<img src=http:\/\/blog.theshanty.us\/image\/pressure.png>\n\n\n\n<img src=http:\/\/blog.theshanty.us\/image\/humidity.png>\n\n\n\n<img src=http:\/\/blog.theshanty.us\/image\/speed.png>\n\n\n\n<center><img src=http:\/\/blog.theshanty.us\/image\/gusts.png><\/center>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity is-style-wide\" style=\"margin-top:var(--wp--preset--spacing--60);margin-bottom:var(--wp--preset--spacing--60)\"\/>\n\n\n\n<p>How it works:<\/p>\n\n\n\n<p>At midnight a cron job kills the running daemon and removes the nohup.out file<\/p>\n\n\n\n<p>Next cron runs a script to move off the old images and data files to an archive<\/p>\n\n\n\n<p>Then the daemon is restarted which polls the Weather Underground API every 5 minutes to get the data from the weather station on the back of The Shanty<\/p>\n\n\n\n<p>The script then parses the JSON and collects the current Temp, Pressure, Humidity and Wind Speed and adds them to a csv that accumulates over the course of the day.<\/p>\n\n\n\n<p>Every 10 minutes a Python script kicks off that, using pandas and matplotlib.pyplot regenerates the graphs and places them out on the web server.<\/p>\n\n\n\n<p>Here&#8217;s the <a href=\"https:\/\/github.com\/chuckularone\/WeatherCharts\">code on my GitHub<\/a><\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Overview (Scroll down for specifics) Wind Gusts in MPH: Todays<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-309","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"http:\/\/blog.theshanty.us\/index.php\/wp-json\/wp\/v2\/pages\/309"}],"collection":[{"href":"http:\/\/blog.theshanty.us\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"http:\/\/blog.theshanty.us\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"http:\/\/blog.theshanty.us\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/blog.theshanty.us\/index.php\/wp-json\/wp\/v2\/comments?post=309"}],"version-history":[{"count":20,"href":"http:\/\/blog.theshanty.us\/index.php\/wp-json\/wp\/v2\/pages\/309\/revisions"}],"predecessor-version":[{"id":1198,"href":"http:\/\/blog.theshanty.us\/index.php\/wp-json\/wp\/v2\/pages\/309\/revisions\/1198"}],"wp:attachment":[{"href":"http:\/\/blog.theshanty.us\/index.php\/wp-json\/wp\/v2\/media?parent=309"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}