update everything, and switch default map to OSM, also added default Zoom Level to config
This commit is contained in:
parent
65094a3b23
commit
a26300f86c
1 changed files with 38 additions and 0 deletions
38
flask_app/config.sample.py
Normal file
38
flask_app/config.sample.py
Normal file
|
@ -0,0 +1,38 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
# Where to store SQLite database
|
||||
path_db = '/var/ttn_tracker/ttn_tracker_database.db'
|
||||
|
||||
# Period to download new data and display on the map (recommended not to go lower than 10 seconds)
|
||||
refresh_period_seconds = 15
|
||||
|
||||
# Where the map initially loads
|
||||
start_lat = 50.1026
|
||||
start_lon = 8.7492
|
||||
start_zoom = 10
|
||||
|
||||
# TTN Cluster
|
||||
cluster = "eu1"
|
||||
|
||||
# TTN Application
|
||||
application = "ttn_application"
|
||||
app_key = "ttn-account-TTN_APP_KEY"
|
||||
|
||||
# Application devices
|
||||
devices = [
|
||||
"device_01",
|
||||
"device_02"
|
||||
]
|
||||
|
||||
# Where to place gateway markers
|
||||
gateway_locations = [
|
||||
('Gateway 01', 35.978781, -77.855346),
|
||||
('Gateway 02', 35.978781, -77.655346)
|
||||
]
|
||||
|
||||
bing_api_key = ''
|
||||
|
||||
|
||||
def config_app(app):
|
||||
app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///{db}'.format(db=path_db)
|
||||
app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = False
|
||||
return app
|
Loading…
Add table
Reference in a new issue