agriculture portal
1.0.0
fsend_otp.php
and csend_otp.php
files and change username and password.function smtp_mailer($to,$subject, $msg){
require_once("../smtp/class.phpmailer.php");
$mail = new PHPMailer();
$mail->IsSMTP();
$mail->SMTPDebug = 0;
$mail->SMTPAuth = TRUE;
$mail->SMTPSecure = 'ssl';
$mail->Host = "smtp.gmail.com";
$mail->Port = 465;
$mail->IsHTML(true);
$mail->CharSet = 'UTF-8';
$mail->Username = "[email protected]"; // Change it to yours email address
$mail->Password = "password";
$mail->SetFrom("[email protected]"); // App Password, (16 character Key)
$mail->Subject = $subject;
$mail->Body =$msg;
$mail->AddAddress($to);
if(!$mail->Send()){
return 0;
}else{
return 1;
}
}
git clone https://github.com/vaishnavid0604/agriculture-portal.git
pip install -r requirements.txt
customer/cbuy_crops.php
.$session = StripeCheckoutSession::create([
'payment_method_types' => ['card'],
'line_items' => [[
'price_data' => [
'product' => 'prod_NdAYaoDLX3DnMY',
'unit_amount' => $TotalCartPrice,
'currency' => 'inr',
],
'quantity' => 1,
]],
'mode' => 'payment',
'success_url' => 'http://localhost/projects/agri2/customer/cupdatedb.php', // Change File Path
'cancel_url' => 'http://localhost/projects/agri2/customer/cbuy_crops.php', // Change File Path
]);
fnewsfeed.php
fweather_forecast.php
customer/stripePayment/config.php
index.php
and fchatgpt.php
The Crop Management System dataset includes the following features:
State_Name
, District_Name
, and Season
to get the predicted crop for that location.N
, P
, K
, Temperature
, Humidity
, pH
, and Rainfall
for that location to get recommended crops for that location.Temperature
, Humidity
, Soil Moisture
, Soil Type
, Crop Type
, Nitrogen
, Phosphorous
, and Potassium
to get recommended fertilizer for that crop and location.Subdivision
and Year
to get rainfall prediction for that year.State_Name
, District_Name
, Crop_Year
, Season
, Crop
, Area
, Production
to get predicted yields for that crop and location.This project is licensed under the MIT License.