The app only calls the methods of aimsight-data: extraction/pumping.py, weather/meteoswiss.py (weather/ moved there)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
b2923d8d49
commit
d34828ab5e
7 files changed
+36
-279
No files matched your search
@@ -79,7 +79,7 @@ def detectors(station_: str = Query(alias="station"), start: str = "", end: str
|
||||
|
||||
@app.get("/api/tracked")
|
||||
def tracked():
|
||||
return [{"serial": s, "position": p} for s, p in station.tracked().items()]
|
||||
return [{"serial": s, "position": p} for s, p in station.pumping.tracked().items()]
|
||||
|
||||
|
||||
@app.put("/api/tracked")
|
||||
@@ -88,8 +88,8 @@ def save_tracked(body: dict):
|
||||
|
||||
|
||||
@app.get("/api/pump")
|
||||
def pumping():
|
||||
return station.pumping()
|
||||
def pump_state():
|
||||
return station.pump_state()
|
||||
|
||||
|
||||
@app.post("/api/pump")
|
||||
|
||||
Reference in new issue
Block a user