  {"id":6734,"date":"2025-01-03T22:26:56","date_gmt":"2025-01-03T22:26:56","guid":{"rendered":"https:\/\/www.hawaii.edu\/climate-data-portal\/?page_id=6734"},"modified":"2025-07-16T00:23:42","modified_gmt":"2025-07-16T00:23:42","slug":"hawaii-mesonet-data","status":"publish","type":"page","link":"https:\/\/www.hawaii.edu\/climate-data-portal\/hawaii-mesonet-data\/","title":{"rendered":"Hawai\u2018i Mesonet Live Data Access"},"content":{"rendered":"\n<iframe id=\"github-frame\" width=\"100%\" height=\"100%\"><\/iframe>\n<script>\nconst xyzNode = document.querySelector('[title=\"Insert PHP Snippet WordPress Plugin\"]').parentNode;\nxyzNode.remove();\n<\/script>\n<script>\ndocument.addEventListener(\"DOMContentLoaded\", function () {\n  const iframe = document.getElementById(\"github-frame\");\n  const baseUrl = \"https:\/\/cherryleh.github.io\/mesonet\";\n\n  function updateIframeSrc() {\n    const hash = window.location.hash;\n    const src = hash\n      ? `${baseUrl}\/?source=iframe${hash}`\n      : `${baseUrl}\/?source=iframe`;\n\n    iframe.src = src;\n  }\n  updateIframeSrc(); \n\n  window.addEventListener(\"hashchange\", updateIframeSrc);\n\n  window.addEventListener(\"popstate\", updateIframeSrc);\n\n  window.addEventListener(\"message\", function (event) {\n    if (event.origin === \"https:\/\/cherryleh.github.io\") {\n      const newHash = event.data;\n\n      if (newHash && typeof newHash === 'string') {\n        history.replaceState(null, null, newHash); \/\/ Update hash\n      }\n    } else {\n      console.warn('Ignored message from unknown origin:', event.origin); \/\/ Debug\n    }\n  });\n});\n\n<\/script>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":12,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"template-hcdp-vis.php","meta":{"footnotes":""},"_links":{"self":[{"href":"https:\/\/www.hawaii.edu\/climate-data-portal\/wp-json\/wp\/v2\/pages\/6734"}],"collection":[{"href":"https:\/\/www.hawaii.edu\/climate-data-portal\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.hawaii.edu\/climate-data-portal\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.hawaii.edu\/climate-data-portal\/wp-json\/wp\/v2\/users\/12"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hawaii.edu\/climate-data-portal\/wp-json\/wp\/v2\/comments?post=6734"}],"version-history":[{"count":34,"href":"https:\/\/www.hawaii.edu\/climate-data-portal\/wp-json\/wp\/v2\/pages\/6734\/revisions"}],"predecessor-version":[{"id":7682,"href":"https:\/\/www.hawaii.edu\/climate-data-portal\/wp-json\/wp\/v2\/pages\/6734\/revisions\/7682"}],"wp:attachment":[{"href":"https:\/\/www.hawaii.edu\/climate-data-portal\/wp-json\/wp\/v2\/media?parent=6734"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}