bmkg-scrape
v1.0.5
Published
library scrape bmkg indonesia
Downloads
4
Maintainers
Readme
❄Content-Library
- 📰 0% Ads
- 💸 0% Tracker
- 📃 0% Logging
❄Docs var lib = require('bmkg-scrape');
lib.autogempa()
lib.gempa_dirasakan()
lib.gempa_terkini()
❄To-Do
A list that i should do more for this project...
- ✔ Check Gempa
- 🔜 Check Cuaca
🖥Requirements
- Node v10+ (Node v14 Recommended)
- Git installed
- Fast network connection
📠Community
🎁Installation
git clone https://github.com/insaneupdate/bmkg-scrape
cd bmkg-scrape
npm install
📡Test
node test
var lib = require('bmkg-scrape');
async function test(){
var autogempa = await lib.autogempa()
console.log(JSON.stringify(autogempa,null,2))
}
test()
❄Result
{
"status": true,
"creator": "@insaneupdate",
"message": {
"Infogempa": {
"gempa": {
"Tanggal": "14 Mei 2021",
"Jam": "16:16:30 WIB",
"DateTime": "2021-05-14T09:16:30+00:00",
"point": {
"coordinates": "0.01,96.43"
},
"Lintang": "0.01 LU",
"Bujur": "96.43 BT",
"Magnitude": 5.3,
"Kedalaman": "10 km",
"Wilayah": "156 km BaratDaya NIASBARAT-SUMUT",
"Potensi": "Tidak berpotensi tsunami",
"Dirasakan": "-",
"Shakemap": "20210514161957.mmi.jpg"
}
}
}
}