hubot-aqi

0.0.5 • Public • Published

hubot-aqi

Hubot script to show Air Quality Index for some city

See src/aqi.coffee for full documentation.

Installation

In hubot project repo, run:

npm install hubot-aqi --save

Then add hubot-aqi to your external-scripts.json:

[
  "hubot-aqi"
]

Sample Interaction

user1>> hubot aqi beijing
hubot>> http://wgt.aqicn.org/aqiwgt/20160129/1MzIwNDMwNLI0NNF3Ss3MysxL10_OAwA.png&ralateUid=&language=cn

Output:

img/1MzIwNDMwNLI0NNF3Ss3MysxL10_OAwA.png

And you can set languange. It have en|cn|jp|es|kr|ru|hk|fr|pl.

user1>> hubot aqi munich en
hubot>> http://wgt.aqicn.org/aqiwgt/20160129/1MzIwNDMwNLI0MNP3Lc3LTM7QT80DAA.png&ralateUid=&language=en

Output:

img/1MzIwNDMwNLI0MNP3Lc3LTM7QT80DAA.png

Package Sidebar

Install

npm i hubot-aqi

Weekly Downloads

1

Version

0.0.5

License

MIT

Last publish

Collaborators

  • ctgnauh