Commit message

This commit is contained in:
support.sampyo 2024-05-03 05:24:53 +00:00
parent 69dbc3b2e7
commit 237ec66789
3 changed files with 6 additions and 5 deletions

View File

@ -4,7 +4,8 @@
"action": "Off" "action": "Off"
}, },
"measure": { "measure": {
"action": "On" "action": "On",
"duration": 20
}, },
"mixed": { "mixed": {
"action": "Off", "action": "Off",
@ -19,8 +20,7 @@
"duration": 30 "duration": 30
}, },
"motor": { "motor": {
"action": "action": "Off"
"Off"
} }
}, },
"type": "manual" "type": "manual"

View File

@ -7,5 +7,5 @@ spec:
virtualEnv: base # 사용할 가상환경 이름입니다. virtualEnv: base # 사용할 가상환경 이름입니다.
package: requirements.txt # 설치할 Python 패키지 정보 파일입니다.(기본 값은 requirement.txt 입니다.) package: requirements.txt # 설치할 Python 패키지 정보 파일입니다.(기본 값은 requirement.txt 입니다.)
stackbase: stackbase:
tagName: v0.0.13 # Stackbase(gitea)에 릴리즈 태그명 입니다. tagName: v0.0.14 # Stackbase(gitea)에 릴리즈 태그명 입니다.
repoName: sampyo-dio # Stackbase(gitea)에 저장될 저장소 이릅니다. repoName: sampyo-dio # Stackbase(gitea)에 저장될 저장소 이릅니다.

View File

@ -82,6 +82,7 @@ def Command_Read():
mixed_duration = int(cmd['device']['mixed']['duration']) mixed_duration = int(cmd['device']['mixed']['duration'])
pure_duration = int(cmd['device']['pure']['duration']) pure_duration = int(cmd['device']['pure']['duration'])
vent_duration = int(cmd['device']['vent']['duration']) vent_duration = int(cmd['device']['vent']['duration'])
measure_duration = int(cmd['device']['vent']['duration'])
time.sleep(5) time.sleep(5)
start = Measure_Weight(client=client) start = Measure_Weight(client=client)
@ -91,7 +92,7 @@ def Command_Read():
Valve_MixedWater(chip=output_lines, status=status, action='On') Valve_MixedWater(chip=output_lines, status=status, action='On')
time.sleep(mixed_duration) time.sleep(mixed_duration)
Valve_MixedWater(chip=output_lines, status=status, action='Off') Valve_MixedWater(chip=output_lines, status=status, action='Off')
time.sleep(20) time.sleep(measure_duration)
# measure weight # measure weight
end = Measure_Weight(client=client) end = Measure_Weight(client=client)