updated to include adding simulated bands with mock naming
This commit is contained in:
parent
18fc4cb0bd
commit
ec575e30ef
@ -1,4 +1,4 @@
|
||||
103455
|
||||
103468
|
||||
103478
|
||||
103512
|
||||
106155
|
||||
106168
|
||||
106176
|
||||
106211
|
||||
|
||||
Binary file not shown.
@ -1 +1 @@
|
||||
103455
|
||||
106155
|
||||
|
||||
@ -2,8 +2,10 @@
|
||||
> dashboard@0.0.0 dev
|
||||
> vite
|
||||
|
||||
Port 5173 is in use, trying another one...
|
||||
Port 5174 is in use, trying another one...
|
||||
|
||||
VITE v7.1.10 ready in 100 ms
|
||||
VITE v7.1.10 ready in 103 ms
|
||||
|
||||
➜ Local: http://localhost:5173/
|
||||
➜ Local: http://localhost:5175/
|
||||
➜ Network: use --host to expose
|
||||
|
||||
@ -1 +1 @@
|
||||
103478
|
||||
106176
|
||||
|
||||
@ -3,8 +3,10 @@
|
||||
> vite
|
||||
|
||||
Port 5173 is in use, trying another one...
|
||||
Port 5174 is in use, trying another one...
|
||||
Port 5175 is in use, trying another one...
|
||||
|
||||
VITE v7.1.10 ready in 103 ms
|
||||
|
||||
➜ Local: http://localhost:5174/
|
||||
➜ Local: http://localhost:5176/
|
||||
➜ Network: use --host to expose
|
||||
|
||||
@ -1 +1 @@
|
||||
103512
|
||||
106211
|
||||
|
||||
@ -1,25 +0,0 @@
|
||||
⚠️ Bleak not installed. Real wristbands disabled. Install with: pip install bleak
|
||||
Creating default config at wristband_config.yaml
|
||||
✓ Loaded configuration from wristband_config.yaml
|
||||
|
||||
================================================================================
|
||||
VitalLink System Initialization
|
||||
================================================================================
|
||||
|
||||
✓ Backend is running at http://localhost:8000
|
||||
Traceback (most recent call last):
|
||||
File "/home/mai/documents/school/capstone/vitallink-BS/vitallink/simulator/main_runner.py", line 282, in <module>
|
||||
asyncio.run(system.run())
|
||||
File "/home/mai/.local/share/uv/python/cpython-3.9.20-linux-x86_64-gnu/lib/python3.9/asyncio/runners.py", line 44, in run
|
||||
return loop.run_until_complete(main)
|
||||
File "/home/mai/.local/share/uv/python/cpython-3.9.20-linux-x86_64-gnu/lib/python3.9/asyncio/base_events.py", line 647, in run_until_complete
|
||||
return future.result()
|
||||
File "/home/mai/documents/school/capstone/vitallink-BS/vitallink/simulator/main_runner.py", line 153, in run
|
||||
await self.initialize()
|
||||
File "/home/mai/documents/school/capstone/vitallink-BS/vitallink/simulator/main_runner.py", line 52, in initialize
|
||||
self.manager.add_simulated_band(
|
||||
File "/home/mai/documents/school/capstone/vitallink-BS/vitallink/simulator/wristband_manager.py", line 324, in add_simulated_band
|
||||
band = SimulatedWristband(band_id, profile)
|
||||
File "/home/mai/documents/school/capstone/vitallink-BS/vitallink/simulator/wristband_manager.py", line 243, in __init__
|
||||
from simulator.wristband_simulator import PATIENT_PROFILES, WristbandSimulator
|
||||
ModuleNotFoundError: No module named 'simulator'
|
||||
@ -1 +1 @@
|
||||
103468
|
||||
106168
|
||||
|
||||
Binary file not shown.
Binary file not shown.
@ -321,6 +321,10 @@ class WristbandManager:
|
||||
|
||||
def add_simulated_band(self, band_id: str, profile: str = "stable"):
|
||||
"""Add a simulated wristband to inventory"""
|
||||
# Change naming to use MOCK prefix if not already present
|
||||
if not band_id.startswith("MOCK-"):
|
||||
band_id = f"MOCK-{band_id.replace('VitalLink-', '')}"
|
||||
|
||||
band = SimulatedWristband(band_id, profile)
|
||||
self.inventory[band_id] = band
|
||||
print(f"➕ Added simulated band {band_id} ({profile})")
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user