• 天气预报接口


    1. 当前天气

    API地址:http://mobile.weather.com.cn/data/sk/101010100.html

    image

    sd 湿度

    sm 未知

    temp 温度

    tempF 温度,华氏

    time 时间

    wd 风向

    ws 风速

    2. 生活方面

    API地址:http://mobile.weather.com.cn/data/zsM/101020500.html

    image

    3. 七天天气预报

    API地址:http://mobile.weather.com.cn/data/forecast/101010100.html

    image

    fa 白天图片id http://mobile.weather.com.cn/images/small/day/00.png

    fb 夜晚图片id http://mobile.weather.com.cn/images/small/night/00.png

    fc 白天温度

    fd 夜晚温度

    fi 日出和日落时间

    4. 过去24小时趋势

    API地址:http://mobile.weather.com.cn/data/UsedLive/101010100.html

    image

    l1 温度

    l2 湿度

    l3 风速

    l4 风向(1东北,2东,3东南,4南,5西南,6西,7西北,8北)

    l6 雨量

    l7 时间

    5. 3小时天气预报(7天)

    API地址:http://mobile.weather.com.cn/data/forecast3h/101010100.html

    image

    ja 图片id http://mobile.weather.com.cn/images/day/00.png

    jb 最高温度

    jc 最低温度

    jh 起始时间

    ji 结束时间

    6. 当前空气质量

    API地址:http://mobile.weather.com.cn/data/airnow/101020100.html

    image

    p2 当前空气质量(0-50优,50-100良,100-150轻污染,150-200不健康,200-300危险,300-500有毒)(超过300后,一般用?代替)

    p9 测量空气质量时间

    作者:Create Chen 
    出处:http://technology.cnblogs.com

  • 相关阅读:
    使用 GitHub, Jekyll 打造自己的免费独立博客
    如何解决数据科学计数法在数据库中的显示
    RDF
    C# 在 4.0 以后一共有3种创建线程的方式
    C#多线程
    1、框架概述
    3、IDEA 中使用 Maven
    2、Maven 核心概念
    1、Maven 概述
    JDK动态代理
  • 原文地址:https://www.cnblogs.com/txw1958/p/weather-forecast-api.html
Copyright © 2020-2023  润新知