Skip to content

dev-wjood/HaseelWebsite

Repository files navigation

Haseel Website

📖 Description

Haseel automates greenhouse farming with IoT precision. Our system monitors temperature, humidity, soil moisture, and nutrients in real-time, while intelligently controlling cooling, irrigation, and ventilation. Set your ideal thresholds once, and let SmartFarm maintain perfect growing conditions automatically - or take manual control anytime from our mobile-friendly dashboard. Grow smarter with 24/7 precision care for your plants.

🛠️ Technical Implementation

🔌 Connection Protocol

🔑 Core Integration Code

1- ThingSpeak Integration:

const thingSpeakAPIKey = 'Your ThingSpeak API Key';
const channelID = 'Your Channel ID';

2- Data Fetching from ThingSpeak:

function getRealTimeData(realTimeData, field) {
    var url = "https://api.thingspeak.com/channels/" + channelID + "/fields/" + field + "/last.json";

    $.getJSON(url, function (data) {
        var value = data["field" + field];
        if (value < 1000) {
            $(realTimeData).text(value);
        }
    });
}

🖥️ Haseel Website Interfaces

View Page:

Monitor real-time sensor data and explore historical data with graphs.

    

Control Page:

Manually adjust toggle switches or set threshold values to configure automation rules.

    

Settings Page:

Enable/disable automation features and configure system preferences.


📝 Production Notes

  • Replace channelID and API keys with environment variables.
  • Enable Firebase Email/Password auth with authorisation.
  • Set up ThingSpeak rate limiting (15 sec/update free tier).

🛎️ Current Limitations

Area Constraint Improvement Path
Authentication Basic Firebase (No RBAC) Implement role-based access
Responsiveness Optimized for mobile only Tablet/desktop layouts
Data Pipeline ThingSpeak free tier limits Migrate to AWS IoT/Azure

🚀 Future Work

  • Applying better mechanism for accessing APIs and storing keys.
  • Improving the automation mechanism by creating a database that stores thresholds of the measured factors for all kinds of plant.
  • Applying visual monitoring by adding cameras at the farm.
    • Implmenting ML model for detecting plant diseases.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published