Compare commits

...

6 Commits

Author SHA1 Message Date
Ninluc e67a13b4c8 Fix jobs ?
Build, push image, and notify Watchtower / build-image (push) Successful in 36s
Build, push image, and notify Watchtower / notify (push) Successful in 15s
2026-08-23 09:30:31 +02:00
Ninluc 0d394eca1e Only use Segoie UI 2026-08-23 09:27:54 +02:00
Ninluc c76379230b Remove false positives 2026-08-23 09:27:44 +02:00
Ninluc e042162a77 Fix api server host 2026-08-23 09:27:34 +02:00
Ninluc f167f4a2cd Set final product physical properties 2026-08-23 09:27:19 +02:00
Ninluc 7add88f154 Added logo file 2026-08-23 09:24:53 +02:00
7 changed files with 9 additions and 10 deletions
+3 -3
View File
@@ -29,10 +29,10 @@ curl -X POST "https://smartwave.matthiasg.dev/alert" \
## Jobs ## Jobs
### Trigger Server CVE Audit ### Trigger Server CVE Audit
`curl http://localhost:5000/debug/run-job/server_cve_audit_job` `curl http://smartwave.matthiasg.dev/debug/run-job/server_cve_audit_job`
### Trigger Client IP Audit ### Trigger Client IP Audit
`curl http://localhost:5000/debug/run-job/client_ip_audit_job` `curl http://smartwave.matthiasg.dev/debug/run-job/client_ip_audit_job`
### Trigger Telemetry Request ### Trigger Telemetry Request
`curl http://localhost:5000/debug/run-job/request_telemetry_job` `curl http://smartwave.matthiasg.dev/debug/run-job/request_telemetry_job`
+1 -1
View File
@@ -35,7 +35,7 @@ def job_client_ip_audit(shodan_auditor, db):
}} }}
] ]
recent_clients = list(db.device_ip_collection.aggregate(pipeline)) recent_clients = list(db.device_ips.aggregate(pipeline))
for entry in recent_clients: for entry in recent_clients:
client_ip = entry["_id"] client_ip = entry["_id"]
+1 -2
View File
@@ -10,8 +10,7 @@ class MicrowaveDishAnalyzer:
""" """
# Constant scale ratio: Centimeters per Pixel. # Constant scale ratio: Centimeters per Pixel.
# TODO : Replace this value once your camera calibration is complete. CM_PER_PIXEL: float = 0.002592593
CM_PER_PIXEL: float = 0.05 # Example: 1 pixel = 0.05 cm
def __init__(self, cm_per_pixel: Optional[float] = None): def __init__(self, cm_per_pixel: Optional[float] = None):
if cm_per_pixel is not None: if cm_per_pixel is not None:
BIN
View File
Binary file not shown.
+1 -1
View File
@@ -250,7 +250,7 @@ async def rfid_listener_task():
tag_id = await asyncio.to_thread(rfid.read_tag) tag_id = await asyncio.to_thread(rfid.read_tag)
current_time = time.time() current_time = time.time()
if tag_id: if tag_id and tag_id != "0000000000":
# Debounce same tag within 3 seconds to avoid spamming the API # Debounce same tag within 3 seconds to avoid spamming the API
if tag_id == last_scanned_tag and (current_time - last_scan_time) < 3.0: if tag_id == last_scanned_tag and (current_time - last_scan_time) < 3.0:
await asyncio.sleep(0.1) await asyncio.sleep(0.1)
+1 -1
View File
@@ -12,7 +12,7 @@ HTML_TEMPLATE = """
<title>SmartWave Technician Portal</title> <title>SmartWave Technician Portal</title>
<style> <style>
* { box-sizing: border-box; margin: 0; padding: 0; } * { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, monospace; background: #121212; color: #e0e0e0; height: 100vh; overflow: hidden; } body { font-family: "Segoe UI", Roboto, monospace; background: #121212; color: #e0e0e0; height: 100vh; overflow: hidden; }
.container { display: flex; height: 100vh; } .container { display: flex; height: 100vh; }
.logs-section { flex: 1; display: flex; flex-direction: column; border-right: 1px solid #333; padding: 15px; } .logs-section { flex: 1; display: flex; flex-direction: column; border-right: 1px solid #333; padding: 15px; }
+2 -2
View File
@@ -23,8 +23,8 @@ CLOUD_MQTT_QOS = 2
MQTT_HELLO_INTERVAL = 30 MQTT_HELLO_INTERVAL = 30
# Microwave Model # Microwave Model
COOKING_COMPARTMENT_HEIGHT = 30 # cm COOKING_COMPARTMENT_HEIGHT = 20.5 # cm
BUZZER_ACTIVATED = False BUZZER_ACTIVATED = True
MAX_ALLOWED_TEMPERATURE_TECHNICAL_COMPARTMENT = 70 MAX_ALLOWED_TEMPERATURE_TECHNICAL_COMPARTMENT = 70
MAX_ALLOWED_TEMPERATURE_COOKING_COMPARTMENT = 200 MAX_ALLOWED_TEMPERATURE_COOKING_COMPARTMENT = 200