Compare commits
6 Commits
bb5327fb93
...
e67a13b4c8
| Author | SHA1 | Date | |
|---|---|---|---|
| e67a13b4c8 | |||
| 0d394eca1e | |||
| c76379230b | |||
| e042162a77 | |||
| f167f4a2cd | |||
| 7add88f154 |
+3
-3
@@ -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
@@ -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"]
|
||||||
|
|||||||
@@ -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:
|
||||||
|
|||||||
@@ -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)
|
||||||
|
|||||||
@@ -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
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user