C# 微信 生活助手 空气质量 天气预报等 效果展示 数据抓取 (二)

发布时间:2024-12-23 17:25

空气质量预报关注PM2.5、PM10等数值,数值越低空气质量越好。 #生活常识# #天气预报#

1 /// <summary> 2 /// 环保部抓取数据链接 3 /// </summary> 4 public const string HBUrl = "http://datacenter.mep.gov.cn/report/air_daily/airDairyCityHour.jsp"; 5 /// <summary> 6 /// 环境检测总站 7 /// </summary> 8 public const string HJJCZZUrl = "http://113.108.142.147:20035/emcpublish/ClientBin/Env-CnemcPublish-RiaServices-EnvCnemcPublishDomainService.svc/binary"; 9 /// <summary> 10 /// 获取所有站点AQI数据 11 /// </summary> 12 public const string AQIDataUrl = HJJCZZUrl + "/GetAQIDataPublishLives"; 13 /// <summary> 14 /// 获取所有城市AQI数据 15 /// </summary> 16 public const string CityDataUrl = HJJCZZUrl + "/GetCityAQIPublishLives"; 17 /// <summary> 18 /// 中国天气网 19 /// </summary> 20 public const string WeatherUrl = "http://www.weather.com.cn"; 21 /// <summary> 22 /// 中国天气网7天天气预报 23 /// </summary> 24 //public const string Weather7DUrl = WeatherUrl + "/weather/{0}.shtml"; 25 public const string Weather7DUrl = "http://home.cw.uitv.com.cn/Weather.ashx?service=2&cityid={0}"; 26 /// <summary> 27 /// 中国天气网实况天气预报 28 /// </summary> 29 //public const string WeatherSKUrl = "http://data.weather.com.cn/sk/{0}.html"; 30 public const string WeatherSKUrl = "http://d1.weather.com.cn/sk_2d/{0}.html"; 31 public const string WeatherSKDetailUrl = "http://flash.weather.com.cn/wmaps/xml/{0}.xml"; 32 33 34 public static readonly string[] ChinaProvinces = new string[] { "heilongjiang", "jilin", "liaoning", "hainan", "neimenggu", "xinjiang", "xizang", "qinghai", "ningxia", "gansu", "hebei", "henan", "hubei", "hunan", "shandong", "jiangsu", "anhui", "shanxi", "sanxi", "sichuan", "yunnan", "guizhou", "zhejiang", "fujian", "jiangxi", "guangdong", "guangxi", "beijing", "tianjin", "shanghai", "chongqing", "xianggang", "aomen", "taiwan", "xisha", "nanshadao", "diaoyudao" }; 35 36 /// <summary> 37 /// 风向 38 /// </summary> 39 public static readonly string[] WindDirections = new string[] { "无持续风向", "东北风", "东风", "东南风", "南风", "西南风", "西风", "西北风", "北风", "旋转风" }; 40 /// <summary> 41 /// 风力 42 /// </summary> 43 public static readonly string[] WindForces = new string[] { "微风", "3-4级", "4-5级", "5-6级", "6-7级", "7-8级", "8-9级", "9-10级", "10-11级", "11-12级" }; 44 /// <summary> 45 /// 天气 46 /// </summary> 47 public static readonly string[] Weathers = new string[] { "晴", "多云", "阴", "阵雨", "雷阵雨", "冰雹", "雨夹雪", "小雨", "中雨", "大雨", "暴雨", "大暴雨", "特大暴雨", "阵雪", "小雪", "中雪", "大雪", "暴雪", "雾", "冻雨", "沙尘暴", "小到中雨", "中到大雨", "大到暴雨", "暴雨到大暴雨", "大暴雨到特大暴雨", "小到中雪", "中到大雪", "大到暴雪", "浮尘", "扬沙", "强沙尘暴", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "霾" }; 48 /// <summary> 49 /// 质数代号 50 /// </summary> 51 public static readonly string[] Indexs = new string[] { "ag", "cl", "lk", "yh", "uv", "ls", "mf", "pj", "tr", "yd", "hc", "ac", "ct", "gj", "ys", "nl", "pk", "zs", "xc", "co", "dy", "fs", "gm", "jt", "xq", "pl", "pp" }; 52 /// <summary> 53 /// 质数名称 54 /// </summary> 55 public static readonly string[] IndexNames = new string[] { "息斯敏过敏指数", "晨练指数", "路况指数", "约会指数", "紫外线强度指数", "晾晒指数", "美发指数", "啤酒指数", "旅游指数", "运动指数", "划船指数", "空调开启指数", "穿衣指数", "逛街指数", "雨伞指数", "夜生活指数", "放风筝指数", "中暑指数", "洗车指数", "舒适度指数", "钓鱼指数", "防晒指数", "感冒指数", "交通指数", "心情指数", "空气污染扩散条件指数", "化妆指数" };

网址:C# 微信 生活助手 空气质量 天气预报等 效果展示 数据抓取 (二) https://www.yuejiaxmz.com/news/view/547160

相关内容

Android 天气APP(五)天气预报、生活指数的数据请求与渲染
今年全国空气质量形势符合预期 空气质量检测行业调研
城市道路空气质量网格化监测系统空气微站
空气质量检测
人工智能成为气象预报“小助手”
微型环境空气质量监测系统
室内空气质量检测怎么做,怎么用手机看空气质量指数
多参数室内空气质量检测仪——全面监测室内空气质量
小米天气预报app
微型化空气质量检测设备的研发

随便看看