本文整理汇总了Python中control.Control.get_side_vent方法的典型用法代码示例。如果您正苦于以下问题:Python Control.get_side_vent方法的具体用法?Python Control.get_side_vent怎么用?Python Control.get_side_vent使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类control.Control
的用法示例。
在下文中一共展示了Control.get_side_vent方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: get_current_control_state
# 需要导入模块: from control import Control [as 别名]
# 或者: from control.Control import get_side_vent [as 别名]
def get_current_control_state(Indoor, Control, Parameter):
global auto_roof_vent_south, auto_roof_vent_north, auto_side_vent, auto_shade_screen_out, auto_shade_screen_in, auto_thermal_screen, auto_cooling_pad, auto_fogging, auto_heating, auto_co2
global auto_lighting_1, auto_lighting_2, auto_irrigation, shade_screen_out_time, roof_open_time, side_open_time, thermal_time, shade_screen_in_time
global auto_indoor_temperature
auto_cooling_pad = Control.get_cooling_fan()
auto_roof_vent_south = Control.get_roof_vent_south()
auto_roof_vent_north = Control.get_roof_vent_north()
auto_side_vent = Control.get_side_vent()
auto_shade_screen_out = Control.get_shade_screen_north()
auto_shade_screen_in = Control.get_shade_screen_south()
auto_thermal_screen = Control.get_thermal_screen()
auto_fogging = Control.get_fogging()
auto_heating = Control.get_heating()
auto_co2 = Control.get_co2()
auto_lighting_1 = Control.get_lighting_1()
auto_lighting_2 = Control.get_lighting_2()
auto_irrigation = Control.get_irrigation()
shade_screen_out_time = int(Parameter.get_shade_screen_out_open_time())
roof_open_time = int(Parameter.get_roof_vent_open_time())
side_open_time = int(Parameter.get_side_vent_open_time())
thermal_time = int(Parameter.get_thermal_screen_open_time())
shade_screen_in_time = int(Parameter.get_shade_screen_in_open_time())
auto_indoor_temperature = Indoor.get_temperature()
示例2: save_db_control
# 需要导入模块: from control import Control [as 别名]
# 或者: from control.Control import get_side_vent [as 别名]
def save_db_control(Control):
with app.app_context():
db = get_db()
db.execute('INSERT INTO control_state(update_time,roof_vent_south,roof_vent_north,side_vent,shade_screen_north,shade_screen_south,thermal_screen,\
cooling_pump,cooling_fan,fan,fogging,heating,co2,lighting_1,lighting_2,irrigation) VALUES(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)',
[Control.get_update_time(), Control.get_roof_vent_south(), Control.get_roof_vent_north(),
Control.get_side_vent(), Control.get_shade_screen_north(), Control.get_shade_screen_south(), \
Control.get_thermal_screen(), Control.get_cooling_pump(), Control.get_cooling_fan(),
Control.get_fan(), Control.get_fogging(),
Control.get_heating(), Control.get_co2(), Control.get_lighting_1(), Control.get_lighting_2(),
Control.get_irrigation()])
db.commit()
db.cursor().close()
db.close()
print 'control save success'
示例3: Control
# 需要导入模块: from control import Control [as 别名]
# 或者: from control.Control import get_side_vent [as 别名]
from control import Control
c = Control()
print "roof vent south", c.get_roof_vent_south()
print "roof vent north", c.get_roof_vent_north()
print "side vent", c.get_side_vent()
print "shade screen out", c.get_shade_screen_out()
print "shade screen in", c.get_shade_screen_in()
print "thermal screen", c.get_thermal_screen()
print "cooling pad", c.get_cooling_pad()
print "fogging", c.get_fogging()
print "heating", c.get_heating()
print "co2", c.get_co2()
print "lighting 1", c.get_lighting_1()
print "lighting 2", c.get_lighting_2()
print "irrigation", c.get_irrigation()
print dir(c)