# Edit this file to introduce tasks to be run by cron.
# 
# Each task to run has to be defined through a single line
# indicating with different fields when the task will be run
# and what command to run for the task
# 
# To define the time you can provide concrete values for
# minute (m), hour (h), day of month (dom), month (mon),
# and day of week (dow) or use '*' in these fields (for 'any').# 
# Notice that tasks will be started based on the cron's system
# daemon's notion of time and timezones.
# 
# Output of the crontab jobs (including errors) is sent through
# email to the user the crontab file belongs to (unless redirected).
# 
# For example, you can run a backup of all your user accounts
# at 5 a.m every week with:
# 0 5 * * 1 tar -zcf /var/backups/home.tgz /home/
# 
# For more information see the manual pages of crontab(5) and cron(8)
# 
# m h  dom mon dow   command

PORT=30999
PAUSE=30
INTERVAL=10
END=24
#TOKEN=ad008dc7a28db4d91ca57b4c305a3b85
#USER=1042
TOKEN=035006c8a8acff541e6b264f3a90e0b8
USER=1110
HOST_FOTONOWER=marlene.fotonower.com
BASENAME=jetson_new_image
BASEFOLDER=/home/nano/Desktop/images
LOGFOLDER=/home/nano/.log
SHUTTER=330
DATOU_CLASS=0
DATOU_CLASS_2=0
FACTOR=0.1
THRESHOLD=89
QUALITY=85
WIDTH=3840
HEIGHT=2160
GITRAPINOWER=/home/nano/workarea/git/raspi-fotonower-x
PYTHONPATH=/usr/bin/python3:/home/nano/workarea/git/Velours/python:/home/nano/mtr/.credentials:/home/nano/workarea/git/raspi-fotonower-x
CAFFE_MODELS=/home/nano/Models/
VAR_AUTRE1=10
VAR_AUTRE2=20
VAR_AUTRE3=30
COLUMNS=1000
DATOU_LOCAL_ANONYM=2778
CLASSIF_BATCH_SIZE=4
CLASSIF_LIMIT_NB_PHOTOS=12
SEUIL_DEDUP=0.0001
PERIOD_FORCE_UPLOAD=100
GITVELOURS=/home/nano/workarea/git/Velours
CAFFE_FRCNN=/home/nano/caffe/caffe/python/
TRAIN_DATA_ROOT=/home/nano/workarea/training_data/
LOCAL_PHOTO_CACHE=/home/nano/workarea/photo_data/
PYTHONPATHFOTONOWER=/home/nano
CACHE_FEATURES=/home/nano/workarea/photo_features/
LD_PRELOAD=/usr/lib/aarch64-linux-gnu/libatomic.so.1
LOGTODAY=/home/nano/.log/`date '+%Y/%m/%d'`
ZOOM=0.05,0.0,0.9,1.0
STATUS_TO_UPLOAD=2
FILE_LOCAL_DB=/home/nano/.fotonower_config/sqlite.db
FOLDER_LOCAL_DB=/home/nano/.fotonower_config/


#MR autossh to raspi sasftn 27-10-2020 validated
 * * * * * mkdir -p $LOGFOLDER/`date '+\%Y/\%m/\%d'`/autossh; autossh -M9042 -f -N -R $PORT:localhost:22 raspi@3w.fotonower-preprod.com >> $LOGFOLDER/`date '+\%Y/\%m/\%d'`/autossh/sasftn_ssh_log.txt 2>&1

#MR autossh to raspi charlot 27-10-2020 validated
 * * * * * mkdir -p $LOGFOLDER/`date '+\%Y/\%m/\%d'`/autossh; autossh -M9043 -f -N -R $PORT:localhost:22 raspi@charlot.fotonower-preprod.com >> $LOGFOLDER/`date '+\%Y/\%m/\%d'`/autossh/charlot_ssh_log.txt 2>&1

#MR autossh to raspi marlene 27-10-2020 validated
 * * * * * mkdir -p $LOGFOLDER/`date '+\%Y/\%m/\%d'`/autossh; autossh -M9044 -f -N -R $PORT:localhost:22 raspi@marlene.fotonower-preprod.com >> $LOGFOLDER/`date '+\%Y/\%m/\%d'`/autossh/marlene_ssh_log.txt 2>&1

#MR autossh to raspi raspberry 27-10-2020 In progress
 * * * * * mkdir -p $LOGFOLDER/`date '+\%Y/\%m/\%d'`/autossh; autossh -M9045 -f -N -R $PORT:localhost:20042 pi@raspi.fotonower-preprod.com >> $LOGFOLDER/`date '+\%Y/\%m/\%d'`/autossh/raspidev_ssh_log.txt 2>&1


#MR Monitor raspi
*/1 * * * * mkdir -p $LOGFOLDER/`date '+\%Y/\%m/\%d'`/monitor;python3 $GITRAPINOWER/python/daily_activity_report.py -p $PORT -P $PAUSE -u $USER -b $BASENAME -f $BASEFOLDER -g $GITRAPINOWER -t $TOKEN -H $HOST_FOTONOWER  >> $LOGFOLDER/`date '+\%Y/\%m/\%d'`/monitor/monitor.txt 2>&1
