本文整理匯總了Python中control.Control.get_co2方法的典型用法代碼示例。如果您正苦於以下問題:Python Control.get_co2方法的具體用法?Python Control.get_co2怎麽用?Python Control.get_co2使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類control.Control
的用法示例。
在下文中一共展示了Control.get_co2方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: get_current_control_state
# 需要導入模塊: from control import Control [as 別名]
# 或者: from control.Control import get_co2 [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_co2 [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_co2 [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)