Updated SMHI API and improved the polygon contains logic

This commit is contained in:
2026-04-18 12:37:37 +02:00 Verified
parent 49e52d9613
commit 131b74daf9
5 changed files with 65 additions and 70 deletions
+2 -2
View File
@@ -7,12 +7,12 @@ from tools.geometry import Coordinate
load_dotenv()
# --- Network & Credentials ---
SENSOR_IP = os.getenv("SENSOR_IP", "192.168.0.188")
SENSOR_IP = os.getenv("SENSOR_IP", "10.11.4.78")
SENSOR_HTTP = f"http://{SENSOR_IP}"
MQTT_USERNAME = os.getenv("MQTT_USERNAME", "weather_station")
MQTT_PASSWORD = os.getenv("MQTT_PASSWORD", "SensorData12345!")
MQTT_FALLBACK_IP = os.getenv("MQTT_FALLBACK_IP", "192.168.0.168")
MQTT_FALLBACK_IP = os.getenv("MQTT_FALLBACK_IP", "10.11.0.33")
# --- Location ---
LAT = float(os.getenv("LATITUDE", "56.2006"))