# interpolate if the positions before and after the timestamp have times # longer than this apart. GEOCAM_TRACK_INTERPOLATE_MAX_SECONDS = 8 * 60 * 60 GEOCAM_TRACK_CLOSEST_POSITION_MAX_DIFFERENCE_SECONDS = 120 # All timestamps in geocamTrack data tables should always use the UTC # time zone. GEOCAM_TRACK_OPS_TIME_ZONE is currently used only to # choose how to split up days in the daily track index. We split at # midnight in the specified time zone. Since ops are usually idle at # night and we want to split during the idle period, we usually set this # to the time zone where most ops actually occur. GEOCAM_TRACK_OPS_TIME_ZONE = 'UTC' GEOCAM_TRACK_FEED_NAME = 'GeoCam Track' BOWER_INSTALLED_APPS = getOrCreateArray('BOWER_INSTALLED_APPS') BOWER_INSTALLED_APPS += ['jquery-mobile', 'google-maps-utility-library-v3-infobubble', 'klass=git://github.com/ded/klass.git' ] XGDS_MAP_SERVER_JS_MAP = getOrCreateDict('XGDS_MAP_SERVER_JS_MAP') XGDS_MAP_SERVER_JS_MAP[GEOCAM_TRACK_TRACK_MONIKIER] = {'ol': 'geocamTrack/js/olTrackMap.js', 'model': GEOCAM_TRACK_TRACK_MODEL, 'columns': ['name','resource_name', 'type', 'color', 'alpha', 'pk', 'app_label', 'model_type', 'times', 'coords', 'lat', 'DT_RowId'], 'hiddenColumns': ['type', 'color', 'alpha', 'pk', 'app_label', 'model_type', 'times', 'coords', 'lat', 'DT_RowId'], 'columnTitles': ['Name', 'Resource',''], 'searchableColumns': ['name', 'resource_name'], 'search_form_class': 'geocamTrack.forms.SearchTrackForm'} XGDS_MAP_SERVER_JS_MAP['Position'] = {'ol': 'geocamTrack/js/olPositionMap.js',
# # As a bare minimum, please edit INSTALLED_APPS! # # This file *should* be checked into git. import importlib import os import sys from django.conf import global_settings from django.core.urlresolvers import reverse from geocamUtil.SettingsUtil import getOrCreateDict, getOrCreateArray # Make this unique, and don't share it with anybody. SECRET_KEY = '***REMOVED***' XGDS_BROWSERIFY = getOrCreateArray('XGDS_BROWSERIFY') # from apps.basaltApp.instrumentDataImporters import * # apps should be listed from "most specific" to "most general". that # way, templates in more specific apps override ones from more general # apps. INSTALLED_APPS = [ 'basaltApp', # TODO uncomment the submodules that you are including 'xgds_sample', 'xgds_instrument', 'xgds_notes2', 'xgds_planner2', 'xgds_map_server', 'xgds_data',
XGDS_VIDEO_GET_TIMEZONE_FROM_NAME = 'xgds_video.views.getTimezoneFromFlightName' # set this in siteSettings.py example: DATA_URL RECORDED_VIDEO_DIR_BASE = None RECORDED_VIDEO_URL_BASE = None # Path in data where you will find your video files XGDS_VIDEO_INDEX_FILE_METHOD = 'xgds_video.util.getIndexFileSuffix' # Method for looking up delay from a flight XGDS_VIDEO_DELAY_AMOUNT_METHOD = 'xgds_video.util.getDelaySeconds' # Override this in your siteSettings to include a key for enterprise JWPLAYER """ IMPORTANT YOU MUST INCLUDE THIS IN siteSettings TEMPLATE_CONTEXT_PROCESSORS = (global_settings.TEMPLATE_CONTEXT_PROCESSORS + ( ... 'xgds_video.context_processors.SettingsContextProcessor.SettingsContextProcessor' """ JWPLAYER_KEY = None BOWER_INSTALLED_APPS = getOrCreateArray('BOWER_INSTALLED_APPS') BOWER_INSTALLED_APPS += ['jwplayer=https://account.jwplayer.com/static/download/jwplayer-6.12.zip', 'moment', 'moment-timezone', 'locomote' ]
# extra JavaScript callback to call after the links tab is loaded. XGDS_PLANNER2_LINKS_LOADED_CALLBACK = "null" # This is used to hold a map of site frames, so we can convert lat/long to the closest site frame. # It is initialized by calling views.getSiteFrames(). XGDS_PLANNER2_SITE_FRAMES = [] XGDS_MAP_SERVER_JS_MAP = getOrCreateDict("XGDS_MAP_SERVER_JS_MAP") XGDS_MAP_SERVER_JS_MAP["Plan"] = { "ol": "xgds_planner2/js/olPlanMap.js", "model": XGDS_PLANNER2_PLAN_MODEL, "hiddenColumns": ["stations", "type", "id"], } BOWER_INSTALLED_APPS = getOrCreateArray("BOWER_INSTALLED_APPS") BOWER_INSTALLED_APPS += [ "jquery-migrate=http://code.jquery.com/jquery-migrate-1.2.1.js", "lodash#3.10.0", "backbone#1.1.2", "marionette=marionette#2.4.7", "backbone-relational", "backbone-forms", "handlebars=git://github.com/components/handlebars.js.git", "string-format=git://github.com/tamarmot/string-format.git", "proj4", "usng=git://github.com/codice/usng.js.git", "qunit", "openlayers3=https://github.com/openlayers/ol3/releases/download/v3.16.0/v3.16.0-dist.zip", "ol3-popup", "fancytree=fancytree",