{"id":267,"date":"2023-03-13T07:12:10","date_gmt":"2023-03-13T07:12:10","guid":{"rendered":"http:\/\/sjbcustom.com\/?page_id=267"},"modified":"2023-03-17T18:30:13","modified_gmt":"2023-03-17T18:30:13","slug":"heater","status":"publish","type":"page","link":"http:\/\/sjbcustom.com\/index.php\/heater\/","title":{"rendered":"Heater"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-page\" data-elementor-id=\"267\" class=\"elementor elementor-267\">\n\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-6146a381 elementor-section-boxed elementor-section-height-default elementor-section-height-default wpr-particle-no wpr-jarallax-no wpr-parallax-no wpr-sticky-section-no\" data-id=\"6146a381\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-5c7129f2\" data-id=\"5c7129f2\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap\">\n\t\t\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-495559d9 elementor-section-boxed elementor-section-height-default elementor-section-height-default wpr-particle-no wpr-jarallax-no wpr-parallax-no wpr-sticky-section-no\" data-id=\"495559d9\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-4db1cac2\" data-id=\"4db1cac2\" data-element_type=\"column\" data-settings=\"{&quot;background_background&quot;:&quot;classic&quot;}\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-123244ff elementor-widget elementor-widget-image\" data-id=\"123244ff\" data-element_type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<style>\/*! elementor - v3.20.0 - 26-03-2024 *\/\n.elementor-widget-image{text-align:center}.elementor-widget-image a{display:inline-block}.elementor-widget-image a img[src$=\".svg\"]{width:48px}.elementor-widget-image img{vertical-align:middle;display:inline-block}<\/style>\t\t\t\t\t\t\t\t\t\t<img decoding=\"async\" src=\"http:\/\/www.sjbcustom.com\/wp-content\/uploads\/2021\/04\/sjbbanner.jpg\" title=\"\" alt=\"\" loading=\"lazy\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<section class=\"elementor-section elementor-inner-section elementor-element elementor-element-36c97e4e elementor-section-full_width elementor-section-height-default elementor-section-height-default wpr-particle-no wpr-jarallax-no wpr-parallax-no wpr-sticky-section-no\" data-id=\"36c97e4e\" data-element_type=\"section\" data-settings=\"{&quot;animation&quot;:&quot;none&quot;,&quot;background_background&quot;:&quot;classic&quot;}\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-no\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-inner-column elementor-element elementor-element-56cdf4f5\" data-id=\"56cdf4f5\" data-element_type=\"column\" data-settings=\"{&quot;background_background&quot;:&quot;classic&quot;}\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-5c089bb4 elementor-widget elementor-widget-image\" data-id=\"5c089bb4\" data-element_type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<img fetchpriority=\"high\" decoding=\"async\" width=\"950\" height=\"110\" src=\"http:\/\/sjbcustom.com\/wp-content\/uploads\/2021\/07\/sjbbanner.jpg\" class=\"attachment-full size-full wp-image-51\" alt=\"\" srcset=\"http:\/\/sjbcustom.com\/wp-content\/uploads\/2021\/07\/sjbbanner.jpg 950w, http:\/\/sjbcustom.com\/wp-content\/uploads\/2021\/07\/sjbbanner-300x35.jpg 300w, http:\/\/sjbcustom.com\/wp-content\/uploads\/2021\/07\/sjbbanner-768x89.jpg 768w\" sizes=\"(max-width: 950px) 100vw, 950px\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-4c9f3312 wpr-main-menu-align-center wpr-main-menu-align--tabletleft wpr-main-menu-align--mobileleft wpr-pointer-underline wpr-pointer-line-fx wpr-pointer-fx-fade wpr-sub-icon-caret-down wpr-sub-menu-fx-fade wpr-nav-menu-bp-mobile wpr-mobile-menu-full-width wpr-mobile-menu-item-align-center wpr-mobile-toggle-v1 wpr-sub-divider-yes wpr-mobile-divider-yes elementor-widget elementor-widget-wpr-nav-menu\" data-id=\"4c9f3312\" data-element_type=\"widget\" data-settings=\"{&quot;menu_layout&quot;:&quot;horizontal&quot;}\" data-widget_type=\"wpr-nav-menu.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<nav class=\"wpr-nav-menu-container wpr-nav-menu-horizontal\" data-trigger=\"hover\"><ul id=\"menu-1-4c9f3312\" class=\"wpr-nav-menu\"><li class=\"menu-item menu-item-type-custom menu-item-object-custom menu-item-home menu-item-288\"><a href=\"http:\/\/sjbcustom.com\" class=\"wpr-menu-item wpr-pointer-item\">Home<\/a><\/li>\n<li class=\"menu-item menu-item-type-post_type menu-item-object-page menu-item-285\"><a href=\"http:\/\/sjbcustom.com\/index.php\/music\/\" class=\"wpr-menu-item wpr-pointer-item\">Music<\/a><\/li>\n<li class=\"menu-item menu-item-type-post_type menu-item-object-page menu-item-284\"><a href=\"http:\/\/sjbcustom.com\/index.php\/scuba\/\" class=\"wpr-menu-item wpr-pointer-item\">Scuba<\/a><\/li>\n<li class=\"menu-item menu-item-type-post_type menu-item-object-page menu-item-286\"><a href=\"http:\/\/sjbcustom.com\/index.php\/video\/\" class=\"wpr-menu-item wpr-pointer-item\">Video<\/a><\/li>\n<li class=\"menu-item menu-item-type-post_type menu-item-object-page menu-item-283\"><a href=\"http:\/\/sjbcustom.com\/index.php\/web\/\" class=\"wpr-menu-item wpr-pointer-item\">Web<\/a><\/li>\n<li class=\"menu-item menu-item-type-post_type menu-item-object-page menu-item-282\"><a href=\"http:\/\/sjbcustom.com\/index.php\/rc\/\" class=\"wpr-menu-item wpr-pointer-item\">RC<\/a><\/li>\n<li class=\"menu-item menu-item-type-post_type menu-item-object-page menu-item-281\"><a href=\"http:\/\/sjbcustom.com\/index.php\/files\/\" class=\"wpr-menu-item wpr-pointer-item\">Files<\/a><\/li>\n<li class=\"menu-item menu-item-type-post_type menu-item-object-page menu-item-280\"><a href=\"http:\/\/sjbcustom.com\/index.php\/heater\/\" class=\"wpr-menu-item wpr-pointer-item\">Heater<\/a><\/li>\n<li class=\"menu-item menu-item-type-post_type menu-item-object-page menu-item-287\"><a href=\"http:\/\/sjbcustom.com\/index.php\/watertemp\/\" class=\"wpr-menu-item wpr-pointer-item\">Water Temps<\/a><\/li>\n<li class=\"menu-item menu-item-type-post_type menu-item-object-page menu-item-279\"><a href=\"http:\/\/sjbcustom.com\/index.php\/contact\/\" class=\"wpr-menu-item wpr-pointer-item\">Contact<\/a><\/li>\n<\/ul><\/nav><nav class=\"wpr-mobile-nav-menu-container\"><div class=\"wpr-mobile-toggle-wrap\"><div class=\"wpr-mobile-toggle\"><span class=\"wpr-mobile-toggle-line\"><\/span><span class=\"wpr-mobile-toggle-line\"><\/span><span class=\"wpr-mobile-toggle-line\"><\/span><\/div><\/div><ul id=\"mobile-menu-2-4c9f3312\" class=\"wpr-mobile-nav-menu\"><li class=\"menu-item menu-item-type-custom menu-item-object-custom menu-item-home menu-item-288\"><a href=\"http:\/\/sjbcustom.com\" class=\"wpr-mobile-menu-item\">Home<\/a><\/li>\n<li class=\"menu-item menu-item-type-post_type menu-item-object-page menu-item-285\"><a href=\"http:\/\/sjbcustom.com\/index.php\/music\/\" class=\"wpr-mobile-menu-item\">Music<\/a><\/li>\n<li class=\"menu-item menu-item-type-post_type menu-item-object-page menu-item-284\"><a href=\"http:\/\/sjbcustom.com\/index.php\/scuba\/\" class=\"wpr-mobile-menu-item\">Scuba<\/a><\/li>\n<li class=\"menu-item menu-item-type-post_type menu-item-object-page menu-item-286\"><a href=\"http:\/\/sjbcustom.com\/index.php\/video\/\" class=\"wpr-mobile-menu-item\">Video<\/a><\/li>\n<li class=\"menu-item menu-item-type-post_type menu-item-object-page menu-item-283\"><a href=\"http:\/\/sjbcustom.com\/index.php\/web\/\" class=\"wpr-mobile-menu-item\">Web<\/a><\/li>\n<li class=\"menu-item menu-item-type-post_type menu-item-object-page menu-item-282\"><a href=\"http:\/\/sjbcustom.com\/index.php\/rc\/\" class=\"wpr-mobile-menu-item\">RC<\/a><\/li>\n<li class=\"menu-item menu-item-type-post_type menu-item-object-page menu-item-281\"><a href=\"http:\/\/sjbcustom.com\/index.php\/files\/\" class=\"wpr-mobile-menu-item\">Files<\/a><\/li>\n<li class=\"menu-item menu-item-type-post_type menu-item-object-page menu-item-280\"><a href=\"http:\/\/sjbcustom.com\/index.php\/heater\/\" class=\"wpr-mobile-menu-item\">Heater<\/a><\/li>\n<li class=\"menu-item menu-item-type-post_type menu-item-object-page menu-item-287\"><a href=\"http:\/\/sjbcustom.com\/index.php\/watertemp\/\" class=\"wpr-mobile-menu-item\">Water Temps<\/a><\/li>\n<li class=\"menu-item menu-item-type-post_type menu-item-object-page menu-item-279\"><a href=\"http:\/\/sjbcustom.com\/index.php\/contact\/\" class=\"wpr-mobile-menu-item\">Contact<\/a><\/li>\n<\/ul><\/nav>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-inner-section elementor-element elementor-element-2db8ccd6 elementor-section-boxed elementor-section-height-default elementor-section-height-default wpr-particle-no wpr-jarallax-no wpr-parallax-no wpr-sticky-section-no\" data-id=\"2db8ccd6\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-inner-column elementor-element elementor-element-66d1af53\" data-id=\"66d1af53\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-4f579df1 elementor-widget elementor-widget-heading\" data-id=\"4f579df1\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<style>\/*! elementor - v3.20.0 - 26-03-2024 *\/\n.elementor-heading-title{padding:0;margin:0;line-height:1}.elementor-widget-heading .elementor-heading-title[class*=elementor-size-]>a{color:inherit;font-size:inherit;line-height:inherit}.elementor-widget-heading .elementor-heading-title.elementor-size-small{font-size:15px}.elementor-widget-heading .elementor-heading-title.elementor-size-medium{font-size:19px}.elementor-widget-heading .elementor-heading-title.elementor-size-large{font-size:29px}.elementor-widget-heading .elementor-heading-title.elementor-size-xl{font-size:39px}.elementor-widget-heading .elementor-heading-title.elementor-size-xxl{font-size:59px}<\/style><h2 class=\"elementor-heading-title elementor-size-default\">Heater.<\/h2>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-04c6270 elementor-section-boxed elementor-section-height-default elementor-section-height-default wpr-particle-no wpr-jarallax-no wpr-parallax-no wpr-sticky-section-no\" data-id=\"04c6270\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-a102d25\" data-id=\"a102d25\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-93c2bb9 elementor-widget elementor-widget-html\" data-id=\"93c2bb9\" data-element_type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<p id=\"currentTemp\"><\/p>\n<p id=\"upTime\"><\/p>\n<p id=\"lastRead\"><\/p>\n\n\n<script>\n\nfunction toTimeString(totalSeconds) {\n  const totalMs = totalSeconds * 1000;\n  const result = new Date(totalMs).toISOString().slice(11, 19);\n\n  return result;\n}\n\nfunction GetData(){\n    console.log(\"Getting Data...\");\n    var request = new XMLHttpRequest();\n    var urlHere = \"https:\/\/api.thingspeak.com\/channels\/703856\/feeds.json?\";\n        urlHere = urlHere + \"api_key=GS8V00WB1VT5Q82D&results=1\";\n    console.log(urlHere);\n    request.open('GET', urlHere, true);\n    \n    \/\/window.alert(\"HI\")\n    \n    request.onload = function() {\n    \/\/  window.alert(5 + 6);\n      \n      if (request.status >= 200 && request.status < 400) {\n        var data = JSON.parse(request.responseText);\n        \n        console.log(data);\n        \n        document.getElementById(\"currentTemp\").innerHTML = \"Last Temperature: \" + Math.round(data.feeds[0].field1) + \"\u00b0F\";\n        var uptime = \"Up Time: \" +  Math.floor(data.feeds[0].field8 \/ 86400) + \" days \";\n        uptime += toTimeString(data.feeds[0].field8);\n        document.getElementById(\"upTime\").innerHTML = uptime;\n        \n        var isoDateTime = new Date(data.feeds[0].created_at);\n        var localDateTime = isoDateTime.toLocaleDateString() + \" \" + isoDateTime.toLocaleTimeString();\n        \n\n        document.getElementById(\"lastRead\").innerHTML = \"Last Timestamp: \" + localDateTime;\n        } else {\n        \/\/ We reached our target server, but it returned an error\n        }\n    };\n    \n    setTimeout(() => {\n        console.log(\"Reloading...\");\n        GetData();\n    }, 10000);   \/\/ Reload data every 10 seconds\n    \n    request.send();\n}\n\nGetData();\n    \/\/document.getElementById(\"demo\").innerHTML = request.status;\n<\/script>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-f2e21e9 elementor-widget elementor-widget-html\" data-id=\"f2e21e9\" data-element_type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\n\n<iframe width=\"1100\" height=500 style=\"border: 1px solid #cccccc;\" src=\"https:\/\/thingspeak.com\/channels\/703856\/charts\/1?api_key=GS8V00WB1VT5Q82D&bgcolor=%23ffffff&color=%23d62020&days=1&dynamic=true&title=Last%2024%20Hours&type=line&width=1100&height=500&average=10\"><\/iframe>\n\n\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>Home Music Scuba Video Web RC Files Heater Water Temps Contact Home Music Scuba Video Web RC Files Heater Water Temps Contact Heater.<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"elementor_canvas","meta":{"footnotes":""},"_links":{"self":[{"href":"http:\/\/sjbcustom.com\/index.php\/wp-json\/wp\/v2\/pages\/267"}],"collection":[{"href":"http:\/\/sjbcustom.com\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"http:\/\/sjbcustom.com\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"http:\/\/sjbcustom.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/sjbcustom.com\/index.php\/wp-json\/wp\/v2\/comments?post=267"}],"version-history":[{"count":49,"href":"http:\/\/sjbcustom.com\/index.php\/wp-json\/wp\/v2\/pages\/267\/revisions"}],"predecessor-version":[{"id":582,"href":"http:\/\/sjbcustom.com\/index.php\/wp-json\/wp\/v2\/pages\/267\/revisions\/582"}],"wp:attachment":[{"href":"http:\/\/sjbcustom.com\/index.php\/wp-json\/wp\/v2\/media?parent=267"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}