이 웹사이트는 자바스크립트 활성화가 필요합니다.
홈
탐색
도움말
가입하기
로그인
michal
/
craftbeerpi3
의 미러
https://github.com/Manuel83/craftbeerpi3
보기
1
좋아요
0
포크
0
코드
이슈
0
릴리즈
2
위키
활동
소스 검색
Add actor_power to Controller
tags/3.1_alpha
Manuel83
8 년 전
부모
167a0bb8f8
커밋
26da7c66bc
2개의 변경된 파일
과
9개의 추가작업
그리고
0개의 파일을 삭제
분할 보기
Diff Options
Show Stats
Download Patch File
Download Diff File
+3
-0
modules/base_plugins/hysteresis/__init__.py
+6
-0
modules/core/controller.py
+ 3
- 0
modules/base_plugins/hysteresis/__init__.py
파일 보기
@@ -29,6 +29,9 @@ class Hysteresis(KettleController):
:return:
'''
while self.is_running():
self.actor_power(50)
if self.get_temp() < self.get_target_temp() - int(self.on):
self.heater_on(100)
elif self.get_temp() >= self.get_target_temp() - int(self.off):
+ 6
- 0
modules/core/controller.py
파일 보기
@@ -17,6 +17,12 @@ class ActorController(object):
self.api.switch_actor_off(int(id))
@cbpi.try_catch(None)
def actor_power(self, power, id=None):
if id is None:
id = self.heater
self.api.actor_power(int(id), power)
class SensorController(object):
쓰기
미리보기
불러오는 중...
취소
저장