update
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
'''
|
||||
r'''
|
||||
____ _ ____ _
|
||||
/ ___| / \ | _ \ / \
|
||||
\___ \ / _ \ | |_) | / _ \
|
||||
@@ -19,6 +19,8 @@ import sys
|
||||
import json
|
||||
import re
|
||||
import sqlite3
|
||||
import traceback
|
||||
|
||||
|
||||
#GPIO
|
||||
SARA_power_GPIO = 16
|
||||
@@ -384,12 +386,12 @@ try:
|
||||
latitude = match.group(1)
|
||||
longitude = match.group(2)
|
||||
print(f"📍 Latitude: {latitude}, Longitude: {longitude}")
|
||||
else:
|
||||
print("❌ Failed to extract coordinates.")
|
||||
|
||||
#update sqlite table
|
||||
update_sqlite_config("latitude_raw", float(latitude))
|
||||
update_sqlite_config("longitude_raw", float(longitude))
|
||||
else:
|
||||
print("❌ Failed to extract coordinates.")
|
||||
|
||||
|
||||
time.sleep(1)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user