From 237ec66789ac4f83df4111e3b6195477c55326bc Mon Sep 17 00:00:00 2001 From: "support.sampyo" Date: Fri, 3 May 2024 05:24:53 +0000 Subject: [PATCH] Commit message --- control.json | 6 +++--- framework.yaml | 2 +- main.py | 3 ++- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/control.json b/control.json index f662e56..c388abc 100644 --- a/control.json +++ b/control.json @@ -4,7 +4,8 @@ "action": "Off" }, "measure": { - "action": "On" + "action": "On", + "duration": 20 }, "mixed": { "action": "Off", @@ -19,8 +20,7 @@ "duration": 30 }, "motor": { - "action": - "Off" + "action": "Off" } }, "type": "manual" diff --git a/framework.yaml b/framework.yaml index 2ba6a59..b14d646 100644 --- a/framework.yaml +++ b/framework.yaml @@ -7,5 +7,5 @@ spec: virtualEnv: base # 사용할 가상환경 이름입니다. package: requirements.txt # 설치할 Python 패키지 정보 파일입니다.(기본 값은 requirement.txt 입니다.) stackbase: - tagName: v0.0.13 # Stackbase(gitea)에 릴리즈 태그명 입니다. + tagName: v0.0.14 # Stackbase(gitea)에 릴리즈 태그명 입니다. repoName: sampyo-dio # Stackbase(gitea)에 저장될 저장소 이릅니다. diff --git a/main.py b/main.py index 9b9c65b..da5aac7 100644 --- a/main.py +++ b/main.py @@ -82,6 +82,7 @@ def Command_Read(): mixed_duration = int(cmd['device']['mixed']['duration']) pure_duration = int(cmd['device']['pure']['duration']) vent_duration = int(cmd['device']['vent']['duration']) + measure_duration = int(cmd['device']['vent']['duration']) time.sleep(5) start = Measure_Weight(client=client) @@ -91,7 +92,7 @@ def Command_Read(): Valve_MixedWater(chip=output_lines, status=status, action='On') time.sleep(mixed_duration) Valve_MixedWater(chip=output_lines, status=status, action='Off') - time.sleep(20) + time.sleep(measure_duration) # measure weight end = Measure_Weight(client=client)