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