HEIC import, reimplement image change system

This commit is contained in:
2024-01-04 19:13:53 +01:00
parent 22920ad712
commit 66e4023b7a
18 changed files with 188 additions and 457 deletions

View File

@@ -0,0 +1,17 @@
import urllib.request, json
from threading import Thread
class Location(Thread):
def __init__(self):
Thread.__init__(self)
self.GEO_URL = "https://get.geojs.io/v1/ip/geo.json"
def run(self) -> dict:
request = urllib.request.urlopen(self.GEO_URL)
data = json.load(request)
self.result = {
"latitude": data["latitude"],
"longitude": data["longitude"]
}