Skip to content

nandasafiqalfiansyah/weather-bmkg-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Weather BMKG API

Weather BMKG Logo

This project is an API for retrieving weather forecast data from the Indonesian Meteorological, Climatological, and Geophysical Agency (BMKG). It provides digital forecast data for various regions in Indonesia.

Installation

  1. Clone the repository:

    git clone https://github.com/nandasafiqalfiansyah/weather-bmkg-api.git
  2. Install dependencies:

    npm install

Usage

To start the server, you can use the following command:

npm start

Or if you prefer to run the server with auto-restart on file changes (using nodemon):

npm run dev

Endpoints

The API provides the following endpoints:

  • /weather/?weather=:region: Get weather forecast data for a specific region.

Replace :region with the desired region, e.g., aceh, bali, jakarta.

Example

To retrieve weather forecast data for Jakarta, you can send a GET request to:

http://localhost:3000/weather?weather=jakarta

List of Regions

Region URL
Aceh DigitalForecast-Aceh.xml
Bali DigitalForecast-Bali.xml
Bangka Belitung DigitalForecast-BangkaBelitung.xml
Banten DigitalForecast-Banten.xml
Bengkulu DigitalForecast-Bengkulu.xml
DIY Yogyakarta DigitalForecast-DIYogyakarta.xml
DKI Jakarta DigitalForecast-DKIJakarta.xml
Gorontalo DigitalForecast-Gorontalo.xml
Jambi DigitalForecast-Jambi.xml
Jawa Barat DigitalForecast-JawaBarat.xml
Jawa Tengah DigitalForecast-JawaTengah.xml
Jawa Timur DigitalForecast-JawaTimur.xml
Kalimantan Barat DigitalForecast-KalimantanBarat.xml
Kalimantan Selatan DigitalForecast-KalimantanSelatan.xml
Kalimantan Tengah DigitalForecast-KalimantanTengah.xml
Kalimantan Utara DigitalForecast-KalimantanUtara.xml
Kepulauan Riau DigitalForecast-KepulauanRiau.xml
Lampung DigitalForecast-Lampung.xml
Maluku DigitalForecast-Maluku.xml
Maluku Utara DigitalForecast-MalukuUtara.xml
Nusa Tenggara Barat DigitalForecast-NusaTenggaraBarat.xml
Nusa Tenggara Timur DigitalForecast-NusaTenggaraTimur.xml
Papua DigitalForecast-Papua.xml
Papua Barat DigitalForecast-PapuaBarat.xml
Riau DigitalForecast-Riau.xml
Sulawesi Barat DigitalForecast-SulawesiBarat.xml
Sulawesi Selatan DigitalForecast-SulawesiSelatan.xml
Sulawesi Tengah DigitalForecast-SulawesiTengah.xml
Sulawesi Tenggara DigitalForecast-SulawesiTenggara.xml
Sulawesi Utara DigitalForecast-SulawesiUtara.xml
Sumatera Barat DigitalForecast-SumateraBarat.xml
Sumatera Selatan DigitalForecast-SumateraSelatan.xml
Sumatera Utara DigitalForecast-SumateraUtara.xml

Dependencies

buymeacoffee

Buy Me A Coffee

License

This project is licensed under the ISC License. See the LICENSE file for details.

About

this is project wheather api from bmkg data⛈️

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published