當前位置: 首頁>>代碼示例>>Python>>正文


Python Parameter.get_cooling_start_temperature方法代碼示例

本文整理匯總了Python中parameter.Parameter.get_cooling_start_temperature方法的典型用法代碼示例。如果您正苦於以下問題:Python Parameter.get_cooling_start_temperature方法的具體用法?Python Parameter.get_cooling_start_temperature怎麽用?Python Parameter.get_cooling_start_temperature使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在parameter.Parameter的用法示例。


在下文中一共展示了Parameter.get_cooling_start_temperature方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。

示例1: save_db_parameter

# 需要導入模塊: from parameter import Parameter [as 別名]
# 或者: from parameter.Parameter import get_cooling_start_temperature [as 別名]
def save_db_parameter(Parameter):
    with app.app_context():
        db = get_db()
        db.execute('INSERT INTO parameter(update_time,time1,temperature1,time2,temperature2,time3,temperature3,time4,temperature4, co2_upper_limit,co2_lower_limit, cooling_start_temperature,cooling_stop_temperature,\
                    expect_humidity,humidity_influence_range_of_air_temperature,low_humidity_influence_on_air_temperature,high_humidity_influence_on_air_temperature,expect_light,light_influence_on_air_temperature_slope,high_light_influence_on_temperature,low_light_influence_on_temperature,frost_temperature,\
                    indoor_temperature_lower_limit,roof_vent_wind_speed_upper_limit,roof_vent_rain_upper_limit, heating_start_lowest_temperature,heating_stop_highest_temperature, month_to_open_thermal_screen,month_to_close_thermal_screen,time_to_open_thermal_screen,time_to_close_thermal_screen, temperature_to_open_side,\
                    wait_time_to_open_side,rain_upper_limit_to_close, upper_limit_light_to_open_shade_screen_out,upper_limit_light_to_open_shade_screen_in,soil_humidity_to_start_irrigation,soil_humidity_to_stop_irrigation,temperature_to_open_fogging,temperature_to_open_cooling_pad,\
                    month_to_open_lighting,month_to_close_lighting,period1_start_lighting,period1_stop_lighting,period2_start_lighting,period2_stop_lighting,radiation1_to_open_lighting,radiation2_to_open_lighting,roof_vent_open_time,side_vent_open_time,shade_screen_out_open_time,\
                    shade_screen_in_open_time,thermal_screen_open_time ) VALUES(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)', \
                   [Parameter.get_update_time(), Parameter.get_time_1(), Parameter.get_temperature_1(),
                    Parameter.get_time_2(), Parameter.get_temperature_2(), Parameter.get_time_3(),
                    Parameter.get_temperature_3(), Parameter.get_time_4(), Parameter.get_temperature_4(),
                    Parameter.get_co_2_upper_limit(), Parameter.get_co_2_lower_limit(),
                    Parameter.get_cooling_start_temperature(), Parameter.get_cooling_stop_temperature(),
                    Parameter.get_expect_humidity(), Parameter.get_humidity_influence_range_of_air_temperature(),
                    Parameter.get_low_humidity_influence_on_air_temperature(),
                    Parameter.get_high_humidity_influence_on_air_temperature(), Parameter.get_expect_light(),
                    Parameter.get_light_influence_on_air_temperature_slope(),
                    Parameter.get_high_light_influence_on_temperature(),
                    Parameter.get_low_light_influence_on_temperature(), Parameter.get_frost_temperature(),
                    Parameter.get_indoor_temperature_lower_limit(), Parameter.get_roof_vent_wind_speed_upper_limit(),
                    Parameter.get_roof_vent_rain_upper_limit(),
                    Parameter.get_heating_start_lowest_temperature(), Parameter.get_heating_stop_highest_temperature(),
                    Parameter.get_month_to_open_thermal_screen(), Parameter.get_month_to_close_thermal_screen(),
                    Parameter.get_time_to_open_thermal_screen(), Parameter.get_time_to_close_thermal_screen(),
                    Parameter.get_temperature_to_open_side(),
                    Parameter.get_wait_time_to_open_side(),
                    Parameter.get_rain_upper_limit_to_close(),
                    Parameter.get_upper_limit_light_to_open_out_shade_screen(),
                    Parameter.get_upper_limit_light_to_open_in_shade_screen(),
                    Parameter.get_soil_humidity_to_start_irrigation(),
                    Parameter.get_soil_humidity_to_stop_irrigation(),
                    Parameter.get_temperature_to_open_fogging(),
                    Parameter.get_temperature_to_open_cooling_pad(),
                    Parameter.get_month_to_open_lighting(),
                    Parameter.get_month_to_close_lighting(),
                    Parameter.get_period_1_start_lighting(),
                    Parameter.get_period_1_stop_lighting(),
                    Parameter.get_period_2_start_lighting(),
                    Parameter.get_period_2_stop_lighting(),
                    Parameter.get_radiation_1_to_open_lighting(),
                    Parameter.get_radiation_2_to_open_lighting(),
                    Parameter.get_roof_vent_open_time(),
                    Parameter.get_side_vent_open_time(),
                    Parameter.get_shade_screen_out_open_time(),
                    Parameter.get_shade_screen_in_open_time(),
                    Parameter.get_thermal_screen_open_time()])
        db.commit()
        db.cursor().close()
        db.close()
    print 'parameter save success'
開發者ID:tj621,項目名稱:py_back,代碼行數:53,代碼來源:database.py

示例2:

# 需要導入模塊: from parameter import Parameter [as 別名]
# 或者: from parameter.Parameter import get_cooling_start_temperature [as 別名]
                    "period2_stop_lighting":"",
                    "radiation1_to_open_lighting":"",
                    "radiation2_to_open_lighting":""
                        },
             "time_that_full_open_to_full_close":{
                        "roof_vent_open_time":"10",
                        "side_vent_open_time":"",
                        "shade_screen_out_open_time":"",
                        "shade_screen_in_open_time":"",
                        "thermal_screen_open_time":""
                             }
           }    '''

# obj=json.loads(data)
# print obj['plant_parameter_setting']
# p=get_json_value(obj['plant_parameter_setting'], p)
p=p.handle_post_parameter(data)
# print obj['plant_parameter_setting']['time1']
print p.get_time_1()
print p.get_co_2_upper_limit()
print p.get_cooling_start_temperature()
print p.get_humidity_influence_range_of_air_temperature()
print p.get_heating_start_lowest_temperature()
print p.get_month_to_open_thermal_screen()
print p.get_temperature_to_open_side()
print p.get_upper_limit_light_to_open_shade_screen_out()
print p.get_month_to_open_lighting()
print p.get_roof_vent_open_time()


開發者ID:tj621,項目名稱:shen.tao,代碼行數:30,代碼來源:test_handle_parameter.py


注:本文中的parameter.Parameter.get_cooling_start_temperature方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。