Skip to content

Hubot script to show Air Quality Index for some city

Notifications You must be signed in to change notification settings

ctgnauh/hubot-aqi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Hubot script to show Air Quality Index for some city

Resources

Stars

Watchers

Forks

Packages

No packages published