From a26300f86cd8a8c0f9f685c4b0be79a3dfc67cd0 Mon Sep 17 00:00:00 2001
From: byte <byteturtle@byteturtle.eu>
Date: Tue, 25 Mar 2025 12:50:11 +0000
Subject: [PATCH] update everything, and switch default map to OSM, also added
 default Zoom Level to config

---
 flask_app/config.sample.py | 38 ++++++++++++++++++++++++++++++++++++++
 1 file changed, 38 insertions(+)
 create mode 100644 flask_app/config.sample.py

diff --git a/flask_app/config.sample.py b/flask_app/config.sample.py
new file mode 100644
index 0000000..e8cf940
--- /dev/null
+++ b/flask_app/config.sample.py
@@ -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