Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
JK_Report
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
CI / CD Analytics
Repository Analytics
Value Stream Analytics
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
vaisakh.nair
JK_Report
Commits
1f974d6a
Commit
1f974d6a
authored
May 16, 2023
by
vaisakh.nair
🎯
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
template ,config and logic changes
parent
12adb025
Changes
8
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
6 additions
and
25 deletions
+6
-25
.env
.env
+0
-9
Dockerfile
Dockerfile
+1
-1
app.py
app.py
+1
-1
config.yml
config.yml
+2
-12
daily_report.xlsx
daily_report.xlsx
+0
-0
scripts/__pycache__/create_report.cpython-38.pyc
scripts/__pycache__/create_report.cpython-38.pyc
+0
-0
scripts/create_report.py
scripts/create_report.py
+2
-2
templates/daily_report_jk_template.xlsx
templates/daily_report_jk_template.xlsx
+0
-0
No files found.
.env
View file @
1f974d6a
# 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_CLIENT=mongodb://admin:iLens%241234@192.168.3.181:2717/admin?connectTimeoutMS=10000&authSource=admin&authMechanism=SCRAM-SHA-1
MONGO_PORT=2717
MONGO_PORT=2717
MONGO_DATABASE=ilens_ai
MONGO_DATABASE=ilens_ai
...
@@ -12,8 +8,3 @@ AUTHORIZATION=Basic QWxsR29vZE5hbWVzUkdvbmU6Y29tQlJBTlNlQU50YW1hc0ViSUNhUGVD
...
@@ -12,8 +8,3 @@ AUTHORIZATION=Basic QWxsR29vZE5hbWVzUkdvbmU6Y29tQlJBTlNlQU50YW1hc0ViSUNhUGVD
FROM_ADDRESS=no-reply@ilens.io
FROM_ADDRESS=no-reply@ilens.io
MONGO_COLLECTION_EMAIL=email_ids
MONGO_COLLECTION_EMAIL=email_ids
GATEWAY=priority
GATEWAY=priority
# SMTP_HOST=
# SMTP_PORT=
# SMTP_USERNAME=
# SMTP_PASSWORD=
# SENDER_EMAIL=
\ No newline at end of file
Dockerfile
View file @
1f974d6a
# Use an official Python runtime as the base image
# Use an official Python runtime as the base image
FROM
python:3.
9
FROM
python:3.
8
# Set the working directory in the container
# Set the working directory in the container
WORKDIR
/app
WORKDIR
/app
...
...
app.py
View file @
1f974d6a
...
@@ -14,7 +14,7 @@ def generate_daily_report():
...
@@ -14,7 +14,7 @@ def generate_daily_report():
report_path
=
report_generator
.
create_excel_report
()
report_path
=
report_generator
.
create_excel_report
()
# Send the email with the 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
return
report_path
...
...
config.yml
View file @
1f974d6a
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
# logo_image: path/to/logo.png
cameras
:
cameras
:
...
@@ -15,16 +15,6 @@ cameras:
...
@@ -15,16 +15,6 @@ cameras:
-
camera_name
:
Packer
7
-
camera_name
:
Packer
7
packer_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
:
email
:
...
...
daily_report.xlsx
deleted
100644 → 0
View file @
12adb025
File deleted
scripts/__pycache__/create_report.cpython-38.pyc
View file @
1f974d6a
No preview for this file type
scripts/create_report.py
View file @
1f974d6a
...
@@ -84,7 +84,7 @@ class DailyReportGenerator:
...
@@ -84,7 +84,7 @@ class DailyReportGenerator:
sheet
=
wb
.
active
sheet
=
wb
.
active
# Set report date
# Set report date
sheet
[
'
L6
'
]
=
report_date
sheet
[
'
F5
'
]
=
report_date
serial_number
=
1
serial_number
=
1
# Define the shifts and their respective time ranges
# Define the shifts and their respective time ranges
...
@@ -124,7 +124,7 @@ class DailyReportGenerator:
...
@@ -124,7 +124,7 @@ class DailyReportGenerator:
serial_number
+=
1
serial_number
+=
1
# Fill the total count in cell E26
# Fill the total count in cell E26
sheet
[
'F2
6
'
]
=
total_count
sheet
[
'F2
5
'
]
=
total_count
# Fill the packer counts in column L
# Fill the packer counts in column L
for
packer_name
,
count
in
packer_counts
.
items
():
for
packer_name
,
count
in
packer_counts
.
items
():
...
...
templates/daily_report_jk_template.xlsx
View file @
1f974d6a
No preview for this file type
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment