diff options
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-bmkginfo.spec | 932 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 934 insertions, 0 deletions
@@ -0,0 +1 @@ +/bmkginfo-0.0.7.tar.gz diff --git a/python-bmkginfo.spec b/python-bmkginfo.spec new file mode 100644 index 0000000..7610ae1 --- /dev/null +++ b/python-bmkginfo.spec @@ -0,0 +1,932 @@ +%global _empty_manifest_terminate_build 0 +Name: python-bmkginfo +Version: 0.0.7 +Release: 1 +Summary: BMKGINFO is a Python library for getting information about latest earth quake and wheather forecast in Indonesia base on BMKG | Meteorological, Climatological, and Geophysical Agency Website. +License: MIT License +URL: https://github.com/endang-ismaya/bmkginfo +Source0: https://mirrors.aliyun.com/pypi/web/packages/30/6c/7876efba296f419717c19f7775c53109921d66d00461b4c48aae8bef216a/bmkginfo-0.0.7.tar.gz +BuildArch: noarch + +Requires: python3-requests +Requires: python3-beautifulsoup4 + +%description +# BMKGINFO + +BMKGINFO is a Python library for getting information about latest earth quake and wheather forecast in Indonesia base on BMKG | Meteorological, Climatological, and Geophysical Agency Website. + +## Installation + +Use the package manager [pip](https://pip.pypa.io/en/stable/) to install bmkginfo. + +```bash +pip install bmkginfo +``` + +## Usage + +```python +from bmkginfo import WeatherForecast, LatestEarthQuake + +wf = WeatherForecast() +print(wf.get_data()) + +leq = LatestEarthQuake() +print(leq.get_data()) + +``` + +output: + +```json +[ + { + "city": "Banda Aceh", + "hour": "16:00 WIB", + "wheather": "Cerah Berawan", + "temp": "31°C", + "image": "https://www.bmkg.go.id/asset/img/icon-cuaca/cerah%20berawan-am.png" + }, + { + "city": "Serang", + "hour": "16:00 WIB", + "wheather": "Hujan Ringan", + "temp": "29°C", + "image": "https://www.bmkg.go.id/asset/img/icon-cuaca/hujan%20ringan-am.png" + }, + { + "city": "Bengkulu", + "hour": "16:00 WIB", + "wheather": "Berawan", + "temp": "28°C", + "image": "https://www.bmkg.go.id/asset/img/icon-cuaca/berawan-am.png" + }, + { + "city": "Yogyakarta", + "hour": "16:00 WIB", + "wheather": "Berawan", + "temp": "28°C", + "image": "https://www.bmkg.go.id/asset/img/icon-cuaca/berawan-am.png" + }, + { + "city": "Jakarta", + "hour": "16:00 WIB", + "wheather": "Berawan", + "temp": "30°C", + "image": "https://www.bmkg.go.id/asset/img/icon-cuaca/berawan-am.png" + }, + { + "city": "Jambi", + "hour": "16:00 WIB", + "wheather": "Berawan", + "temp": "30°C", + "image": "https://www.bmkg.go.id/asset/img/icon-cuaca/berawan-am.png" + }, + { + "city": "Bandung", + "hour": "16:00 WIB", + "wheather": "Hujan Petir", + "temp": "22°C", + "image": "https://www.bmkg.go.id/asset/img/icon-cuaca/hujan%20petir-am.png" + }, + { + "city": "Semarang", + "hour": "16:00 WIB", + "wheather": "Berawan", + "temp": "30°C", + "image": "https://www.bmkg.go.id/asset/img/icon-cuaca/berawan-am.png" + }, + { + "city": "Surabaya", + "hour": "16:00 WIB", + "wheather": "Cerah Berawan", + "temp": "32°C", + "image": "https://www.bmkg.go.id/asset/img/icon-cuaca/cerah%20berawan-am.png" + }, + { + "city": "Pontianak", + "hour": "16:00 WIB", + "wheather": "Cerah Berawan", + "temp": "26°C", + "image": "https://www.bmkg.go.id/asset/img/icon-cuaca/cerah%20berawan-am.png" + }, + { + "city": "Palangkaraya", + "hour": "16:00 WIB", + "wheather": "Hujan Ringan", + "temp": "29°C", + "image": "https://www.bmkg.go.id/asset/img/icon-cuaca/hujan%20ringan-am.png" + }, + { + "city": "Pangkal Pinang", + "hour": "16:00 WIB", + "wheather": "Berawan", + "temp": "29°C", + "image": "https://www.bmkg.go.id/asset/img/icon-cuaca/berawan-am.png" + }, + { + "city": "Tanjung Pinang", + "hour": "16:00 WIB", + "wheather": "Berawan", + "temp": "30°C", + "image": "https://www.bmkg.go.id/asset/img/icon-cuaca/berawan-am.png" + }, + { + "city": "Lampung", + "hour": "16:00 WIB", + "wheather": "Hujan Ringan", + "temp": "28°C", + "image": "https://www.bmkg.go.id/asset/img/icon-cuaca/hujan%20ringan-am.png" + }, + { + "city": "Pekanbaru", + "hour": "16:00 WIB", + "wheather": "Cerah Berawan", + "temp": "34°C", + "image": "https://www.bmkg.go.id/asset/img/icon-cuaca/cerah%20berawan-am.png" + }, + { + "city": "Padang", + "hour": "16:00 WIB", + "wheather": "Cerah Berawan", + "temp": "28°C", + "image": "https://www.bmkg.go.id/asset/img/icon-cuaca/cerah%20berawan-am.png" + }, + { + "city": "Palembang", + "hour": "16:00 WIB", + "wheather": "Hujan Ringan", + "temp": "29°C", + "image": "https://www.bmkg.go.id/asset/img/icon-cuaca/hujan%20ringan-am.png" + }, + { + "city": "Medan", + "hour": "16:00 WIB", + "wheather": "Cerah Berawan", + "temp": "31°C", + "image": "https://www.bmkg.go.id/asset/img/icon-cuaca/cerah%20berawan-am.png" + }, + { + "city": "Denpasar", + "hour": "17:00 WITA", + "wheather": "Cerah Berawan", + "temp": "29°C", + "image": "https://www.bmkg.go.id/asset/img/icon-cuaca/cerah%20berawan-am.png" + }, + { + "city": "Gorontalo", + "hour": "17:00 WITA", + "wheather": "Cerah", + "temp": "28°C", + "image": "https://www.bmkg.go.id/asset/img/icon-cuaca/cerah-am.png" + }, + { + "city": "Banjarmasin", + "hour": "17:00 WITA", + "wheather": "Berawan", + "temp": "28°C", + "image": "https://www.bmkg.go.id/asset/img/icon-cuaca/berawan-am.png" + }, + { + "city": "Samarinda", + "hour": "17:00 WITA", + "wheather": "Cerah Berawan", + "temp": "29°C", + "image": "https://www.bmkg.go.id/asset/img/icon-cuaca/cerah%20berawan-am.png" + }, + { + "city": "Tanjung Selor", + "hour": "17:00 WITA", + "wheather": "Cerah Berawan", + "temp": "27°C", + "image": "https://www.bmkg.go.id/asset/img/icon-cuaca/cerah%20berawan-am.png" + }, + { + "city": "Mataram", + "hour": "17:00 WITA", + "wheather": "Hujan Ringan", + "temp": "29°C", + "image": "https://www.bmkg.go.id/asset/img/icon-cuaca/hujan%20ringan-am.png" + }, + { + "city": "Kupang", + "hour": "17:00 WITA", + "wheather": "Berawan", + "temp": "29°C", + "image": "https://www.bmkg.go.id/asset/img/icon-cuaca/berawan-am.png" + }, + { + "city": "Mamuju", + "hour": "17:00 WITA", + "wheather": "Hujan Ringan", + "temp": "30°C", + "image": "https://www.bmkg.go.id/asset/img/icon-cuaca/hujan%20ringan-am.png" + }, + { + "city": "Makassar", + "hour": "17:00 WITA", + "wheather": "Hujan Ringan", + "temp": "30°C", + "image": "https://www.bmkg.go.id/asset/img/icon-cuaca/hujan%20ringan-am.png" + }, + { + "city": "Palu", + "hour": "17:00 WITA", + "wheather": "Cerah Berawan", + "temp": "27°C", + "image": "https://www.bmkg.go.id/asset/img/icon-cuaca/cerah%20berawan-am.png" + }, + { + "city": "Kendari", + "hour": "17:00 WITA", + "wheather": "Berawan", + "temp": "29°C", + "image": "https://www.bmkg.go.id/asset/img/icon-cuaca/berawan-am.png" + }, + { + "city": "Manado", + "hour": "17:00 WITA", + "wheather": "Cerah Berawan", + "temp": "29°C", + "image": "https://www.bmkg.go.id/asset/img/icon-cuaca/cerah%20berawan-am.png" + }, + { + "city": "Ambon", + "hour": "18:00 WIT", + "wheather": "Cerah Berawan", + "temp": "28°C", + "image": "https://www.bmkg.go.id/asset/img/icon-cuaca/cerah%20berawan-pm.png" + }, + { + "city": "Sofifi", + "hour": "18:00 WIT", + "wheather": "Berawan", + "temp": "30°C", + "image": "https://www.bmkg.go.id/asset/img/icon-cuaca/berawan-pm.png" + }, + { + "city": "Jayapura", + "hour": "18:00 WIT", + "wheather": "Cerah Berawan", + "temp": "28°C", + "image": "https://www.bmkg.go.id/asset/img/icon-cuaca/cerah%20berawan-pm.png" + }, + { + "city": "Manokwari", + "hour": "18:00 WIT", + "wheather": "Cerah Berawan", + "temp": "28°C", + "image": "https://www.bmkg.go.id/asset/img/icon-cuaca/cerah%20berawan-pm.png" + } +] +``` + +```json +{ + "time": "11 Oktober 2021, 10:09:56 WIB", + "magnitude": "4.9", + "depth": "70 km", + "coordinate": "9.03 LS - 122.50 BT", + "location": "Pusat gempa berada diLaut 55 km Tenggara Maumere Sikka", + "felt": "Dirasakan (Skala MMI): II Lembata, II Ende, II Maumere" +} +``` + +## License + +[MIT](https://choosealicense.com/licenses/mit/) + + + + +%package -n python3-bmkginfo +Summary: BMKGINFO is a Python library for getting information about latest earth quake and wheather forecast in Indonesia base on BMKG | Meteorological, Climatological, and Geophysical Agency Website. +Provides: python-bmkginfo +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-bmkginfo +# BMKGINFO + +BMKGINFO is a Python library for getting information about latest earth quake and wheather forecast in Indonesia base on BMKG | Meteorological, Climatological, and Geophysical Agency Website. + +## Installation + +Use the package manager [pip](https://pip.pypa.io/en/stable/) to install bmkginfo. + +```bash +pip install bmkginfo +``` + +## Usage + +```python +from bmkginfo import WeatherForecast, LatestEarthQuake + +wf = WeatherForecast() +print(wf.get_data()) + +leq = LatestEarthQuake() +print(leq.get_data()) + +``` + +output: + +```json +[ + { + "city": "Banda Aceh", + "hour": "16:00 WIB", + "wheather": "Cerah Berawan", + "temp": "31°C", + "image": "https://www.bmkg.go.id/asset/img/icon-cuaca/cerah%20berawan-am.png" + }, + { + "city": "Serang", + "hour": "16:00 WIB", + "wheather": "Hujan Ringan", + "temp": "29°C", + "image": "https://www.bmkg.go.id/asset/img/icon-cuaca/hujan%20ringan-am.png" + }, + { + "city": "Bengkulu", + "hour": "16:00 WIB", + "wheather": "Berawan", + "temp": "28°C", + "image": "https://www.bmkg.go.id/asset/img/icon-cuaca/berawan-am.png" + }, + { + "city": "Yogyakarta", + "hour": "16:00 WIB", + "wheather": "Berawan", + "temp": "28°C", + "image": "https://www.bmkg.go.id/asset/img/icon-cuaca/berawan-am.png" + }, + { + "city": "Jakarta", + "hour": "16:00 WIB", + "wheather": "Berawan", + "temp": "30°C", + "image": "https://www.bmkg.go.id/asset/img/icon-cuaca/berawan-am.png" + }, + { + "city": "Jambi", + "hour": "16:00 WIB", + "wheather": "Berawan", + "temp": "30°C", + "image": "https://www.bmkg.go.id/asset/img/icon-cuaca/berawan-am.png" + }, + { + "city": "Bandung", + "hour": "16:00 WIB", + "wheather": "Hujan Petir", + "temp": "22°C", + "image": "https://www.bmkg.go.id/asset/img/icon-cuaca/hujan%20petir-am.png" + }, + { + "city": "Semarang", + "hour": "16:00 WIB", + "wheather": "Berawan", + "temp": "30°C", + "image": "https://www.bmkg.go.id/asset/img/icon-cuaca/berawan-am.png" + }, + { + "city": "Surabaya", + "hour": "16:00 WIB", + "wheather": "Cerah Berawan", + "temp": "32°C", + "image": "https://www.bmkg.go.id/asset/img/icon-cuaca/cerah%20berawan-am.png" + }, + { + "city": "Pontianak", + "hour": "16:00 WIB", + "wheather": "Cerah Berawan", + "temp": "26°C", + "image": "https://www.bmkg.go.id/asset/img/icon-cuaca/cerah%20berawan-am.png" + }, + { + "city": "Palangkaraya", + "hour": "16:00 WIB", + "wheather": "Hujan Ringan", + "temp": "29°C", + "image": "https://www.bmkg.go.id/asset/img/icon-cuaca/hujan%20ringan-am.png" + }, + { + "city": "Pangkal Pinang", + "hour": "16:00 WIB", + "wheather": "Berawan", + "temp": "29°C", + "image": "https://www.bmkg.go.id/asset/img/icon-cuaca/berawan-am.png" + }, + { + "city": "Tanjung Pinang", + "hour": "16:00 WIB", + "wheather": "Berawan", + "temp": "30°C", + "image": "https://www.bmkg.go.id/asset/img/icon-cuaca/berawan-am.png" + }, + { + "city": "Lampung", + "hour": "16:00 WIB", + "wheather": "Hujan Ringan", + "temp": "28°C", + "image": "https://www.bmkg.go.id/asset/img/icon-cuaca/hujan%20ringan-am.png" + }, + { + "city": "Pekanbaru", + "hour": "16:00 WIB", + "wheather": "Cerah Berawan", + "temp": "34°C", + "image": "https://www.bmkg.go.id/asset/img/icon-cuaca/cerah%20berawan-am.png" + }, + { + "city": "Padang", + "hour": "16:00 WIB", + "wheather": "Cerah Berawan", + "temp": "28°C", + "image": "https://www.bmkg.go.id/asset/img/icon-cuaca/cerah%20berawan-am.png" + }, + { + "city": "Palembang", + "hour": "16:00 WIB", + "wheather": "Hujan Ringan", + "temp": "29°C", + "image": "https://www.bmkg.go.id/asset/img/icon-cuaca/hujan%20ringan-am.png" + }, + { + "city": "Medan", + "hour": "16:00 WIB", + "wheather": "Cerah Berawan", + "temp": "31°C", + "image": "https://www.bmkg.go.id/asset/img/icon-cuaca/cerah%20berawan-am.png" + }, + { + "city": "Denpasar", + "hour": "17:00 WITA", + "wheather": "Cerah Berawan", + "temp": "29°C", + "image": "https://www.bmkg.go.id/asset/img/icon-cuaca/cerah%20berawan-am.png" + }, + { + "city": "Gorontalo", + "hour": "17:00 WITA", + "wheather": "Cerah", + "temp": "28°C", + "image": "https://www.bmkg.go.id/asset/img/icon-cuaca/cerah-am.png" + }, + { + "city": "Banjarmasin", + "hour": "17:00 WITA", + "wheather": "Berawan", + "temp": "28°C", + "image": "https://www.bmkg.go.id/asset/img/icon-cuaca/berawan-am.png" + }, + { + "city": "Samarinda", + "hour": "17:00 WITA", + "wheather": "Cerah Berawan", + "temp": "29°C", + "image": "https://www.bmkg.go.id/asset/img/icon-cuaca/cerah%20berawan-am.png" + }, + { + "city": "Tanjung Selor", + "hour": "17:00 WITA", + "wheather": "Cerah Berawan", + "temp": "27°C", + "image": "https://www.bmkg.go.id/asset/img/icon-cuaca/cerah%20berawan-am.png" + }, + { + "city": "Mataram", + "hour": "17:00 WITA", + "wheather": "Hujan Ringan", + "temp": "29°C", + "image": "https://www.bmkg.go.id/asset/img/icon-cuaca/hujan%20ringan-am.png" + }, + { + "city": "Kupang", + "hour": "17:00 WITA", + "wheather": "Berawan", + "temp": "29°C", + "image": "https://www.bmkg.go.id/asset/img/icon-cuaca/berawan-am.png" + }, + { + "city": "Mamuju", + "hour": "17:00 WITA", + "wheather": "Hujan Ringan", + "temp": "30°C", + "image": "https://www.bmkg.go.id/asset/img/icon-cuaca/hujan%20ringan-am.png" + }, + { + "city": "Makassar", + "hour": "17:00 WITA", + "wheather": "Hujan Ringan", + "temp": "30°C", + "image": "https://www.bmkg.go.id/asset/img/icon-cuaca/hujan%20ringan-am.png" + }, + { + "city": "Palu", + "hour": "17:00 WITA", + "wheather": "Cerah Berawan", + "temp": "27°C", + "image": "https://www.bmkg.go.id/asset/img/icon-cuaca/cerah%20berawan-am.png" + }, + { + "city": "Kendari", + "hour": "17:00 WITA", + "wheather": "Berawan", + "temp": "29°C", + "image": "https://www.bmkg.go.id/asset/img/icon-cuaca/berawan-am.png" + }, + { + "city": "Manado", + "hour": "17:00 WITA", + "wheather": "Cerah Berawan", + "temp": "29°C", + "image": "https://www.bmkg.go.id/asset/img/icon-cuaca/cerah%20berawan-am.png" + }, + { + "city": "Ambon", + "hour": "18:00 WIT", + "wheather": "Cerah Berawan", + "temp": "28°C", + "image": "https://www.bmkg.go.id/asset/img/icon-cuaca/cerah%20berawan-pm.png" + }, + { + "city": "Sofifi", + "hour": "18:00 WIT", + "wheather": "Berawan", + "temp": "30°C", + "image": "https://www.bmkg.go.id/asset/img/icon-cuaca/berawan-pm.png" + }, + { + "city": "Jayapura", + "hour": "18:00 WIT", + "wheather": "Cerah Berawan", + "temp": "28°C", + "image": "https://www.bmkg.go.id/asset/img/icon-cuaca/cerah%20berawan-pm.png" + }, + { + "city": "Manokwari", + "hour": "18:00 WIT", + "wheather": "Cerah Berawan", + "temp": "28°C", + "image": "https://www.bmkg.go.id/asset/img/icon-cuaca/cerah%20berawan-pm.png" + } +] +``` + +```json +{ + "time": "11 Oktober 2021, 10:09:56 WIB", + "magnitude": "4.9", + "depth": "70 km", + "coordinate": "9.03 LS - 122.50 BT", + "location": "Pusat gempa berada diLaut 55 km Tenggara Maumere Sikka", + "felt": "Dirasakan (Skala MMI): II Lembata, II Ende, II Maumere" +} +``` + +## License + +[MIT](https://choosealicense.com/licenses/mit/) + + + + +%package help +Summary: Development documents and examples for bmkginfo +Provides: python3-bmkginfo-doc +%description help +# BMKGINFO + +BMKGINFO is a Python library for getting information about latest earth quake and wheather forecast in Indonesia base on BMKG | Meteorological, Climatological, and Geophysical Agency Website. + +## Installation + +Use the package manager [pip](https://pip.pypa.io/en/stable/) to install bmkginfo. + +```bash +pip install bmkginfo +``` + +## Usage + +```python +from bmkginfo import WeatherForecast, LatestEarthQuake + +wf = WeatherForecast() +print(wf.get_data()) + +leq = LatestEarthQuake() +print(leq.get_data()) + +``` + +output: + +```json +[ + { + "city": "Banda Aceh", + "hour": "16:00 WIB", + "wheather": "Cerah Berawan", + "temp": "31°C", + "image": "https://www.bmkg.go.id/asset/img/icon-cuaca/cerah%20berawan-am.png" + }, + { + "city": "Serang", + "hour": "16:00 WIB", + "wheather": "Hujan Ringan", + "temp": "29°C", + "image": "https://www.bmkg.go.id/asset/img/icon-cuaca/hujan%20ringan-am.png" + }, + { + "city": "Bengkulu", + "hour": "16:00 WIB", + "wheather": "Berawan", + "temp": "28°C", + "image": "https://www.bmkg.go.id/asset/img/icon-cuaca/berawan-am.png" + }, + { + "city": "Yogyakarta", + "hour": "16:00 WIB", + "wheather": "Berawan", + "temp": "28°C", + "image": "https://www.bmkg.go.id/asset/img/icon-cuaca/berawan-am.png" + }, + { + "city": "Jakarta", + "hour": "16:00 WIB", + "wheather": "Berawan", + "temp": "30°C", + "image": "https://www.bmkg.go.id/asset/img/icon-cuaca/berawan-am.png" + }, + { + "city": "Jambi", + "hour": "16:00 WIB", + "wheather": "Berawan", + "temp": "30°C", + "image": "https://www.bmkg.go.id/asset/img/icon-cuaca/berawan-am.png" + }, + { + "city": "Bandung", + "hour": "16:00 WIB", + "wheather": "Hujan Petir", + "temp": "22°C", + "image": "https://www.bmkg.go.id/asset/img/icon-cuaca/hujan%20petir-am.png" + }, + { + "city": "Semarang", + "hour": "16:00 WIB", + "wheather": "Berawan", + "temp": "30°C", + "image": "https://www.bmkg.go.id/asset/img/icon-cuaca/berawan-am.png" + }, + { + "city": "Surabaya", + "hour": "16:00 WIB", + "wheather": "Cerah Berawan", + "temp": "32°C", + "image": "https://www.bmkg.go.id/asset/img/icon-cuaca/cerah%20berawan-am.png" + }, + { + "city": "Pontianak", + "hour": "16:00 WIB", + "wheather": "Cerah Berawan", + "temp": "26°C", + "image": "https://www.bmkg.go.id/asset/img/icon-cuaca/cerah%20berawan-am.png" + }, + { + "city": "Palangkaraya", + "hour": "16:00 WIB", + "wheather": "Hujan Ringan", + "temp": "29°C", + "image": "https://www.bmkg.go.id/asset/img/icon-cuaca/hujan%20ringan-am.png" + }, + { + "city": "Pangkal Pinang", + "hour": "16:00 WIB", + "wheather": "Berawan", + "temp": "29°C", + "image": "https://www.bmkg.go.id/asset/img/icon-cuaca/berawan-am.png" + }, + { + "city": "Tanjung Pinang", + "hour": "16:00 WIB", + "wheather": "Berawan", + "temp": "30°C", + "image": "https://www.bmkg.go.id/asset/img/icon-cuaca/berawan-am.png" + }, + { + "city": "Lampung", + "hour": "16:00 WIB", + "wheather": "Hujan Ringan", + "temp": "28°C", + "image": "https://www.bmkg.go.id/asset/img/icon-cuaca/hujan%20ringan-am.png" + }, + { + "city": "Pekanbaru", + "hour": "16:00 WIB", + "wheather": "Cerah Berawan", + "temp": "34°C", + "image": "https://www.bmkg.go.id/asset/img/icon-cuaca/cerah%20berawan-am.png" + }, + { + "city": "Padang", + "hour": "16:00 WIB", + "wheather": "Cerah Berawan", + "temp": "28°C", + "image": "https://www.bmkg.go.id/asset/img/icon-cuaca/cerah%20berawan-am.png" + }, + { + "city": "Palembang", + "hour": "16:00 WIB", + "wheather": "Hujan Ringan", + "temp": "29°C", + "image": "https://www.bmkg.go.id/asset/img/icon-cuaca/hujan%20ringan-am.png" + }, + { + "city": "Medan", + "hour": "16:00 WIB", + "wheather": "Cerah Berawan", + "temp": "31°C", + "image": "https://www.bmkg.go.id/asset/img/icon-cuaca/cerah%20berawan-am.png" + }, + { + "city": "Denpasar", + "hour": "17:00 WITA", + "wheather": "Cerah Berawan", + "temp": "29°C", + "image": "https://www.bmkg.go.id/asset/img/icon-cuaca/cerah%20berawan-am.png" + }, + { + "city": "Gorontalo", + "hour": "17:00 WITA", + "wheather": "Cerah", + "temp": "28°C", + "image": "https://www.bmkg.go.id/asset/img/icon-cuaca/cerah-am.png" + }, + { + "city": "Banjarmasin", + "hour": "17:00 WITA", + "wheather": "Berawan", + "temp": "28°C", + "image": "https://www.bmkg.go.id/asset/img/icon-cuaca/berawan-am.png" + }, + { + "city": "Samarinda", + "hour": "17:00 WITA", + "wheather": "Cerah Berawan", + "temp": "29°C", + "image": "https://www.bmkg.go.id/asset/img/icon-cuaca/cerah%20berawan-am.png" + }, + { + "city": "Tanjung Selor", + "hour": "17:00 WITA", + "wheather": "Cerah Berawan", + "temp": "27°C", + "image": "https://www.bmkg.go.id/asset/img/icon-cuaca/cerah%20berawan-am.png" + }, + { + "city": "Mataram", + "hour": "17:00 WITA", + "wheather": "Hujan Ringan", + "temp": "29°C", + "image": "https://www.bmkg.go.id/asset/img/icon-cuaca/hujan%20ringan-am.png" + }, + { + "city": "Kupang", + "hour": "17:00 WITA", + "wheather": "Berawan", + "temp": "29°C", + "image": "https://www.bmkg.go.id/asset/img/icon-cuaca/berawan-am.png" + }, + { + "city": "Mamuju", + "hour": "17:00 WITA", + "wheather": "Hujan Ringan", + "temp": "30°C", + "image": "https://www.bmkg.go.id/asset/img/icon-cuaca/hujan%20ringan-am.png" + }, + { + "city": "Makassar", + "hour": "17:00 WITA", + "wheather": "Hujan Ringan", + "temp": "30°C", + "image": "https://www.bmkg.go.id/asset/img/icon-cuaca/hujan%20ringan-am.png" + }, + { + "city": "Palu", + "hour": "17:00 WITA", + "wheather": "Cerah Berawan", + "temp": "27°C", + "image": "https://www.bmkg.go.id/asset/img/icon-cuaca/cerah%20berawan-am.png" + }, + { + "city": "Kendari", + "hour": "17:00 WITA", + "wheather": "Berawan", + "temp": "29°C", + "image": "https://www.bmkg.go.id/asset/img/icon-cuaca/berawan-am.png" + }, + { + "city": "Manado", + "hour": "17:00 WITA", + "wheather": "Cerah Berawan", + "temp": "29°C", + "image": "https://www.bmkg.go.id/asset/img/icon-cuaca/cerah%20berawan-am.png" + }, + { + "city": "Ambon", + "hour": "18:00 WIT", + "wheather": "Cerah Berawan", + "temp": "28°C", + "image": "https://www.bmkg.go.id/asset/img/icon-cuaca/cerah%20berawan-pm.png" + }, + { + "city": "Sofifi", + "hour": "18:00 WIT", + "wheather": "Berawan", + "temp": "30°C", + "image": "https://www.bmkg.go.id/asset/img/icon-cuaca/berawan-pm.png" + }, + { + "city": "Jayapura", + "hour": "18:00 WIT", + "wheather": "Cerah Berawan", + "temp": "28°C", + "image": "https://www.bmkg.go.id/asset/img/icon-cuaca/cerah%20berawan-pm.png" + }, + { + "city": "Manokwari", + "hour": "18:00 WIT", + "wheather": "Cerah Berawan", + "temp": "28°C", + "image": "https://www.bmkg.go.id/asset/img/icon-cuaca/cerah%20berawan-pm.png" + } +] +``` + +```json +{ + "time": "11 Oktober 2021, 10:09:56 WIB", + "magnitude": "4.9", + "depth": "70 km", + "coordinate": "9.03 LS - 122.50 BT", + "location": "Pusat gempa berada diLaut 55 km Tenggara Maumere Sikka", + "felt": "Dirasakan (Skala MMI): II Lembata, II Ende, II Maumere" +} +``` + +## License + +[MIT](https://choosealicense.com/licenses/mit/) + + + + +%prep +%autosetup -n bmkginfo-0.0.7 + +%build +%py3_build + +%install +%py3_install +install -d -m755 %{buildroot}/%{_pkgdocdir} +if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi +if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi +if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi +if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi +pushd %{buildroot} +if [ -d usr/lib ]; then + find usr/lib -type f -printf "\"/%h/%f\"\n" >> filelist.lst +fi +if [ -d usr/lib64 ]; then + find usr/lib64 -type f -printf "\"/%h/%f\"\n" >> filelist.lst +fi +if [ -d usr/bin ]; then + find usr/bin -type f -printf "\"/%h/%f\"\n" >> filelist.lst +fi +if [ -d usr/sbin ]; then + find usr/sbin -type f -printf "\"/%h/%f\"\n" >> filelist.lst +fi +touch doclist.lst +if [ -d usr/share/man ]; then + find usr/share/man -type f -printf "\"/%h/%f.gz\"\n" >> doclist.lst +fi +popd +mv %{buildroot}/filelist.lst . +mv %{buildroot}/doclist.lst . + +%files -n python3-bmkginfo -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Tue Jun 20 2023 Python_Bot <Python_Bot@openeuler.org> - 0.0.7-1 +- Package Spec generated @@ -0,0 +1 @@ +a279b07a84c0f196f23b9e70cf953035 bmkginfo-0.0.7.tar.gz |