From e886107ec078211148adeeb4ba0148769e4c408b Mon Sep 17 00:00:00 2001 From: Paulo Silva Date: Sat, 13 Apr 2024 10:39:24 +1000 Subject: [PATCH] fixing conflicts --- data/blacklist.txt | 0 data/config.ini | 78 ++++++++++++++++++++++++++++++++++++++++++++ data/destination.csv | 0 data/source.csv | 0 data/source.txt | 0 data/whitelist.txt | 0 6 files changed, 78 insertions(+) create mode 100644 data/blacklist.txt create mode 100644 data/config.ini create mode 100644 data/destination.csv create mode 100644 data/source.csv create mode 100644 data/source.txt create mode 100644 data/whitelist.txt diff --git a/data/blacklist.txt b/data/blacklist.txt new file mode 100644 index 0000000..e69de29 diff --git a/data/config.ini b/data/config.ini new file mode 100644 index 0000000..dd720c5 --- /dev/null +++ b/data/config.ini @@ -0,0 +1,78 @@ +# Production environment +[folder] +# Point SourceFolder to your pool of pictures +SourceFolder = /source +# only change destination if you are NOT using the website +DestinationFolder = engine/static/destination/ +LogPath = logs/production + +[data] +dbSource = data/source.csv +dbDestination = data/destination.csv +MongoURL = +dbUser = +dbPass = +dbName = + +[ext] +FileType1 = jpg +FileType2 = jpeg +FileType3 = png +FileType4 = JPG +FileType5 = JPEG +FileType6 = PNG + +[parameter] +port = 23276 +# Size of your sample of pictures from the source folder +NumberOfPics = 100 +# not implemented +MaxNumberOfPics = 1000 +# How much the folder can grow size in Megabytes +FoldersizeUpperLimit = 1000 +NewerPhotos = datetime.now() - relativedelta(years=3) +# Waiting time between auto copy job (in seconds) +JobInterval = 86400 +# Log Level usage: (Default = 3) +# 1 = debug - Detailed information, typically of interest only +# when diagnosing problems. +# 2 = info - Confirmation that things are working as expected. +# 3 = warning - An indication that something unexpected happened, +# or indicative of some problem in the near future +# (e.g. ‘disk space low’). +# The software is still working as expected. +# 4 = error - Due to a more serious problem, the software has not +# been able to perform some function. +# 5 = critical - A serious error, indicating that the program itself +# may be unable to continue running. +logLevel = 3 +# How the data is manipulated? (txt, csv, mongo) +DataMode = txt + +[notification] +# Run this command after the auto copy job is completed +# The command can do whatever you want. I use it to send +# notifications to https://healthchecks.io/ +# e.g: "curl -fsS --retry 3 https://hc-ping.com/your-uuid-here" +command = + +# ONLY RANDOM IS IMPLEMENTED +[sort] +# 1 = Random, +# 2 = Shuffle recently, +# 3 = Shuffle oldest, +# 4 = Descendent by Date taken, +# 5 = By Location (Need to read it from pic or Google) +Criteria = 1 + +# settings for application testing/DEMO and CI/CD on Github +[test] +# test_mode True for DEMO or False for production environment +test_mode = True +SourceFolder = engine/static/demo/source/ +DestinationFolder = engine/static/demo/destination/ +LogPath = logs/demo +NumberOfPics = 3 +FoldersizeUpperLimit = 10 +JobInterval = 10 +command = ping google.com \ No newline at end of file diff --git a/data/destination.csv b/data/destination.csv new file mode 100644 index 0000000..e69de29 diff --git a/data/source.csv b/data/source.csv new file mode 100644 index 0000000..e69de29 diff --git a/data/source.txt b/data/source.txt new file mode 100644 index 0000000..e69de29 diff --git a/data/whitelist.txt b/data/whitelist.txt new file mode 100644 index 0000000..e69de29