Add rb option to deploy script and update sensors endpoint path
This commit is contained in:
@@ -275,6 +275,11 @@ case "${1:-help}" in
|
|||||||
stop)
|
stop)
|
||||||
stop_services
|
stop_services
|
||||||
;;
|
;;
|
||||||
|
rb)
|
||||||
|
check_dependencies
|
||||||
|
build_services
|
||||||
|
restart_services
|
||||||
|
;;
|
||||||
restart)
|
restart)
|
||||||
restart_services
|
restart_services
|
||||||
;;
|
;;
|
||||||
|
|||||||
@@ -120,7 +120,7 @@ async def websocket_endpoint(websocket: WebSocket):
|
|||||||
# Original Dashboard API Endpoints
|
# Original Dashboard API Endpoints
|
||||||
|
|
||||||
# Sensor Management
|
# Sensor Management
|
||||||
@app.get("/sensors")
|
@app.get("/sensors/get")
|
||||||
async def get_sensors(
|
async def get_sensors(
|
||||||
room: Optional[str] = Query(None, description="Filter by room"),
|
room: Optional[str] = Query(None, description="Filter by room"),
|
||||||
sensor_type: Optional[SensorType] = Query(None, description="Filter by sensor type"),
|
sensor_type: Optional[SensorType] = Query(None, description="Filter by sensor type"),
|
||||||
|
|||||||
Reference in New Issue
Block a user