当前位置: 首页>>代码示例>>Python>>正文


Python Control.get_co2方法代码示例

本文整理汇总了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()
开发者ID:tj621,项目名称:py_back,代码行数:27,代码来源:autorun.py

示例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'
开发者ID:tj621,项目名称:py_back,代码行数:17,代码来源:database.py

示例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)
开发者ID:tj621,项目名称:py_back,代码行数:20,代码来源:debug.py


注:本文中的control.Control.get_co2方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。