hongkong-beach-waterquality

1.0.0 • Public • Published

Hong Kong Beach Water Quality API

What is this for?

TThis module gets the current pollution level at various beaches around Hong Kong.

Install

npm install --save hongkong-beach-waterquality

Usage

var BeachWaterQuality = require("hongkong-beach-waterquality");
 
var bwq = BeachWaterQuality();
 
bwq.getBeachForcastLevels().then(function(forecast) {
  console.log(forecast);
});

Supported Methods

Example data

All methods return JSON, please see the examples linked above for more info on how to call each method. Here is an example of what you get with the getBeachForcastLevels() method.

[ { "AlertType": "-1",
    "BeachCode": "TWM",
    "BeachForecastDate": "2016-06-24T10:00:00",
    "BeachForecastLevel": "1",
    "DataDate": "2013-08-04T00:00:00",
    "ImageDate": "2011-02-18T00:00:00" },
  { "AlertType": "-1",
    "BeachCode": "CW2",
    "BeachForecastDate": "2016-06-24T10:00:00",
    "BeachForecastLevel": "1",
    "DataDate": "2013-08-04T00:00:00",
    "ImageDate": "2011-02-10T00:00:00" } ]

Other Handy Modules

Contributing

Feel free to submit any pull requests or add functionality, I"m usually pretty responsive.

If you like the module, please consider donating some bitcoin or litecoin.

Bitcoin

LNzdZksXcCF6qXbuiQpHPQ7LUeHuWa8dDW

LiteCoin

LNzdZksXcCF6qXbuiQpHPQ7LUeHuWa8dDW

Package Sidebar

Install

npm i hongkong-beach-waterquality

Weekly Downloads

2

Version

1.0.0

License

MIT

Last publish

Collaborators

  • hongkongkiwi