【文件属性】:
文件名称:weatherman.io:Forecast.io API 的 Node.js 模块
文件大小:4KB
文件格式:ZIP
更新时间:2021-06-23 12:38:30
JavaScript
安装它
npm install weatherman.io
需要它
var weatherman = require ( "weatherman.io" ) ;
创建气象员
var alRoker = new weatherman ( "your-forecast-io-api-key" ) ;
创建一个有选项的天气预报员
var options = {
units : "uk" ,
exclude : [ "minutely" , "alerts" ] ,
extend : "hourly"
} ;
var alRoker = new weatherman ( "your-forecast-io-api-key" , options ) ;
Forecast.io 开发人员文档中提供了有关每个选项的详细信息: :
从一个位置进行预测
var for
【文件预览】:
weatherman.io-master
----index.js(48B)
----package.json(738B)
----test()
--------index.js(1KB)
----LICENSE(1KB)
----.gitignore(97B)
----lib()
--------weatherman.js(2KB)
----README.md(1KB)