import logging
from pathlib import Path

PATH_TO_LOGS = "/var/www/html/tesco/"
LOG_LEVEL = logging.DEBUG
LOG_NAME = "debugPython_AvigilonTescoBolton"

#BASE_URL = "https://193.192.203.211:443/mt/api/rest/v1" #Bath Car Park
BASE_URL = "https://93.91.40.6:443/mt/api/rest/v1" #Tesco Bolton
#BASE_URL = "https://109.70.227.5:443/mt/api/rest/v1" #Swalwell Park

USERNAME = "communithings"
PASSWORD = "Password2691##"

USER_NONCE = "001OK00000gG1eI"
USER_KEY = "7201a03150092021c0d93ce2d9853c9938bb92514f21a03b6c3ad9705b478130"   # Avigilon userKey
INTEGRATION_IDENTIFIER = ""      # Optional

CLIENT_NAME = "CommuniThings Test App"
CLIENT_VERSION = "0.1"

VERIFY_TLS = False

# ---- Plate Recognizer Stream Cloud ----
API_TOKEN = "9630c2b615b3b501a4a8f74336259ba8fc1d558c"
STREAM_CLOUD_URL = "https://api.platerecognizer.com/v1/stream/video-upload/"

# Only the filename is needed here
VIDEO_FILENAME = "tile02_1776846315.mp4"
VIDEO_FILENAME = "tesco_test_spot1_fast10.mp4"
VIDEO_FILENAME = "tesco_test_spot2_fast10.mp4"

# ---- Public hosting ----
PUBLIC_VIDEO_BASE_URL = "https://videoplate.communithings.com/video/"
#PUBLIC_VIDEO_BASE_URL ="https://api-storage.platerecognizer.com/assets/"
WEBHOOK_URL = "https://videoplate.communithings.com/index.php"   # for your own reference

# ---- Optional Stream parameters ----
CAMERA_ID =  "EVN-Tesco-Bolton-Video-Upload"
REGIONS = ["be", "fr", "nl"]          # optional; can be repeated
MMC = False                           # set True only if enabled on your license

# ---- Local debug outputs ----
SAVE_SUBMIT_RESPONSE_TO = Path("stream_submit_response.json")

WEBHOOK_BASEFOLDER="/var/www/html/videoplate/videoplate_webhooks/"
