zoukankan      html  css  js  c++  java
  • 天气预报接口

    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

  • 相关阅读:
    Sublime Text 3 Build 3143 可用License
    npm安装cnpm报错
    使用proxy来简单的实现一个观察者
    时间倒计时提醒
    JavaScript设计模式
    异步方法(promise版)出错自调用
    co模块源码学习笔记
    go new() 和 make() 的区别
    广度优先搜索算法
    并发和并行有什么区别?(转)
  • 原文地址:https://www.cnblogs.com/lanzhi/p/6467523.html
Copyright © 2011-2022 走看看