47 lines
1.3 KiB
Python
47 lines
1.3 KiB
Python
import pytz
|
|
from datetime import datetime, timedelta, time
|
|
|
|
class ConfigDatabase:
|
|
db_host= 'sql.glmanalytics.com'
|
|
db_user = 'vmglm001'
|
|
db_password = "A16n)J@^fj<]G('{"
|
|
|
|
class ConfigFTP:
|
|
ftp_server = '000oqta.rcomhost.com'
|
|
ftp_user = "ftp3592287"
|
|
ftp_password = 'mpFFMRW4W9w@SuK'
|
|
ftp_port = 21
|
|
ftp_path = "/www/TranferData_APP_PYTHON/"
|
|
|
|
|
|
class ConfigAPI:
|
|
pass
|
|
|
|
class GeneralConfig:
|
|
|
|
#DataControl
|
|
numDays = 3
|
|
zoneTime = pytz.timezone("America/El_Salvador")
|
|
zoneTimeCP = pytz.timezone("America/Santo_Domingo")
|
|
cutTime = time(17, 30, 00)
|
|
current_time = datetime.now(zoneTime)
|
|
current_hour = current_time.hour
|
|
nowTime = current_time.strftime("%Y-%m-%d")
|
|
nowTimeFormat = current_time.strftime("%Y%m%d")
|
|
execution_time = datetime.now(zoneTime)
|
|
|
|
|
|
#time = datetime.now(zoneTime)
|
|
|
|
#Para emails
|
|
fromEmail = 'notifications.noreply@gomezleemarketing.com'
|
|
smtp_server="smtp.gmail.com"
|
|
smtp_port=587
|
|
passwordEmail = 'GLM123456new1'
|
|
|
|
|
|
|
|
class ConfigNotifications:
|
|
webhookURL_wps_notifcation = "https://automation.glmanalytics.com/webhook/wsp-notifcation"
|
|
|
|
webhookURL = "https://automation.glmanalytics.com/webhook/205ae0d5-fc9c-44da-951c-84c033236579" # Ajusta con tu URL real |