Commit 1f974d6a authored by vaisakh.nair's avatar vaisakh.nair 🎯

template ,config and logic changes

parent 12adb025
# MONGO_CLIENT=mongodb://localhost
# MONGO_PORT=2717
# MONGO_DATABASE=admin
# MONGO_COLLECTION=eventLogs
MONGO_CLIENT=mongodb://admin:iLens%241234@192.168.3.181:2717/admin?connectTimeoutMS=10000&authSource=admin&authMechanism=SCRAM-SHA-1
MONGO_PORT=2717
MONGO_DATABASE=ilens_ai
......@@ -12,8 +8,3 @@ AUTHORIZATION=Basic QWxsR29vZE5hbWVzUkdvbmU6Y29tQlJBTlNlQU50YW1hc0ViSUNhUGVD
FROM_ADDRESS=no-reply@ilens.io
MONGO_COLLECTION_EMAIL=email_ids
GATEWAY=priority
# SMTP_HOST=
# SMTP_PORT=
# SMTP_USERNAME=
# SMTP_PASSWORD=
# SENDER_EMAIL=
\ No newline at end of file
# Use an official Python runtime as the base image
FROM python:3.9
FROM python:3.8
# Set the working directory in the container
WORKDIR /app
......
......@@ -14,7 +14,7 @@ def generate_daily_report():
report_path = report_generator.create_excel_report()
# Send the email with the report
report_generator.send_email_from_ut(filepath=report_path)
#report_generator.send_email_from_ut(filepath=report_path)
return report_path
......
template_file: D:\vision_utilities\vision_utilities\report_generator\templates\daily_report_jk_template - Copy.xlsx
template_file: D:\vision_utilities\vision_utilities\report_generator\templates\daily_report_jk_template.xlsx
# logo_image: path/to/logo.png
cameras:
......@@ -15,16 +15,6 @@ cameras:
- camera_name: Packer 7
packer_name: Packer - 7
# subject: Daily Report
# # body: |
# # Dear Sir,
# # Please find attached the daily report for your review for yesterday's consignment.
# # Thanks and Regards.
email:
......
......@@ -84,7 +84,7 @@ class DailyReportGenerator:
sheet = wb.active
# Set report date
sheet['L6'] = report_date
sheet['F5'] = report_date
serial_number = 1
# Define the shifts and their respective time ranges
......@@ -124,7 +124,7 @@ class DailyReportGenerator:
serial_number += 1
# Fill the total count in cell E26
sheet['F26'] = total_count
sheet['F25'] = total_count
# Fill the packer counts in column L
for packer_name, count in packer_counts.items():
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment