metGenInterlock
Add to cart to see price
Estimate only, carrier delays may occur
Send to
|
Change
Send to
" ) $(".custom-zip-container").hide(); $(".custom-pipe").hide(); $(".custom-zip-change").html("Send to my zip") console.log("Failed to run") } $.ajax({ type: 'GET', url: 'https://feeds.datafeedwatch.com/23194/403c16ad7bf9e691eed4c096045b404ac2e0son',398.dataType: 'json' ' , success: function (data) { console.log("Data Feed For: " + data.channel_info.url); var feedArray = data.products for (let i = 0; i < feedArray.length; i++) { if ( feedArray[i].SKU == productSku) { skuMatch = true if (feedArray[i].inv_ca && feedArray[i].inv_tn ) { console.log("Available: Both") window.localStorage.setItem('availableLocation ' , 'both'); } else if (feedArray[i].inv_ca || feedArray[i].inv_tn) { if (feedArray[i].inv_ca) { console.log("Available: CA only ") window. localStorage .setItem('availableLocation', 'CA'); } else if (feedArray[i].inv_tn) { console.log("Available: TN only") window.localStorage.setItem('availableLocation', 'TN')} } break } else { skuMatch = false } } if (!skuMatch) { skuFailure = true; console.log("Could not match SKU.") failure(); return false; } } }).done(function() { momentHolidayInit(); momentRangeInit(); window['moment-range'].extendMoment(moment); window.localStorage.removeItem('ipFailure'); currentAvailable = window.localStorage. getItem('availableLocation'); bothObject = { AL : 2, AZ : 1, AR : 1, CA : 1, CO : 2, CT : 3, DE : 3, DC : 3, FL : 2, GA : 2, ID: 2, IL: 2, IN: 2, IA: 2, KS: 2, KY: 2, LA: 1, ME: 3, MD: 2, MA: 3, MI: 2, MN: 3, MS: 1, MO: 2, MT: 3, NE: 3, NV: 1, NH: 3, NJ: 2, NM: 3, NY: 3, NC: 2, ND: 3, OH: 2, OK: 2, OR: 2, PA: 2, RI: 3, SC: 2, SD: 3, TN: 2, TX: 2, UT: 2, VT: 3, VA: 2, WA: 3, WV: 2, WI: 2, WY : 3, } caObject = { AL : 4, AZ : 1, AR : 4, CA : 1, CO : 2, CT : 5, DE : 4, DC : 4, FL : 4, GA : 4, ID: 2, IL: 4, IN: 4, IA: 4, KS: 4, KY: 4, LA: 4, ME: 5, MD: 4, MA: 5, MI: 4, MN: 4, MS: 4, MO: 2, MT: 3, NE: 3, NV: 1, NH: 5, NJ: 4, NM: 3, NY: 5, NC: 4, ND: 3, OH: 4, OK: 4, OR: 2, PA: 2, RI: 4, SC: 4, SD: 3, TN: 4, TX: 4, UT: 2, VT: 5, VA: 4, WA: 3, WV: 4, WI: 4, WY: 3, } tnObject = { AL: 2, AZ: 3, AR: 1, CA: 4, CO: 3, CT: 3, DE: 3, DC: 3, FL: 2, GA: 2, ID: 4, IL: 2, IN: 2, IA: 2, KS: 2, KY: 2, LA: 1, ME: 3, MD: 3, MA: 3, MI: 2, MN: 3, MS: 1, MO: 2, MT: 4, NE: 3, NV: 4, NH: 3, NJ: 3, NM: 3, NY: 3, NC: 2, ND: 4, OH: 2, OK: 2, OR: 4, PA: 2, RI: 3, SC: 2, SD: 3, TN: 2, TX: 2, UT: 3, VT: 3, VA: 2, WA: 4, WV: 2, WI: 2, WY : 4, } function momentLocale() { moment.locale('and') } currentDate = new Date(); currentDay = currentDate.getDay(); currentMoment = moment(); currentHour = currentDate.getHours(); moment.modifyHolidays.set(['New Year's Day', 'Christmas Day', 'Independence Day', 'Labour Day', 'Memorial Day', 'Thanksgiving Day']); TodayHoliday = moment().isHoliday(); holidayList = moment().holidays(); vacation date = 0; shipFinal = 0; Delivery time = 0; shipFinalHoliday = false; shipFailure = false; foundFolderProperty = true; until Sunday = 0; geoCartHolding = {}; window.sessionStorage.removeItem('geoCartHolding'); function passSundayTest() { momentLocale() const range = moment.range(currentMoment, shipFinal); nextsunday = moment().day(0 + 7); passsunday = range.contains(comingsunday, {exclusive: true}); if (passsunday) { shipFinal = shipFinal.add(1, 'd'); console.log("Sunday passed! Day added!"); } else { console.log("Sunday didn't pass"); } } function passSatTest() { momentLocale() const range = moment.range(currentMoment, shipFinal); comeSat = time().day(0 + 6); console.log(comingSat) passSat = range.contains(comingSat, { exclusive: true }); if (passSat) { shipFinal = shipFinal.add(1, 'd'); console.log("Saturday over! Day added!"); } else { console.log("Saturday didn't pass"); } } function passHolidayTest() { momentLocale() const range = moment.range(currentMoment, shipFinal); console.log(holidayList) for (const holiday in holidayList) { holidayDate = holidayList[holiday] passHoliday = range.contains(holidayDate, {exclusive: true}); if (passHoliday) { shipFinal = shipFinal.add(1, 'd'); console.log( holidayList[holiday]._d + " " + holiday + " successful! Day added!"); } } } function shipFinalSet() { momentLocale() shipFinal = moment().add(shipTime, 'd'); if (currentDay == 5 && currentHour >= 14 ) { shipFinal = shipFinal.add(3, 'd'); shipFinalHoliday = shipFinal.isHoliday(); } else if (currentDay == 6) { shipFinal = shipFinal.add(2, 'd'); shipFinalHoliday = shipFinal.isHoliday(); } else if (currentDay == 0 || currentHour >= 14 || todayHoliday) { shipFinal = shipFinal.add(1, 'd'); console.log("Sunday, after 2pm or holiday. Day added.") } } function shipTest() { momentLocale(); if (geoExtra == "true") { shipFinal = shipFinal.add(geoExtraDay, 'd'); console.log("Geo Extra days found - " + geoExtraDay + " added days.") } if (productTagLTL) { passSatTest(); } passSundayTest(); passedHolidayTest(); if (productTagLTL) { if (shipFinal.day() == 6) { console.log("Ship on Saturday: add 1 day") shipFinal = shipFinal.add(1, 'd'); } } if (shipFinal.day() == 0) { console.log("Ship on Sunday: add 1 day") shipFinal = shipFinal.add(1, 'd'); if (shipFinal.isHoliday()) { console.log("Arrival is holiday: add 1 day") shipFinal = shipFinal.add(1, 'd'); } } else if (shipFinal.isHoliday()) { console.log("Ship on vacation: add 1 day") shipFinal = shipFinal.add(1, 'd'); if (shipFinal.day() == 0) { console.log("Arrival day is a Sunday: add 1 day") shipFinal = shipFinal.add(1, 'd'); } } shipFailure = false; $(".custom-zip-container").show(); $(".custom-pipe").show(); $(".custom-zip-change").html("Change"); $(".shipping status message").html( "
" + "Order now, receive ' + "" + shipFinal.format("ddd, MMM D") + "" + "
" ) console.log("Base ship time is: " + shipTime + " days") console.log("Final ship date is: " + shipFinal.format("ddd, MMM D")) console.log( "ship trial run" ) geoCartHolding["date"] = shipFinal.format("ddd, MMM D"); geoCartHolding["sku"] = productSku; window.sessionStorage.setItem('geoCartHolding', JSON.stringify(geoCartHolding) ; if (skuFailure) { failure(); } } function failure() { shipFailure = true $(".shipping-state-notice").html( "
" + "Order Now - Same Day Shipping." + "
" ) $(".custom-zip-container").hide(); $(".custom-pipe").hide(); $(".custom-zip-change").html("Ship to my zip code") console.log("failure was run") } function ipTest() { momentHolidayInit(); momentRangeInit(); window['moment-range'].extendMoment(moment); moment.modifyHolidays.set(['New Years Day', 'Christmas Day', 'Independence Day', 'Labor Day', 'Memorial Day', 'Thanksgiving']); ipInfo = JSON.parse(window.localStorage.getItem('imperialUserIP')); ipFailure = JSON.parse(window.localStorage.getItem('ipFailure')); submittedZip = window.localStorage.getItem('customZip'); submittedZipInfo = window.localStorage.getItem('customZipState'); $(".custom-zip-container").show(); $(".custom-pipe").show(); if (submittedZipInfo) { console.log("Submitted Zip Info: " + submittedZip +", " + submittedZipInfo); if (currentAvailable == "both") { console.log("Available Location: Both") for (const property in bothObject) { if (submittedZipInfo == property ) { shipTime = bothObject[property]; foundMapProperty = true; $(".custom-zip-desktop").html(submittedZip); shipFinalSet(); shipTest(); break } else { foundMapProperty = false; } } if (!foundMapProperty) { failure(); } } else if (currentAvailable == "CA") { console.log("Available Location: CA") for (const property in caObject) { if (submittedZipInfo == property ) { shipTime = caObject[property]; foundMapProperty = true; $(".custom-zip-desktop").html(submittedZip); shipFinalSet(); shipTest(); break } else { foundMapProperty = false; } } if (!foundMapProperty) { failure(); } } else if (currentAvailable == "TN") { console.log("Available Location: TN") for (const property in tnObject) { if (submittedZipInfo == property ) { shipTime = tnObject[property]; foundMapProperty = true; $(".custom-zip-desktop").html(submittedZip); shipFinalSet(); shipTest(); break } else { foundMapProperty = false; } } if (!foundMapProperty) { failure(); } } else { failure(); } } else if (ipInfo) { console.log("Cached Ip Info:") console.log(ipInfo); if (ipInfo.postal) { if (currentAvailable == "both") { console.log("Cached IP Logic: Both") for (const property in bothObject) { if (ipInfo.region_code == property ) { shipTime = bothObject[property]; foundMapProperty = true; $(".custom-zip-desktop").html(ipInfo.postal); shipFinalSet(); shipTest(); break } else { foundMapProperty = false; } } if (!foundMapProperty) { failure(); } } else if (currentAvailable == "CA") { console.log("Cached IP Logic: CA") for (const property in caObject) { if (ipInfo.region_code == property ) { shipTime = caObject[property]; foundMapProperty = true; $(".custom-zip-desktop").html(ipInfo.postal); shipFinalSet(); shipTest(); break } else { foundMapProperty = false; } } if (!foundMapProperty) { failure(); } } else if (currentAvailable == "TN") { console.log("Cached IP Logic: TN") for (const property in tnObject) { if (ipInfo.region_code == property ) { shipTime = tnObject[property]; foundMapProperty = true; $(".custom-zip-desktop").html(ipInfo.postal); shipFinalSet(); shipTest(); break } else { foundMapProperty = false; } } if (!foundMapProperty) { failure(); } } else { failure(); } } else if (ipInfo.region_code) { console.log("Zip not found, using state code: "+ ipInfo.region_code) if (currentAvailable == "both") { console.log("Cached IP Logic: Both") for (const property in bothObject) { if (ipInfo.region_code == property ) { shipTime = bothObject[property]; foundMapProperty = true; $(".custom-zip-desktop").html(ipInfo.region_code); shipFinalSet(); shipTest(); break } else { foundMapProperty = false; } } if (!foundMapProperty) { failure(); } } else if (currentAvailable == "CA") { console.log("Cached IP Logic: CA") for (const property in caObject) { if (ipInfo.region_code == property ) { shipTime = caObject[property]; foundMapProperty = true; $(".custom-zip-desktop").html(ipInfo.region_code); shipFinalSet(); shipTest(); break } else { foundMapProperty = false; } } if (!foundMapProperty) { failure(); } } else if (currentAvailable == "TN") { console.log("Cached IP Logic: TN") for (const property in tnObject) { if (ipInfo.region_code == property ) { shipTime = tnObject[property]; foundMapProperty = true; $(".custom-zip-desktop").html(ipInfo.region_code); shipFinalSet(); shipTest(); break } else { foundMapProperty = false; } } if (!foundMapProperty) { failure(); } } else { failure(); } } else { failure(); } } else { $.getJSON("https://ipapi.co/json/?key=0q5Uk0flqw01vI2GAsjzWtYe7Z4EHzFqIEVCDkDIYrP91lwlmi", function (response) { window.localStorage.setItem('imperialUserIP', JSON.stringify(response)); console.log("Fresh IP Info:") console.log(response); if (response.postal) { if (currentAvailable == "both") { console.log("Fresh IP Logic: Both") for (const property in bothObject) { if (response.region_code == property ) { shipTime = bothObject[property]; foundMapProperty = true; $(".custom-zip-desktop").html(response.postal); shipFinalSet(); shipTest(); break } else { foundMapProperty = false; } } if (!foundMapProperty) { failure(); } } else if (currentAvailable == "CA") { console.log("Fresh IP Logic: CA") for (const property in caObject) { if (response.region_code == property ) { shipTime = caObject[property]; foundMapProperty = true; $(".custom-zip-desktop").html(response.postal); shipFinalSet(); shipTest(); break } else { foundMapProperty = false; } } if (!foundMapProperty) { failure(); } } else if (currentAvailable == "TN") { console.log("Fresh IP Logic: TN") for (const property in tnObject) { if (response.region_code == property ) { shipTime = tnObject[property]; foundMapProperty = true; $(".custom-zip-desktop").html(response.postal); shipFinalSet(); shipTest(); break } else { foundMapProperty = false; } } if (!foundMapProperty) { failure(); } } else { failure(); } } else if (response.region_code) { console.log("Zip not found, using state code: "+ response.region_code) if (currentAvailable == "both") { console.log("Fresh IP Logic: Both") for (const property in bothObject) { if (response.region_code == property ) { shipTime = bothObject[property]; foundMapProperty = true; $(".custom-zip-desktop").html(response.region_code); shipFinalSet(); shipTest(); break } else { foundMapProperty = false; } } if (!foundMapProperty) { failure(); } } else if (currentAvailable == "CA") { console.log("Fresh IP Logic: CA") for (const property in caObject) { if (response.region_code == property ) { shipTime = caObject[property]; foundMapProperty = true; $(".custom-zip-desktop").html(response.region_code); shipFinalSet(); shipTest(); break } else { foundMapProperty = false; } } if (!foundMapProperty) { failure(); } } else if (currentAvailable == "TN") { console.log("Fresh IP Logic: TN") for (const property in tnObject) { if (response.region_code == property ) { shipTime = tnObject[property]; foundMapProperty = true; $(".custom-zip-desktop").html(response.region_code); shipFinalSet(); shipTest(); break } else { foundMapProperty = false; } } if (!foundMapProperty) { failure(); } } else { failure(); } } else { failure(); } }, "jsonp").fail(function(result) { failure(); console.log("Initial Ip Hit Failure") }); } }ipTest(); function getState(zipString) { const zipcode = parseInt(zipString, 10); let st; let state; /* Code cases alphabetized by state */ if (zipcode >= 35000 && zipcode <= 36999) { st = 'AL'; state = 'Alabama'; } else if (zipcode >= 85000 && zipcode <= 86999) { st = 'AZ'; state = 'Arizona'; } else if (zipcode >= 71600 && zipcode <= 72999) { st = 'AR'; state = 'Arkansas'; } else if (zipcode >= 90000 && zipcode <= 96699) { st = 'CA'; state = 'California'; } else if (zipcode >= 80000 && zipcode <= 81999) { st = 'CO'; state = 'Colorado'; } else if ((zipcode >= 6000 && zipcode <= 6389) || (zipcode >= 6391 && zipcode <= 6999)) { st = 'CT'; state = 'Connecticut'; } else if (zipcode >= 19700 && zipcode <= 19999) { st = 'DE'; state = 'Delaware'; } else if (zipcode >= 32000 && zipcode <= 34999) { st = 'FL'; state = 'Florida'; } else if ( (zipcode >= 30000 && zipcode <= 31999) || (zipcode >= 39800 && zipcode <= 39999) ) { st = 'GA'; state = 'Georgia'; } else if (zipcode >= 96700 && zipcode <= 96999) { st = 'HI'; state = 'Hawaii'; } else if (zipcode >= 83200 && zipcode <= 83999) { st = 'ID'; state = 'Idaho'; } else if (zipcode >= 60000 && zipcode <= 62999) { st = 'IL'; state = 'Illinois'; } else if (zipcode >= 46000 && zipcode <= 47999) { st = 'IN'; state = 'Indiana'; } else if (zipcode >= 50000 && zipcode <= 52999) { st = 'IA'; state = 'Iowa'; } else if (zipcode >= 66000 && zipcode <= 67999) { st = 'KS'; state = 'Kansas'; } else if (zipcode >= 40000 && zipcode <= 42999) { st = 'KY'; state = 'Kentucky'; } else if (zipcode >= 70000 && zipcode <= 71599) { st = 'LA'; state = 'Louisiana'; } else if (zipcode >= 3900 && zipcode <= 4999) { st = 'ME'; state = 'Maine'; } else if (zipcode >= 20600 && zipcode <= 21999) { st = 'MD'; state = 'Maryland'; } else if ( (zipcode >= 1000 && zipcode <= 2799) || (zipcode == 5501) || (zipcode == 5544 ) ) { st = 'MA'; state = 'Massachusetts'; } else if (zipcode >= 48000 && zipcode <= 49999) { st = 'MI'; state = 'Michigan'; } else if (zipcode >= 55000 && zipcode <= 56899) { st = 'MN'; state = 'Minnesota'; } else if (zipcode >= 38600 && zipcode <= 39999) { st = 'MS'; state = 'Mississippi'; } else if (zipcode >= 63000 && zipcode <= 65999) { st = 'MO'; state = 'Missouri'; } else if (zipcode >= 59000 && zipcode <= 59999) { st = 'MT'; state = 'Montana'; } else if (zipcode >= 27000 && zipcode <= 28999) { st = 'NC'; state = 'North Carolina'; } else if (zipcode >= 58000 && zipcode <= 58999) { st = 'ND'; state = 'North Dakota'; } else if (zipcode >= 68000 && zipcode <= 69999) { st = 'NE'; state = 'Nebraska'; } else if (zipcode >= 88900 && zipcode <= 89999) { st = 'NV'; state = 'Nevada'; } else if (zipcode >= 3000 && zipcode <= 3899) { st = 'NH'; state = 'New Hampshire'; } else if (zipcode >= 7000 && zipcode <= 8999) { st = 'NJ'; state = 'New Jersey'; } else if (zipcode >= 87000 && zipcode <= 88499) { st = 'NM'; state = 'New Mexico'; } else if ( (zipcode >= 10000 && zipcode <= 14999) || (zipcode == 6390) || (zipcode == 501) || (zipcode == 544) ) { st = 'NY'; state = 'New York'; } else if (zipcode >= 43000 && zipcode <= 45999) { st = 'OH'; state = 'Ohio'; } else if ((zipcode >= 73000 && zipcode <= 73199) || (zipcode >= 73400 && zipcode <= 74999) ) { st = 'OK'; state = 'Oklahoma'; } else if (zipcode >= 97000 && zipcode <= 97999) { st = 'OR'; state = 'Oregon'; } else if (zipcode >= 15000 && zipcode <= 19699) { st = 'PA'; state = 'Pennsylvania'; } else if (zipcode >= 300 && zipcode <= 999) { st = 'PR'; state = 'Puerto Rico'; } else if (zipcode >= 2800 && zipcode <= 2999) { st = 'RI'; state = 'Rhode Island'; } else if (zipcode >= 29000 && zipcode <= 29999) { st = 'SC'; state = 'South Carolina'; } else if (zipcode >= 57000 && zipcode <= 57999) { st = 'SD'; state = 'South Dakota'; } else if (zipcode >= 37000 && zipcode <= 38599) { st = 'TN'; state = 'Tennessee'; } else if ( (zipcode >= 75000 && zipcode <= 79999) || (zipcode >= 73301 && zipcode <= 73399) || (zipcode >= 88500 && zipcode <= 88599) ) { st = 'TX'; state = 'Texas'; } else if (zipcode >= 84000 && zipcode <= 84999) { st = 'UT'; state = 'Utah'; } else if (zipcode >= 5000 && zipcode <= 5999) { st = 'VT'; state = 'Vermont'; } else if ( (zipcode >= 20100 && zipcode <= 20199) || (zipcode >= 22000 && zipcode <= 24699) || (zipcode == 20598) ) { st = 'VA'; state = 'Virgina'; } else if ( (zipcode >= 20000 && zipcode <= 20099) || (zipcode >= 20200 && zipcode <= 20599) || (zipcode >= 56900 && zipcode <= 56999) ) { st = 'DC'; state = 'Washington DC'; } else if (zipcode >= 98000 && zipcode <= 99499) { st = 'WA'; state = 'Washington'; } else if (zipcode >= 24700 && zipcode <= 26999) { st = 'WV'; state = 'West Virginia'; } else if (zipcode >= 53000 && zipcode <= 54999) { st = 'WI'; state = 'Wisconsin'; } else if (zipcode >= 82000 && zipcode <= 83199) { st = 'WY'; state = 'Wyoming'; } else { st = 'none'; state = 'none'; console.log('No state found matching', zipcode); failure(); } return st; } $(".custom-zip-submit-mobile").on("click", function() { submitZip = $('#zipcode').val(); if (typeof submitZip !== 'string' || submitZip.length < 3 || submitZip.length > 5) { alert("Entered Zipcode must be at least 3 - 5 digits.") } else if (submitZip == submittedZip) { console.log("Same zipcode submitted."); $(".custom-zip-desktop-tooltip").removeClass("visible-appear"); $(".custom-zip-mobile").removeClass("flex") $(".custom-zip-change").html("Change"); } else { shipFailure = false; $(".custom-zip-desktop-tooltip").removeClass("visible-appear"); $(".custom-zip-mobile").removeClass("flex") $(".custom-zip-change").html("Change"); window.localStorage.removeItem('customZip'); window.localStorage.removeItem('customZipState'); submittedZipState = getState(submitZip); window.localStorage.setItem('customZip', submitZip); window.localStorage.setItem('customZipState', submittedZipState); window.sessionStorage.removeItem('geoCartHolding'); window.sessionStorage.removeItem('geoCartArray'); geoCartHolding = {}; ipTest(); //Send out custom zipcode update event document.dispatchEvent(new Event('geolocation-pdp:update')); } }); $(".custom-zip-submit-desktop").on("click", function() { submitZip = $('#zipcode-desktop').val(); if (typeof submitZip !== 'string' || submitZip.length < 3 || submitZip.length > 5) { alert("Entered Zipcode must be at least 3 - 5 digits.") } else if (submitZip == submittedZip) { console.log("Same zipcode submitted."); $(".custom-zip-desktop-tooltip").removeClass("visible-appear"); $(".custom-zip-mobile").removeClass("flex") $(".custom-zip-change").html("Change"); } else { shipFailure = false; $(".custom-zip-desktop-tooltip").removeClass("visible-appear"); $(".custom-zip-mobile").removeClass("flex") $(".custom-zip-change").html("Change"); window.localStorage.removeItem('customZip'); window.localStorage.removeItem('customZipState'); submittedZipState = getState(submitZip); window.localStorage.setItem('customZip', submitZip); window.localStorage.setItem('customZipState', submittedZipState); window.sessionStorage.removeItem('geoCartHolding'); window.sessionStorage.removeItem('geoCartArray'); geoCartHolding = {}; ipTest(); //Send out custom zipcode update event document.dispatchEvent(new Event('geolocation-pdp:update')); } }); $(".custom-zip-change").on("click", function() { currentZipChangeValue = $(".custom-zip-change").text() $("#zipcode-desktop").val("") $("#zipcode").val("") $(".custom-zip-desktop-tooltip").toggleClass("visible-appear") $(".custom-zip-mobile").toggleClass("flex") if ( currentZipChangeValue == "Ship to my zip code") { shipFailure = true $(".custom-zip-change").html("Cancel") } else if ( shipFailure ) { $(".custom-zip-change").html("Ship to my zip code") } else if ( currentZipChangeValue == "Change") { $(".custom-zip-change").html("Cancel") } else { $(".custom-zip-change").html("Change") } }) $(".fa-times-circle").on("click", function() { $(".custom-zip-desktop-tooltip").removeClass("visible-appear") if ( shipFailure ) { $(".custom-zip-change").html("Ship to my zip code") } else { $(".custom-zip-change").html("Change") } }) $(document).on('click', function (e) { if ($(e.target).closest(".close-function").length === 0) { $(".custom-zip-desktop-tooltip").removeClass("visible-appear"); $(".custom-zip-mobile").removeClass("flex"); if ( shipFailure ) { $(".custom-zip-change").html("Ship to my zip code") } else { $(".custom-zip-change").html("Change") } } }); function handle_zipcode_update(){ let new_zip = window.localStorage.getItem('customZip'); if (new_zip){ ipTest() } } //Listen for zipcode updates from product details and handle accordingly document.addEventListener('geolocation-header:update', handle_zipcode_update); }).fail(function() { console.log("Data Feed Failure") failure(); })});
FAQs
Do I need a special breaker for generator interlock? ›
Your breaker needs to match the manufacturer of the panel that you are installing the Interlock Kit into. Look for a 2-pole 30 or 50 amp breaker for your generator breaker. Generally people use a 30 amp breaker, inlet box, and power cord for generators less than 10,000 running watts and 50 amp setup for larger units.
Do generator interlock kits meet code? ›Many jurisdictions require that interlock kits be installed to match local building codes. Consult with your local government to see what local regulations are regarding generator feeding. Your local jurisdiction may require that a professional electrician install the kit.
What does a generator interlock do? ›A generator interlock is a device that prevents the main breaker and the generator breaker from being turned on at the same time. It is installed on the front of the home's breaker panel, allowing a generator to power multiple circuits in your house.
Do I need a ground rod for a portable generator? ›If the portable generator is providing electric power to a structure by connection via a transfer switch to a structure (home, office, shop, trailer, or similar) it must be connected to a grounding electrode system, such as a driven ground rod.
What size breaker is needed for a generator? ›On most generators, the outlet is a 30-Amp or 50 Amp 120/240-Volt outlet and connects to a 30-amp or 50-amp 120/240-volt inlet box receptacle. On the control panel below, the large double pole 50-Amp circuit breaker located second from the right controls 240-Volt 50-Amp outlet on the far left.
How much does it cost to install an interlock kit for a generator? ›Interlock kits generally will set you back $1000 to $1500. Manual transfer switch set ups often run $1500 to $2500 depending on how elaborate the system. The transfer switches have a much higher parts cost and the labor is normally a few hours longer to install them. Not sure which one is best for your home?
Is interlock better than transfer switch? ›Compared to a transfer switch, which is limited to a particular number of circuits, an interlock kit allows you to run power from a generator to any circuit within the electrical panel. While this is good in theory, there's a risk of overloading the generator if it's not sized according to the load.
How to connect a generator to your house without transfer switch? ›If you absolutely must connect your generator to your house without a transfer switch, you can use an interlock device/kit, an extension cord, or a dedicated outlet box (that is not part of the rest of the electrical system). Installing any of these devices requires you to contact a licensed electrician.
Can you backfeed a house with a generator? ›Backfeeding a house with a generator is a dangerous practice and illegal in most jurisdictions. The same applies to businesses and apartments. People who backfeed their houses connect the generator to an outlet with a homemade cord fitted with two male plugs.
What is the legal way to connect a generator to your house? ›A generator transfer switch is the legal and proper way to power your home with an emergency generator. There are three main types: automatic, manual transfer sub panel and a breaker interlock. Each has varying degrees of complexity, benefits and expense.
How do I make sure no one steals my generator? ›
Place the generator inside a fenced-in area during use and lock the gate. Consider removing the wheels from the frame to make hauling the generator away more difficult. During the night, a light will also help deter thieves and a motion-activated trail camera can take pictures of potential thieves.
How far does a portable generator have to be from a house code? ›Never run a generator in an enclosed space or indoors.
Always place the generator at least 20 feet from the house with the engine exhaust directed away from windows and doors.
Approximate Clearances to keep in mind:
18 inches (1.5 feet) from the house. 60 inches (5 feet) from doors, windows, and fresh air intakes.
Failure to ground a generator is hazardous and can lead to: Electrical overload on your generator which can damage the wiring or other sensitive parts of the electrical system, unless your generator has overload protection like all the generators at DuroMax. Electrocution from touching ungrounded metal.
Do I need an earth spike with my generator? ›When connecting to an electrical panel (building electrical system, manual transfer switch, RV, etc.) you need to connect your generator to a ground rod. Ground rods must be pounded into the earth, then connected to the ground lug on the generator via a ground cable. The rod must be at least 8ft into the earth.
How deep should a grounding rod be? ›In the event that a rod must be laid flat, it must be buried at a depth of 30 inches. This is a common burial depth for most “made” electrodes. Plate and ground ring electrodes must also be installed at a minimum depth of 30 inches.
What size generator do I need for a 100 amp panel? ›If you have 100 Amp service panel, use a 8-12 kW GenSet (use larger if you have air conditioning). If you have a 200 Amp service panel, use a 15-20 kW GenSet (again use the larger size if you have air conditioning or large well pump).
What size generator has a 50 amp breaker? ›A 6,000-watt generator would be a comfortable baseline for a 50-amp RV. Still, if you anticipate using several appliances simultaneously, you may want to bump that number up to 7,500 watts or so, depending on your budget.
What is the cheapest way to connect a portable generator to your house? ›Obviously, the cheapest way to connect your generator is by using extension cords. Except they don't allow you to use the full power of a large generator. It's like paying for something, but only being able to use half of it.
Can I install a transfer switch myself? ›An electrician can install a generator transfer switch or you can do it yourself. Here is everything you need to learn how to install a transfer switch.
What is a cheaper alternative to a transfer switch? ›
An interlock kit is a less expensive alternative. The idea is similar: When the power goes out, you plug your generator into the same outdoor outlet. But rather than connecting to a transfer switch, the outdoor outlet connects directly to your existing circuit panel.
Can I disconnect my battery with an interlock device? ›Ensure that your mechanic is aware that an approved Alcohol Interlock Device is installed in the vehicle, and that disconnecting the battery for twenty minutes or longer should be avoided as this will be recorded as a violation.
What is the easiest interlock device to use? ›The L250 ignition interlock device is the easiest device to use on the market. It features a slim, discreet design and easy to understand blow patterns to make sure you get back on the road fast. The accuracy of the L250 is unmatched to ensure that you get an accurate reading every time.
What are the downsides of interlocking? ›One of the drawbacks of getting the interlocking technique is that it sometimes causes severe damage to the hair, such as hair thinning. When the procedure is not performed by a professional such as a hair loctician, loc splitting and thin locs. The results can be dreadful in severe cases, such as baldness or alopecia.
Is interlocking worth it? ›Durability. Interlocking pavers are incredibly strong and durable, allowing them to last up to 30 years after being installed. Any cracks or damage can easily be repaired since each paver can be individually be replaced.
How many times should I interlock? ›How often to interlock your locs depends on how active you are and how fast your hair grows. But every six weeks to 3 months is a good guide. Here are a few things you can do to keep your locs neat and extend the time between interlockings: If you can, limit activities that cause you to sweat in your scalp.
Do you need a special breaker for a generator? ›You'll need a circuit breaker that's compatible with your service panel brand and the amperage of your generator. It's typical to use a 30-amp breaker for generators up to 8,000 watts and a 50-amp breaker with 8,500- to 15,000-watt generators.
What is the NEC code for generator interlock? ›Section 702 of the NEC requires a mechanical interlock between two power sources to prevent the interconnection of the two sources.
Can I install a generator transfer switch myself? ›Can I Install a Generator Transfer Switch Myself? Technically, yes, you can install a generator transfer switch on your own, assuming you have the necessary experience working with electronics and are comfortable doing it.
Will a 30 amp generator run a house? ›If you are not intending on running your central air conditioning or do not have central air then chances are a 30 amp generator is perfect to power your home.
How do I hook up a portable generator to my house? ›
You simply plug the gen cord into the 20- or 30-amp outlet on your generator. The opposite end splits into several household outlets, where you can start connecting additional extension cords safely indoors.
Should I run my generator on 120 or 240? ›For higher voltage applications such as supplying certain tools or connecting to the house during an outage, the 240-volt option is important. If you're looking at 3000 watts or less, you're probably fine with a 120-volt generator. Otherwise, choose a generator with 120/240-Volt outlets.
What is the difference between a transfer panel and an interlock switch? ›Compared to a transfer switch, which is limited to a particular number of circuits, an interlock kit allows you to run power from a generator to any circuit within the electrical panel. While this is good in theory, there's a risk of overloading the generator if it's not sized according to the load.
Is it illegal to run a generator without a transfer switch? ›Backfeeding is the tying of a portable generator directly to your home's electrical panel instead of using a transfer switch. It is dangerous. It is often illegal. And it should never be attempted under any circumstance.
How much does it cost to install a transfer switch for a home generator? ›A transfer switch allows you to power any of those—and skip the extension cords. Plan on a cost of $500 to $1,500 for the switch, including installation, which usually takes less than a day.
Do I need an electrician to install transfer switch? ›How does a transfer switch work? A licensed electrician will install the transfer switch into your home and connect it with the main service panel where your circuit breakers are located. The main breaker in the transfer switch switches the power source from utility to generator.
Can you hook a generator directly to your house? ›Your generator should have come with a cable to connect to your house. Plug it in, select which voltage you want (if you can), and do the same turn of the plug (about 15 degrees) that you did with the other end and the receptacle. Never plug a generator directly into a wall outlet or your home's wiring.
What do I need to connect my generator to my electrical panel? ›A transfer switch is the first thing you'll need to connect a portable generator to an electrical system safely. It ensures you can power your house using a generator without damaging wiring or equipment. Moreover, it's the legal way to power your home. You'll have to wire the transfer switch into the electrical panel.
Is it safe to connect a portable generator to electrical panel? ›If the connection to the home wiring is not done correctly, then the generator can feed into BARC's power system and can electrocute linemen who are working to restore power. Generators should never be connected to a home electrical outlet and should not be directly connected to the circuit breaker panel.