-
Notifications
You must be signed in to change notification settings - Fork 0
/
demo_config.py
36 lines (30 loc) · 1.23 KB
/
demo_config.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#
# Script: demo_config.py
#
# Author V1: David Jacobson (david@jacobsonhome.com)
# https://github.com/djacobson/pysubtask
from pysubtask._config import Struct as Section
# Base config changes from defaults
base = Section("pysubtask TaskMaster-Subtask Base demo configuration")
# Use Heartbeat feature
base.HeartbeatIntervalSecs = 60 # default = 0, not used
base.HeartbeatName = None # default None = hostname
# FTP transfers
ftp = Section("pysubtask TaskMaster-Subtask FTP demo configuration")
ftp.UseFTP = True # Must be True to use SFTP
# David's Dev S/FTP Server
ftp.UseSFTP = True # True = sftp protcol, False = unsecure ftp protcol
ftp.User = "DAVIDJ-PC\David"
ftp.Password = "***************"
ftp.Host = "DavidJ-PC"
ftp.HostFTPPath = 'tagreader'
ftp.HostSFTPPath = 'Desktop/winftp/tagreader'
# 180000 millisecs = 3 mins, Time of no notifies before 'REST'ing
ftp.DeadTimeMilli = 30000
# Dropbox transfers
dropbox = Section("pysubtask TaskMaster-Subtask Dropbox demo configuration")
dropbox.UseDropbox = False
# David's Dropbox Token, see pysubtask.dropbox.py for instructions.
dropbox.AccessToken = "**********************************************"
# 180000 millisecs = 3 mins, Time of no notifies before 'REST'ing
dropbox.DeadTimeMilli = 30000