初始化config文件
This commit is contained in:
@@ -0,0 +1,246 @@
|
||||
{
|
||||
"entity": {
|
||||
"sensor": {
|
||||
"heweather_temperature": {
|
||||
"name": "outside temperature"
|
||||
},
|
||||
"heweather_humidity": {
|
||||
"name": "outside humidity"
|
||||
},
|
||||
"heweather_feelslike": {
|
||||
"name": "feelslike temperature"
|
||||
},
|
||||
"heweather_text": {
|
||||
"name": "weather text"
|
||||
},
|
||||
"heweather_precip": {
|
||||
"name": "precip"
|
||||
},
|
||||
"heweather_winddir": {
|
||||
"name": "winddir"
|
||||
},
|
||||
"heweather_windscale": {
|
||||
"name": "windscale"
|
||||
},
|
||||
"heweather_windspeed": {
|
||||
"name": "windspeed"
|
||||
},
|
||||
"heweather_dew": {
|
||||
"name": "dew temperature"
|
||||
},
|
||||
"heweather_pressure": {
|
||||
"name": "pressure"
|
||||
},
|
||||
"heweather_vis": {
|
||||
"name": "vis"
|
||||
},
|
||||
"heweather_cloud": {
|
||||
"name": "cloud"
|
||||
},
|
||||
|
||||
"heweather_primary": {
|
||||
"name": "primary"
|
||||
},
|
||||
"heweather_category": {
|
||||
"name": "category"
|
||||
},
|
||||
"heweather_level": {
|
||||
"name": "category level"
|
||||
},
|
||||
"heweather_pm25": {
|
||||
"name": "PM2.5"
|
||||
},
|
||||
"heweather_pm10": {
|
||||
"name": "PM10"
|
||||
},
|
||||
"heweather_no2": {
|
||||
"name": "no2"
|
||||
},
|
||||
"heweather_so2": {
|
||||
"name": "so2"
|
||||
},
|
||||
"heweather_co": {
|
||||
"name": "co"
|
||||
},
|
||||
"heweather_o3": {
|
||||
"name": "o3"
|
||||
},
|
||||
"heweather_no": {
|
||||
"name": "no"
|
||||
},
|
||||
"heweather_nmhc": {
|
||||
"name": "nmhc"
|
||||
},
|
||||
"heweather_qlty": {
|
||||
"name": "qlty"
|
||||
},
|
||||
|
||||
"heweather_disaster_warn": {
|
||||
"name": "disaster_warn"
|
||||
},
|
||||
|
||||
"suggestion_air": {
|
||||
"name": "Air Pollution Dispersion Index"
|
||||
},
|
||||
"suggestion_comf": {
|
||||
"name": "Comfort Index"
|
||||
},
|
||||
"suggestion_cw": {
|
||||
"name": "Car Washing Index"
|
||||
},
|
||||
"suggestion_drsg": {
|
||||
"name": "Dressing Index"
|
||||
},
|
||||
"suggestion_flu": {
|
||||
"name": "Cold/Flu Index"
|
||||
},
|
||||
"suggestion_sport": {
|
||||
"name": "Outdoor Sports Index"
|
||||
},
|
||||
"suggestion_trav": {
|
||||
"name": "Travel Index"
|
||||
},
|
||||
"suggestion_uv": {
|
||||
"name": "UV Index"
|
||||
},
|
||||
"suggestion_guomin": {
|
||||
"name": "Allergy Index"
|
||||
},
|
||||
"suggestion_kongtiao": {
|
||||
"name": "Air Conditioning Usage Index"
|
||||
},
|
||||
"suggestion_sunglass": {
|
||||
"name": "Sunglasses Index"
|
||||
},
|
||||
"suggestion_fangshai": {
|
||||
"name": "Sun Protection Index"
|
||||
},
|
||||
"suggestion_liangshai": {
|
||||
"name": "Clothes Drying Index"
|
||||
},
|
||||
"suggestion_jiaotong": {
|
||||
"name": "Traffic Condition Index"
|
||||
}
|
||||
}
|
||||
},
|
||||
"config": {
|
||||
"abort": {
|
||||
"single_instance_allowed": "single instance allowed。"
|
||||
},
|
||||
"error": {
|
||||
"empty_location": "empty location",
|
||||
"invalid_longitude": "invalid_longitude",
|
||||
"invalid_latitude": "invalid_latitude",
|
||||
"key is empty": "key is empty",
|
||||
"host is empty": "host is empty",
|
||||
"jwt_sub is empty": "jwt_sub is empty",
|
||||
"jwt_kid is empty": "jwt_kid is empty"
|
||||
},
|
||||
"flow_title": "heweather",
|
||||
"step": {
|
||||
"auth_method_config": {
|
||||
"title": "Select your auth method",
|
||||
"description": "Select your auth method. Note: According to the official QWeather notice, starting January 1, 2027, the number of requests using API Key authentication will be subject to limits.",
|
||||
"data": {
|
||||
"auth_method": "auth method"
|
||||
}
|
||||
},
|
||||
"auth_apikey_config": {
|
||||
"title": "API KEY config",
|
||||
"description": "Please enter the QWeather API Key and API Host. Note: According to the official QWeather notice, starting January 1, 2027, the number of requests using API Key authentication will be subject to limits.",
|
||||
"data": {
|
||||
"key": "API KEY",
|
||||
"host": "API Host"
|
||||
}
|
||||
},
|
||||
"auth_jwt_config": {
|
||||
"title": "JWT config",
|
||||
"description": "Please upload the public key\n```\n{jwt_pubkey}\n```\n to the QWeather developer console, then enter the corresponding Project ID, Credential ID, and API Host.",
|
||||
"data": {
|
||||
"jwt_sub": "Project ID",
|
||||
"jwt_kid": "Credential ID",
|
||||
"host": "API Host"
|
||||
}
|
||||
},
|
||||
"location_config": {
|
||||
"title": "location config",
|
||||
"description": "Please enter longitude and latitude coordinates. Longitude range: -180 to 180, latitude range: -90 to 90. Coordinates will be rounded to 4 decimal places.",
|
||||
"data": {
|
||||
"longitude": "longitude",
|
||||
"latitude": "latitude"
|
||||
}
|
||||
},
|
||||
"disaster_config": {
|
||||
"title": "disaster config",
|
||||
"description": "please update the disaster config of heweather",
|
||||
"data": {
|
||||
"disasterlevel": "disaster level",
|
||||
"disastermsg": "disaster type"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"options": {
|
||||
"error": {
|
||||
"empty_location": "location is empty",
|
||||
"invalid_longitude": "invalid longitude",
|
||||
"invalid_latitude": "invalid latitude",
|
||||
"key is empty": "key is empty",
|
||||
"host is empty": "host is empty",
|
||||
"jwt_sub is empty": "jwt_sub is empty",
|
||||
"jwt_kid is empty": "jwt_kid is empty"
|
||||
},
|
||||
"step": {
|
||||
"auth_method_config": {
|
||||
"title": "Select your auth method",
|
||||
"description": "Select your auth method. Note: According to the official QWeather notice, starting January 1, 2027, the number of requests using API Key authentication will be subject to limits.",
|
||||
"data": {
|
||||
"auth_method": "auth method"
|
||||
}
|
||||
},
|
||||
"auth_apikey_config": {
|
||||
"title": "Update API KEY",
|
||||
"description": "Please enter the QWeather API Key and API Host. Note: According to the official QWeather notice, starting January 1, 2027, the number of requests using API Key authentication will be subject to limits.",
|
||||
"data": {
|
||||
"key": "API KEY",
|
||||
"host": "API Host"
|
||||
}
|
||||
},
|
||||
"auth_jwt_config": {
|
||||
"title": "Update JWT config",
|
||||
"description": "Please upload the public key\n```\n{jwt_pubkey}\n```\n to the QWeather developer console, then enter the corresponding Project ID, Credential ID, and API Host.",
|
||||
"data": {
|
||||
"jwt_sub": "Project ID",
|
||||
"jwt_kid": "Credential ID",
|
||||
"host": "API Host"
|
||||
}
|
||||
},
|
||||
"location_config": {
|
||||
"title": "Update your location",
|
||||
"description": "Please enter longitude and latitude coordinates. Longitude range: -180 to 180, latitude range: -90 to 90. Coordinates will be rounded to 4 decimal places.",
|
||||
"data": {
|
||||
"longitude": "longitude",
|
||||
"latitude": "latitude"
|
||||
}
|
||||
},
|
||||
"disaster_config": {
|
||||
"title": "update disaster config",
|
||||
"description": "please update the disaster config of heweather",
|
||||
"data": {
|
||||
"disasterlevel": "disaster level",
|
||||
"disastermsg": "disaster type"
|
||||
}
|
||||
},
|
||||
"user": {
|
||||
"title": "update config",
|
||||
"description": "please update the config of heweather",
|
||||
"data": {
|
||||
"longitude": "longitude",
|
||||
"latitude": "latitude",
|
||||
"disasterlevel": "disaster level",
|
||||
"disastermsg": "disaster type"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,246 @@
|
||||
{
|
||||
"entity": {
|
||||
"sensor": {
|
||||
"heweather_temperature": {
|
||||
"name": "室外温度"
|
||||
},
|
||||
"heweather_humidity": {
|
||||
"name": "室外湿度"
|
||||
},
|
||||
"heweather_feelslike": {
|
||||
"name": "体感温度"
|
||||
},
|
||||
"heweather_text": {
|
||||
"name": "天气描述"
|
||||
},
|
||||
"heweather_precip": {
|
||||
"name": "小时降水量"
|
||||
},
|
||||
"heweather_winddir": {
|
||||
"name": "风向"
|
||||
},
|
||||
"heweather_windscale": {
|
||||
"name": "风力等级"
|
||||
},
|
||||
"heweather_windspeed": {
|
||||
"name": "风速"
|
||||
},
|
||||
"heweather_dew": {
|
||||
"name": "露点温度"
|
||||
},
|
||||
"heweather_pressure": {
|
||||
"name": "大气压强"
|
||||
},
|
||||
"heweather_vis": {
|
||||
"name": "能见度"
|
||||
},
|
||||
"heweather_cloud": {
|
||||
"name": "云量"
|
||||
},
|
||||
|
||||
"heweather_primary": {
|
||||
"name": "空气质量主要污染物"
|
||||
},
|
||||
"heweather_category": {
|
||||
"name": "空气质量指数级别"
|
||||
},
|
||||
"heweather_level": {
|
||||
"name": "空气质量指数等级"
|
||||
},
|
||||
"heweather_pm25": {
|
||||
"name": "PM2.5"
|
||||
},
|
||||
"heweather_pm10": {
|
||||
"name": "PM10"
|
||||
},
|
||||
"heweather_no2": {
|
||||
"name": "二氧化氮"
|
||||
},
|
||||
"heweather_so2": {
|
||||
"name": "二氧化硫"
|
||||
},
|
||||
"heweather_co": {
|
||||
"name": "一氧化碳"
|
||||
},
|
||||
"heweather_o3": {
|
||||
"name": "臭氧"
|
||||
},
|
||||
"heweather_no": {
|
||||
"name": "一氧化氮"
|
||||
},
|
||||
"heweather_nmhc": {
|
||||
"name": "非甲烷总烃"
|
||||
},
|
||||
"heweather_qlty": {
|
||||
"name": "综合空气质量"
|
||||
},
|
||||
|
||||
"heweather_disaster_warn": {
|
||||
"name": "灾害预警"
|
||||
},
|
||||
|
||||
"suggestion_air": {
|
||||
"name": "空气污染扩散条件指数"
|
||||
},
|
||||
"suggestion_comf": {
|
||||
"name": "舒适度指数"
|
||||
},
|
||||
"suggestion_cw": {
|
||||
"name": "洗车指数"
|
||||
},
|
||||
"suggestion_drsg": {
|
||||
"name": "穿衣指数"
|
||||
},
|
||||
"suggestion_flu": {
|
||||
"name": "感冒指数"
|
||||
},
|
||||
"suggestion_sport": {
|
||||
"name": "运动指数"
|
||||
},
|
||||
"suggestion_trav": {
|
||||
"name": "旅行指数"
|
||||
},
|
||||
"suggestion_uv": {
|
||||
"name": "紫外线指数"
|
||||
},
|
||||
"suggestion_guomin": {
|
||||
"name": "过敏指数"
|
||||
},
|
||||
"suggestion_kongtiao": {
|
||||
"name": "空调开启指数"
|
||||
},
|
||||
"suggestion_sunglass": {
|
||||
"name": "太阳镜指数"
|
||||
},
|
||||
"suggestion_fangshai": {
|
||||
"name": "防晒指数"
|
||||
},
|
||||
"suggestion_liangshai": {
|
||||
"name": "晾晒指数"
|
||||
},
|
||||
"suggestion_jiaotong": {
|
||||
"name": "交通指数"
|
||||
}
|
||||
}
|
||||
},
|
||||
"config": {
|
||||
"abort": {
|
||||
"single_instance_allowed": "只允许配置一个和风天气集成条目。"
|
||||
},
|
||||
"error": {
|
||||
"empty_location": "经度和纬度不能为空",
|
||||
"invalid_longitude": "经度格式不正确,必须是-180到180之间的数字",
|
||||
"invalid_latitude": "纬度格式不正确,必须是-90到90之间的数字",
|
||||
"key is empty": "API KEY不能为空",
|
||||
"host is empty": "API Host不能为空",
|
||||
"jwt_sub is empty": "项目ID不能为空",
|
||||
"jwt_kid is empty": "凭据ID不能为空"
|
||||
},
|
||||
"flow_title": "和风天气",
|
||||
"step": {
|
||||
"auth_method_config": {
|
||||
"title": "身份认证方式",
|
||||
"description": "请选择使用的身份认证方式。\r\n**注意:根据和风天气官方说明,从2027年1月1日起,使用API KEY认证方式都将受请求量的限制。**",
|
||||
"data": {
|
||||
"auth_method": "认证方式"
|
||||
}
|
||||
},
|
||||
"auth_apikey_config": {
|
||||
"title": "API KEY认证",
|
||||
"description": "请输入和风天气的API KEY和API Host。\r\n**注意:根据和风天气官方说明,从2027年1月1日起,使用API KEY认证方式都将受请求量的限制。**",
|
||||
"data": {
|
||||
"key": "API KEY",
|
||||
"host": "API Host"
|
||||
}
|
||||
},
|
||||
"auth_jwt_config": {
|
||||
"title": "JWT认证",
|
||||
"description": "请将公钥\n```\n{jwt_pubkey}\n```\n上传至和风天气开发控制台,并输入对应的项目ID、凭据ID和API Host。",
|
||||
"data": {
|
||||
"jwt_sub": "项目ID",
|
||||
"jwt_kid": "凭据ID",
|
||||
"host": "API Host"
|
||||
}
|
||||
},
|
||||
"location_config": {
|
||||
"title": "位置设置",
|
||||
"description": "请输入经纬度坐标。经度范围:-180到180,纬度范围:-90到90。",
|
||||
"data": {
|
||||
"longitude": "经度",
|
||||
"latitude": "纬度"
|
||||
}
|
||||
},
|
||||
"disaster_config": {
|
||||
"title": "灾害预警",
|
||||
"description": "请设置灾害预警的相关参数。",
|
||||
"data": {
|
||||
"disasterlevel": "预警级别",
|
||||
"disastermsg": "预警类型"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"options": {
|
||||
"error": {
|
||||
"empty_location": "经度和纬度不能为空",
|
||||
"invalid_longitude": "经度格式不正确,必须是-180到180之间的数字",
|
||||
"invalid_latitude": "纬度格式不正确,必须是-90到90之间的数字",
|
||||
"key is empty": "API KEY不能为空",
|
||||
"host is empty": "API Host不能为空",
|
||||
"jwt_sub is empty": "项目ID不能为空",
|
||||
"jwt_kid is empty": "凭据ID不能为空"
|
||||
},
|
||||
"step": {
|
||||
"auth_method_config": {
|
||||
"title": "更新身份认证方式",
|
||||
"description": "请选择使用的身份认证方式。\r\n**注意:根据和风天气官方说明,从2027年1月1日起,使用API KEY认证方式都将受请求量的限制。**",
|
||||
"data": {
|
||||
"auth_method": "认证方式"
|
||||
}
|
||||
},
|
||||
"auth_apikey_config": {
|
||||
"title": "更新API KEY认证",
|
||||
"description": "请输入和风天气的API KEY和API Host。\r\n**注意:根据和风天气官方说明,从2027年1月1日起,使用API KEY认证方式都将受请求量的限制。**",
|
||||
"data": {
|
||||
"key": "API KEY",
|
||||
"host": "API Host"
|
||||
}
|
||||
},
|
||||
"auth_jwt_config": {
|
||||
"title": "更新JWT认证",
|
||||
"description": "请将公钥\n```\n{jwt_pubkey}\n```\n上传至和风天气开发控制台,并输入对应的项目ID、凭据ID和API Host。",
|
||||
"data": {
|
||||
"jwt_sub": "项目ID",
|
||||
"jwt_kid": "凭据ID",
|
||||
"host": "API Host"
|
||||
}
|
||||
},
|
||||
"location_config": {
|
||||
"title": "更新位置设置",
|
||||
"description": "请输入经纬度坐标。经度范围:-180到180,纬度范围:-90到90。坐标将保留4位小数精度。",
|
||||
"data": {
|
||||
"longitude": "经度",
|
||||
"latitude": "纬度"
|
||||
}
|
||||
},
|
||||
"disaster_config": {
|
||||
"title": "更新灾害预警",
|
||||
"description": "请设置灾害预警的相关参数。",
|
||||
"data": {
|
||||
"disasterlevel": "预警级别",
|
||||
"disastermsg": "预警类型"
|
||||
}
|
||||
},
|
||||
"user": {
|
||||
"title": "配置更新",
|
||||
"description": "请更新和风天气集成的配置。",
|
||||
"data": {
|
||||
"longitude": "经度",
|
||||
"latitude": "纬度",
|
||||
"disasterlevel": "预警级别",
|
||||
"disastermsg": "预警类型"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user