Tired of overwatering your lawn or dealing with brown, thirsty patches? A smart lawn sprinkler controller is your ticket to a perfectly hydrated landscape, effortlessly. These intelligent devices connect to your Wi-Fi, allowing you to manage your irrigation system from your smartphone, tablet, or computer, no matter where you are. They use weather data and sophisticated algorithms to water your plants only when they need it, saving you water, money, and the hassle of manual adjustments. Let’s dive into the best options available to keep your lawn lush and vibrant.

Table of Contents

Quick Product Comparison

.modern-product-table {
width: 100%;
border-collapse: separate;
border-spacing: 0;
background: white;
border-radius: 12px;
overflow: hidden;
box-shadow: 0 8px 32px rgba(0,0,0,0.1);
font-size: 14px;
}
.modern-product-table thead th {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
padding: 10px 8px;
text-align: left;
font-weight: 600;
font-size: 15px;
border: none;
}
.modern-product-table tbody td {
padding: 10px 8px;
border-bottom: 1px solid #f0f0f0;
vertical-align: middle;
}
.modern-product-table tbody tr:last-child td {
border-bottom: none;
}
.product-name {
font-weight: 600;
color: #2d3748;
font-size: 14px;
line-height: 1.4;
max-width: 300px;
}
.product-name a {
color: inherit;
text-decoration: none;
}
.product-name a:hover {
color: #ff6b35 !important;
}
.product-image-cell {
text-align: center;
width: 80px;
}
.product-image-cell img {
width: 60px;
height: 60px;
object-fit: cover;
border-radius: 8px;
border: 2px solid #e2e8f0;
transition: transform 0.2s ease;
}
.product-image-cell img:hover {
transform: scale(1.05);
}
.price-button-cell {
text-align: center;
width: 140px;
}
.price-button {
display: inline-block;
background: linear-gradient(135deg, #ff9900 0%, #ff6b35 100%);
color: white;
padding: 8px 12px;
text-decoration: none !important;
border-radius: 6px;
font-weight: 600;
font-size: 13px;
box-shadow: 0 2px 8px rgba(255,153,0,0.3);
transition: all 0.2s ease;
white-space: nowrap;
}
.price-button:hover {
transform: translateY(-1px);
box-shadow: 0 4px 12px rgba(255,153,0,0.4);
}
@media (max-width: 768px) {
.modern-product-table {
font-size: 13px;
}
.modern-product-table thead th {
padding: 8px 6px;
font-size: 14px;
}
.modern-product-table tbody td {
padding: 8px 6px;
}
.product-name {
font-size: 13px;
max-width: 200px;
}
.product-image-cell img {
width: 50px;
height: 50px;
}
.price-button {
padding: 6px 10px;
font-size: 12px;
}
}
@media (max-width: 480px) {
.modern-product-table {
font-size: 12px;
}
.modern-product-table thead th {
padding: 6px 4px;
font-size: 13px;
}
.modern-product-table tbody td {
padding: 6px 4px;
}
.product-name {
font-size: 12px;
max-width: 150px;
}
.product-image-cell {
width: 60px;
}
.product-image-cell img {
width: 40px;
height: 40px;
}
.price-button-cell {
width: 120px;
}
.price-button {
padding: 5px 8px;
font-size: 11px;
}
}

Product Image Check Price
1. Rain Bird ARC8 8-Zone Smart WiFi Irrigation Sprinkler Timer Controller for Indoor or Outdoor Use… Rain Bird ARC8 8-Zone Smart WiFi Irrigation Sprinkler Timer Controller Check Price
2. AI Smart Sprinkler Controller: 8-Zone WiFi Irrigation for Indoor and Outdoor Lawn Watering… AI Smart Sprinkler Controller: 8-Zone WiFi Irrigation for Indoor and O Check Price
3. Smart Sprinklers Controller: 4-Zone WiFi Irrigation with App, Auto Rain Skip, Easy Install… Smart Sprinklers Controller: 4-Zone WiFi Irrigation with App, Auto Rai Check Price
4. Rain Bird ST8O-2.0 8-Zone Smart WiFi Sprinkler Irrigation Controller, WaterSense Certified for Alexa… Rain Bird ST8O-2.0 8-Zone Smart WiFi Sprinkler Irrigation Controller, Check Price
5. Smart Sprinklers Controller: 6-Zone WiFi Irrigation with App, Auto Rain Skip, Easy Install… Smart Sprinklers Controller: 6-Zone WiFi Irrigation with App, Auto Rai Check Price
6. Hunter Hydrawise HPC400 Smart WiFi 4-Zone Irrigation Controller, App Controlled Lawn Sprinkler Syste… Hunter Hydrawise HPC400 Smart WiFi 4-Zone Irrigation Controller, App C Check Price
7. Rachio 3 WiFi Smart Lawn Sprinkler Controller, Works with Alexa, 8-Zone… Rachio 3 WiFi Smart Lawn Sprinkler Controller, Works with Alexa, 8-Zon Check Price

Our Top 7 Best Smart Lawn Sprinkler Controller Reviews – Expert Tested & Recommended

h3 { transition: color 0.2s ease; } h3:hover { color: #ff6b35; }

🏆 Best Choice

1. Rain Bird ARC8 8-Zone Smart WiFi Irrigation Sprinkler Timer Controller for Indoor or Outdoor Use

Rain Bird ARC8 8-Zone Smart WiFi Irrigation Sprinkler Timer Controller

The Rain Bird ARC8 8-Zone Smart WiFi Irrigation Sprinkler Timer Controller is a fantastic option for anyone looking to gain smart control over their lawn’s watering. It’s designed for both indoor and outdoor use, offering flexibility for placement. The intuitive Rain Bird mobile app makes managing schedules from anywhere incredibly easy, and you can even share access with others. This controller is built for daily use with outstanding durability and reliability, ensuring your lawn gets the water it needs without waste.

Key Features That Stand Out

  • Seamless mobile app control for scheduling and adjustments from anywhere.
  • Easy sharing of control with family or landscaping professionals.
  • Real-time local weather forecast integration to optimize watering.
  • Durable design suitable for indoor or outdoor installation.
See also  Best Lawn Blower For Contractors: Pro Picks Guide

Why We Recommend It

We highly recommend the Rain Bird ARC8 for its user-friendly interface and robust performance. It simplifies irrigation management with remote access and smart features that help conserve water. This controller truly puts you in command of your lawn’s watering needs.

Best For

This controller is ideal for homeowners seeking a reliable and easy-to-use smart sprinkler system with excellent app control and durability.

Pros and Cons

Pros:
  • Intuitive mobile app for effortless control.
  • Durable and versatile for indoor/outdoor use.
  • Convenient remote access and schedule sharing.
  • Integrates local weather for smarter watering.
Cons:
  • May require an indoor power outlet for installation.
  • Advanced features might have a slight learning curve for some users.

Customer Reviews

Customer Review: Easy setup even without reading the instructions. This is my third sprinkler timer setup, first one that can be controlled by an app. Setting up the stations in the app is a lot faster and easier than standing at the controller pressing buttons and turning a dial.I bought this particular one because…

Customer Review: I upgraded from a 3 year old rainbird which i hated.I have 38 sprinklers and a ton of plantsWhy I love this updated version.1. Easy to install. 1 screw holds it in place.The instructions are easy to follow. I had to call tech support, they are great. Fixed my issue fast2 They want this indoors, m…

h3 { transition: color 0.2s ease; } h3:hover { color: #ff6b35; }

⭐ Editor’s Choice

2. AI Smart Sprinkler Controller: 8-Zone WiFi Irrigation for Indoor and Outdoor Lawn Watering

AI Smart Sprinkler Controller: 8-Zone WiFi Irrigation for Indoor and Outdoor Lawn Watering

The AI Smart Sprinkler Controller leverages advanced artificial intelligence to optimize your lawn’s watering. This 8-zone system is designed for both indoor and outdoor use, and it stands out with its AI-powered smart watering that adjusts schedules based on real-time soil moisture and weather data. While it requires a 2.4GHz Wi-Fi network, its ability to integrate with optional soil moisture sensors makes it a powerful tool for precision watering and water conservation.

Key Features That Stand Out

  • AI-powered watering adjusts schedules based on real-time conditions.
  • Compatible with optional soil moisture sensors for enhanced accuracy.
  • Intuitive app for easy monitoring and control.
  • Supports 8 watering zones for comprehensive coverage.

Why We Recommend It

This controller is our editor’s choice because of its intelligent AI features that truly automate watering with exceptional efficiency. It’s a forward-thinking solution for those who want their sprinkler system to be as smart as possible and minimize water waste.

Best For

This is an excellent choice for tech-savvy homeowners looking for an advanced, AI-driven irrigation system that can adapt to precise lawn needs.

Pros and Cons

Pros:
  • Sophisticated AI for optimized watering schedules.
  • Supports optional soil moisture sensors for greater precision.
  • User-friendly app for remote management.
  • Designed for both indoor and outdoor use.
Cons:
  • Only supports 2.4GHz Wi-Fi networks.
  • Soil moisture sensors are sold separately.

Customer Reviews

Customer Review: I recently installed the Soildrops AI Smart Sprinkler Controller on my lawn and it’s been a game-changer. The app is intuitive — real-time soil moisture levels, clear zone controls, and the entire system just ‘gets’ what my garden needs without me wrestling with manual timers or guesswork.Setup was…

Customer Review: I thought installing a smart irrigation controller would be a headache, but this one was shockingly easy. The app told me exactly what to do and the sensors paired right away. It’s been running for two months without issues. I like that I don’t have to touch anything — it just works every morning ba…

h3 { transition: color 0.2s ease; } h3:hover { color: #ff6b35; }

💰 Best Budget

3. Smart Sprinklers Controller: 4-Zone WiFi Irrigation with App, Auto Rain Skip, Easy Install

Smart Sprinklers Controller: 4-Zone WiFi Irrigation with App, Auto Rain Skip, Easy Install

If you’re looking for an affordable yet feature-rich smart sprinkler controller, this 4-Zone WiFi Irrigation system is a top contender. It offers easy app control, allowing you to manage your watering from anywhere. The auto rain skip feature is a real water saver, preventing unnecessary watering during inclement weather. Plus, the easy installation means you can upgrade your irrigation system without a headache, making it a great budget-friendly choice.

Key Features That Stand Out

  • Simple and intuitive Hioazo app for remote control.
  • Automatic rain skip and weather-based adjustments conserve water.
  • Customizable watering plans for up to 16 schedules across 4 zones.
  • Straightforward installation process.

Why We Recommend It

This controller earns our “Best Budget” title by delivering excellent smart functionality without breaking the bank. It’s perfect for those who want the convenience of app control and water-saving features at an accessible price point.

Best For

Ideal for homeowners on a budget who want to upgrade to a smart, app-controlled sprinkler system with essential water-saving features.

Pros and Cons

Pros:
  • Affordable price point with great value.
  • Effective auto rain skip and weather integration.
  • Easy-to-use app and simple installation.
  • Flexible scheduling options for different zones.
Cons:
  • Fewer advanced customization options compared to premium models.
  • App interface, while simple, might lack some advanced metrics.

Customer Reviews

Customer Review: This is a very good sprinkler controller! It’s easy to set up and use, even for someone who isn’t very tech-savvy. The software interface is clean, intuitive, and straightforward — scheduling watering times, adjusting zones, and making quick changes is simple and hassle-free. The controller connects…

Customer Review: This sprinkler controller from HiOazo has completely transformed how I manage my yard. The app is incredibly easy to use and lets me control everything right from my phone—no more running back and forth to the garage to adjust watering settings. I love being able to check schedules and monitor every…

h3 { transition: color 0.2s ease; } h3:hover { color: #ff6b35; }

See also  Top 4 Push Lawn Sweepers for Sticks: Expert Picks

4. Rain Bird ST8O-2.0 8-Zone Smart WiFi Sprinkler Irrigation Controller, WaterSense Certified for Alexa

Rain Bird ST8O-2.0 8-Zone Smart WiFi Sprinkler Irrigation Controller, WaterSense Certified for Alexa

The Rain Bird ST8O-2.0 is a robust 8-zone smart WiFi controller that brings sophisticated irrigation control to your fingertips. It’s WaterSense certified, meaning it’s designed for water efficiency. With Alexa compatibility, you can control your sprinklers using voice commands. The ease of programming via the app or directly on the unit, coupled with its ability to adjust schedules based on local weather, makes it a smart choice for maintaining a healthy and water-conscious lawn.

Key Features That Stand Out

  • Works seamlessly with Amazon Alexa for voice control.
  • WaterSense certified for optimal water conservation.
  • Easy programming via mobile app or the controller itself.
  • Integrates local weather data to adapt watering schedules.

Why We Recommend It

This Rain Bird controller is a reliable option for those who want advanced features like voice control and water efficiency certifications. It offers a great balance of smart technology and user-friendly operation for effective lawn care.

Best For

Perfect for users who already use Alexa and want a WaterSense certified sprinkler controller that integrates with their smart home ecosystem.

Pros and Cons

Pros:
  • Excellent integration with Amazon Alexa.
  • Water-efficient design with WaterSense certification.
  • User-friendly interface for programming and adjustments.
  • Remote access via smartphone for convenient control.
Cons:
  • Requires a Wi-Fi connection for smart features.
  • Some users might find the initial setup slightly more involved than basic timers.

Customer Reviews

Customer Review: I purchased this to replace a manual Rainbird controller. The wifi feature and phone app allow for the program of the unit without any physical contact. The unit will also monitor the weather by using your zip code to modify the watering schedule. It is very easy to adjust watering time by the day a…

Customer Review: Great controller! Quick & easy to install to replace an old model that stopped working. Easy to program, by either the controller or the app. App easy to install, program and adjust as needed. Has worked great since installed. Our irrigation pros were impressed by this model.

h3 { transition: color 0.2s ease; } h3:hover { color: #ff6b35; }

5. Smart Sprinklers Controller: 6-Zone WiFi Irrigation with App, Auto Rain Skip, Easy Install

Smart Sprinklers Controller: 6-Zone WiFi Irrigation with App, Auto Rain Skip, Easy Install

This 6-Zone WiFi Irrigation Controller offers a fantastic balance of features and affordability. Similar to its 4-zone counterpart, it provides easy app control for managing your sprinklers from anywhere. The auto rain skip function is a key water-saving feature, and the system is designed for straightforward installation. With 6 zones, it’s suitable for slightly larger lawns or gardens needing more granular control over watering.

Key Features That Stand Out

  • Convenient remote access via the Hioazo app.
  • Intelligent weather-aware functionality to prevent overwatering.
  • Supports 6 watering zones for versatile lawn management.
  • Easy to install and set up.

Why We Recommend It

We recommend this controller for its excellent value and practical smart features. It offers a great upgrade from traditional timers, providing convenience and water savings without a hefty price tag.

Best For

This is a great option for homeowners with medium-sized lawns who want a reliable smart controller with app functionality and water-saving features.

Pros and Cons

Pros:
  • Good value for a 6-zone smart controller.
  • Intuitive app control for easy management.
  • Effective rain skip feature helps conserve water.
  • Simple installation makes upgrading straightforward.
Cons:
  • May not offer the highly advanced weather forecasting integrations of premium brands.
  • Limited expandability beyond the initial 6 zones.

Customer Reviews

Customer Review: Worked great , app was featured packed installation was simple. Been wanting one forever and price was great…

Customer Review: Great Value for the price. I have 4 zones that were being controlled by an Orbit that you had to manually program. The programing was not easy or reliable.This unit installed quickly in my garage. I took pics of the wiring so it was no problem on the hookup.Getting the unit started took some time…

h3 { transition: color 0.2s ease; } h3:hover { color: #ff6b35; }

6. Hunter Hydrawise HPC400 Smart WiFi 4-Zone Irrigation Controller, App Controlled Lawn Sprinkler System

Hunter Hydrawise HPC400 Smart WiFi 4-Zone Irrigation Controller, App Controlled Lawn Sprinkler System

The Hunter Hydrawise HPC400 is a feature-packed 4-zone smart controller designed for optimal water savings. Its Hydrawise app offers comprehensive control from any internet-connected device, allowing you to manage your sprinklers remotely. This system excels in weather-based watering, automatically adjusting schedules to conserve water and reduce your utility bills by up to 50%. It’s also expandable, meaning you can add more zones as your landscaping needs grow.

Key Features That Stand Out

  • Control from anywhere via the Hydrawise app.
  • Significant water savings (up to 50%) through weather-based adjustments.
  • Expandable from 4 zones up to 16.
  • Real-time weather adjustments ensure efficient watering.

Why We Recommend It

This Hunter controller is a great choice for those prioritizing water conservation and efficiency. The Hydrawise platform is robust, offering advanced features and the ability to scale as your irrigation needs evolve.

Best For

Ideal for homeowners looking for a highly efficient, water-saving irrigation system with the flexibility to expand in the future.

Pros and Cons

Pros:
  • Exceptional water savings through smart scheduling.
  • Robust app control with extensive features.
  • Expandable zone capacity for larger systems.
  • Reliable brand with a proven track record.
Cons:
  • Installation might require some electrical knowledge.
  • The price point may be higher than basic budget controllers.

Customer Reviews

Customer Review: Excellent product. Easy to program with their App and fairly easy to installHowever, if you are replacing an existing non-smart Hunter controller and trying to attach it to your house you will have to remove all the internal mechanisms to get to the upper left-hand corner of the controller housing t…

Customer Review: Works Great. Easy to install and able to control my sprinklers from my phone now.Easy to set-up and program. So convenient.

h3 { transition: color 0.2s ease; } h3:hover { color: #ff6b35; }

See also  Best Lawn Blower For Patios And Pathways: Top Compact Picks

7. Rachio 3 WiFi Smart Lawn Sprinkler Controller, Works with Alexa, 8-Zone

Rachio 3 WiFi Smart Lawn Sprinkler Controller, Works with Alexa, 8-Zone

The Rachio 3 WiFi Smart Lawn Sprinkler Controller is a top-tier choice, known for its usability and integration with smart home systems like Alexa. This 8-zone controller offers an exceptional user experience, with its companion app making remote adjustments and schedule monitoring incredibly straightforward. It uses hyper-local weather data to fine-tune watering, ensuring your lawn gets exactly what it needs. It’s a certified refurbished product, meaning you get like-new performance at a potentially better value.

Key Features That Stand Out

  • Seamless integration with Amazon Alexa and other smart home platforms.
  • Utilizes hyper-local weather data for precise watering adjustments.
  • User-friendly app for intuitive control via smartphone or tablet.
  • Certified refurbished for quality assurance.

Why We Recommend It

The Rachio 3 stands out for its ease of use and smart home compatibility. It simplifies lawn care significantly, providing peace of mind that your lawn is being watered efficiently and effectively, all controllable from your phone.

Best For

This controller is perfect for smart home enthusiasts and those who prioritize ease of use and advanced weather integration for their irrigation needs.

Pros and Cons

Pros:
  • Extremely user-friendly app and setup process.
  • Excellent smart home integration, especially with Alexa.
  • Highly accurate watering based on local weather.
  • Offers significant water and cost savings.
Cons:
  • Can be more expensive than basic smart controllers.
  • Requires a stable Wi-Fi connection for full functionality.

Customer Reviews

Customer Review: After my 20+ year old legacy controller finally gave up the ghost, I embarked on a quest to find a modern replacement. The Rachio 3 caught my attention, and here’s why.I scoured Amazon reviews, seeking a smart sprinkler controller that would seamlessly replace my old system. The Rachio 3 consistentl…

Customer Review: Easiest set up ever. Mounted box, swapped wires, downloaded app and set up zones and wham bam thank you maam it worked perfectly. Uses my address to see if I even need to water based on current conditions, allows me to hit one spot by the pool if things look a little dry using my phone instead of wa…

Complete Buying Guide for Best Smart Lawn Sprinkler Controller

Essential Factors We Consider

When choosing the best smart lawn sprinkler controller, we look at several key factors. First and foremost is ease of use; the app interface and setup process should be intuitive for everyone, regardless of technical skill. We also prioritize smart features like weather-based watering, rain delay capabilities, and integration with weather forecasts. Connectivity is crucial, so reliable Wi-Fi performance is a must. The number of zones supported is important for matching the controller to your lawn’s size and complexity. Finally, durability and water-saving potential are significant considerations, as we want a controller that lasts and helps reduce your water bill.

Budget Planning

Smart sprinkler controllers vary in price, with basic models starting around $50-$100 and high-end units with advanced features reaching $200 or more. Consider your budget and the size of your lawn when making a choice. While investing in a premium model might seem expensive upfront, the water savings over time can often offset the initial cost, making it a worthwhile investment for both your wallet and the environment.

Final Thoughts

Investing in a smart lawn sprinkler controller is one of the smartest decisions you can make for your home and garden. It brings convenience, efficiency, and significant water savings. By choosing a controller that fits your lawn’s needs and your budget, you can ensure a healthy, vibrant landscape with minimal effort and maximum peace of mind.

Frequently Asked Questions

Q: How does a smart sprinkler controller save water?

A: Smart sprinkler controllers use local weather data (like rainfall, temperature, and humidity) to automatically adjust watering schedules. They can skip watering when it rains, reduce watering during cooler periods, and provide the optimal amount of water your lawn needs, preventing overwatering and reducing waste.

Q: Do I need a professional to install a smart sprinkler controller?

A: For most smart sprinkler controllers, installation is straightforward and can typically be done by a homeowner. Most come with clear instructions and connect to existing sprinkler wiring. However, if you’re uncomfortable with basic electrical wiring or have a complex system, hiring a professional is always an option.

Q: Can I control my sprinklers with my phone?

A: Yes, that’s the main benefit of a smart sprinkler controller! All of the models we’ve reviewed connect to your home’s Wi-Fi and come with a dedicated mobile app that allows you to set schedules, monitor watering, and make adjustments from anywhere with an internet connection.

Q: What is the difference between a smart controller and a regular timer?

A: A regular sprinkler timer operates on a fixed schedule you set, watering regardless of weather conditions. A smart controller, on the other hand, is dynamic. It connects to the internet, accesses real-time weather data, and intelligently adjusts watering to meet your lawn’s needs, saving water and promoting healthier growth.

Q: Are smart sprinkler controllers compatible with all sprinkler systems?

A: Most smart sprinkler controllers are designed to work with standard residential sprinkler systems. However, it’s always best to check the controller’s specifications to ensure it supports the number of zones your system has and the voltage of your valves before purchasing.

Choosing the right smart lawn sprinkler controller can revolutionize your lawn care routine. From saving water and money to ensuring your greenery thrives, these devices offer unparalleled convenience and efficiency. Explore the options above, consider your specific needs, and take the leap into smarter lawn maintenance today!

// Fetch real-time product data for all products when page loads
(function() {
const products = [‘B0B1NZ2WF4’, ‘B0FMDP1LY3’, ‘B0F883P8N1’, ‘B07N3DTQH4’, ‘B0F2HV721R’, ‘B08BJBKW44’, ‘B07K3RQJFX’];
const affiliateTag = ‘lawnrom00-20’;

async function fetchLiveProductData(asin) {
try {
const updateTimeEl = document.getElementById(‘update-time-‘ + asin);
if (updateTimeEl) updateTimeEl.innerHTML = ‘⏳ Fetching…’;

const amazonUrl = ‘https://www.amazon.com/dp/’ + asin;
const response = await fetch(‘https://api.allorigins.win/raw?url=’ + encodeURIComponent(amazonUrl));
const html = await response.text();
const parser = new DOMParser();
const doc = parser.parseFromString(html, ‘text/html’);

let price = null;
const priceWhole = doc.querySelector(‘.a-price-whole’);
const priceFraction = doc.querySelector(‘.a-price-fraction’);
if (priceWhole) {
price = ‘$’ + priceWhole.textContent.trim() + (priceFraction ? priceFraction.textContent.trim() : ”);
}

let rating = null;
const ratingEl = doc.querySelector(‘[data-hook=”average-star-rating”] .a-icon-alt’);
if (ratingEl) {
const match = ratingEl.textContent.match(/(d+.d+)/);
if (match) rating = match[1];
}

let reviewCount = null;
const reviewEl = doc.querySelector(‘#acrCustomerReviewText’);
if (reviewEl) reviewCount = reviewEl.textContent.trim();

if (price) {
const priceEl = document.getElementById(‘price-‘ + asin);
if (priceEl) {
priceEl.innerHTML = price;
priceEl.style.animation = ‘pulse 0.5s’;
}
}

// if (rating) {
// const ratingEl = document.getElementById(‘rating-‘ + asin);
// if (ratingEl) {
// const stars = ‘⭐’.repeat(Math.floor(parseFloat(rating)));
// ratingEl.innerHTML = stars + ‘ ‘ + rating + ‘/5’;
// ratingEl.style.animation = ‘pulse 0.5s’;
// }
// }

if (reviewCount) {
const reviewsEl = document.getElementById(‘reviews-‘ + asin);
if (reviewsEl) {
reviewsEl.innerHTML = reviewCount;
reviewsEl.style.animation = ‘pulse 0.5s’;
}
}

if (updateTimeEl) {
const now = new Date();
const timeStr = now.toLocaleString(‘en-US’, {
month: ‘long’, day: ‘numeric’, year: ‘numeric’,
hour: ‘numeric’, minute: ‘2-digit’, hour12: true
});
updateTimeEl.innerHTML = ‘✓ Updated: ‘ + timeStr;
}
} catch (error) {
const updateTimeEl = document.getElementById(‘update-time-‘ + asin);
if (updateTimeEl) updateTimeEl.innerHTML = ‘✓ Cached data’;
}
}

const style = document.createElement(‘style’);
style.textContent = `@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.7; } }`;
document.head.appendChild(style);

function loadAllProducts() {
products.forEach((asin, index) => {
setTimeout(() => fetchLiveProductData(asin), index * 2000);
});
}

if (document.readyState === ‘loading’) {
document.addEventListener(‘DOMContentLoaded’, loadAllProducts);
} else {
loadAllProducts();
}
})();

Share.