a package that you can use to get city weather data in Indonesia
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
Start with install library using yarn or npm:
$ npm install kobokan
Or if you prefer using Yarn:
$ yarn add kobokan
const Kobokan = require('kobokan')
Scripts
Kobokan.then((results) => {
console.log(results);
})
.catch((error) => {
console.log(error);
});
Output
[
{
"city": "Banda Aceh",
"temperature": "26°C",
"time": "07:00 WIB",
"image": "https://www.bmkg.go.id/asset/img/icon-cuaca/berawan-am.png",
"description": "Berawan"
},
{
"city": "Serang",
"temperature": "26°C",
"time": "07:00 WIB",
"image": "https://www.bmkg.go.id/asset/img/icon-cuaca/cerah berawan-am.png",
"description": "Cerah Berawan"
},
{
"city": "Bengkulu",
"temperature": "24°C",
"time": "07:00 WIB",
"image": "https://www.bmkg.go.id/asset/img/icon-cuaca/cerah berawan-am.png",
"description": "Cerah Berawan"
},
...[and more]
]
Kobokan()
We use SemVer for versioning. For the versions available, see the tags on this repository.
- Arie Akbarull Ridho - ariear - ariear
See also the list of contributors who participated in this project.