Commit 5bb50311 authored by Robin Knapp's avatar Robin Knapp

Update dev files

parent 3b0c1855
import os
import platform
SPECS_DIR = "C:/Users/knapp/PycharmProjects/dmv_public/specs/"
BASE_SPECS_URL = "https://gitlab.distantaccess.com/naiades/dmv_public/-/raw/master/specs"
APP_CONFIG = {
'SPECS_TIMEOUT_SEC': 10,
'PLATFORM_TIMEOUT_SEC': 10,
'READ_SPECS_FROM_DISK': False,
'READ_BLUEPRINTS_FROM_DISK': False,
'READ_SPECS_FROM_DISK': True,
'READ_BLUEPRINTS_FROM_DISK': True,
'PLATFORM_ENDPOINT': "127.0.0.1:5005/redirect",
'PLATFORM_HISTORIC_ENDPOINT': "127.0.0.1:5005/redirect",
'PLATFORM_ENDPOINT_HISTORIC': "127.0.0.1:5005/redirect",
'BLUEPRINTS_ABS_PATH': SPECS_DIR,
'SPECS_ABS_PATH': SPECS_DIR,
# URL resources
"ALERT_SPECS_URL": os.environ.get("ALERT_SPECS_URL"),
"V2_ALERT_BLUEPRINT_URL": os.environ.get("V2_ALERT_BLUEPRINT_URL"),
"DEVICE_SPECS_URL": os.environ.get("DEVICE_SPECS_URL"),
"V2_DEVICE_BLUEPRINT_URL": os.environ.get("V2_DEVICE_BLUEPRINT_URL"),
"FLOWERBED_SPECS_URL": "https://gitlab.distantaccess.com/naiades/dmv_public/-/raw/master/specs/Specs_FlowerBed.json",
"V2_FLOWERBED_BLUEPRINT_URL":
"https://gitlab.distantaccess.com/naiades/dmv_public/-/raw/master/specs/V2_Blueprint_FlowerBed.json",
"FOUNTAINUSAGEOBSERVED_SPECS_URL": os.environ.get("FOUNTAINUSAGEOBSERVED_SPECS_URL"),
"V2_FOUNTAINUSAGEOBSERVED_BLUEPRINT_URL": os.environ.get("V2_FOUNTAINUSAGEOBSERVED_BLUEPRINT_URL"),
"NOISE_SPECS_URL": os.environ.get("NOISE_SPECS_URL"),
"V2_NOISE_BLUEPRINT_URL": os.environ.get("V2_NOISE_BLUEPRINT_URL"),
"WATERCONSUMPTIONOBSERVED_SPECS_URL": os.environ.get("WATERCONSUMPTIONOBSERVED_SPECS_URL"),
"V2_WATERCONSUMPTIONOBSERVED_BLUEPRINT_URL": os.environ.get("V2_FLOWERBED_BLUEPRINT_URL"),
"WATERQUALITYFORECAST_SPECS_URL": os.environ.get("WATERQUALITYFORECAST_SPECS_URL"),
"WATERQUALITYFORECAST_BLUEPRINT_URL": os.environ.get("WATERQUALITYFORECAST_BLUEPRINT_URL"),
"WATERQUALITYOBSERVED_SPECS_URL": os.environ.get("WATERQUALITYOBSERVED_SPECS_URL"),
"WATERQUALITYOBSERVED_BLUEPRINT_URL": os.environ.get("WATERQUALITYOBSERVED_BLUEPRINT_URL"),
"WEATHERFORECAST_SPECS_URL": os.environ.get("WEATHERFORECAST_SPECS_URL"),
"WEATHERFORECAST_BLUEPRINT_URL": os.environ.get("WEATHERFORECAST_BLUEPRINT_URL"),
"WEATHEROBSERVED_SPECS_URL": os.environ.get("WEATHEROBSERVED_SPECS_URL"),
"WEATHEROBSERVED_BLUEPRINT_URL": os.environ.get("WEATHEROBSERVED_BLUEPRINT_URL")
}
LOG_CONFIG = {
'LOG_LVL': 'DEBUG',
'LOG_PATH': 'log.txt'
"FLOWERBED_SPECS_URL": f'{BASE_SPECS_URL}/Specs_FlowerBed.json',
"V2_FLOWERBED_BLUEPRINT_URL": f'{BASE_SPECS_URL}/V2_Blueprint_FlowerBed.json',
"WATERQUALITYOBSERVED_SPECS_URL": f'{BASE_SPECS_URL}/Specs_WaterQualityObserved.json',
"V2_WATERQUALITYOBSERVED_BLUEPRINT_URL": f'{BASE_SPECS_URL}/V2_Blueprint_WaterQualityObserved.json',
"WEATHERFORECAST_SPECS_URL": f'{BASE_SPECS_URL}/Specs_WeatherForecast.json',
"V2_WEATHERFORECAST_BLUEPRINT_URL": f'{BASE_SPECS_URL}/V2_Blueprint_WeatherForecast.json',
"DEVICE_SPECS_URL": f'{BASE_SPECS_URL}/Specs_Device.json',
"V2_DEVICE_BLUEPRINT_URL": f'{BASE_SPECS_URL}/V2_Blueprint_Device.json'
}
CACHE_CONFIG = {
......
@echo off
set PROJECT_DIR=C:\Users\knapp\PycharmProjects\dmv_public
docker run -d -p 5000:5000 --name dataval --rm --mount type=bind,source=%PROJECT_DIR%,target=/app dmv:dev
\ No newline at end of file
docker run -d -p 5000:5000 --name dmv --rm --mount type=bind,source=%PROJECT_DIR%,target=/app --entrypoint tail dmv:dev -f /dev/null
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment