Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ekaputra07/py-bmkg
A Python wrapper for accessing earth quake, climate data of Indonesia based on BMKG (http://bmkg.go.id/).
https://github.com/ekaputra07/py-bmkg
Last synced: 5 days ago
JSON representation
A Python wrapper for accessing earth quake, climate data of Indonesia based on BMKG (http://bmkg.go.id/).
- Host: GitHub
- URL: https://github.com/ekaputra07/py-bmkg
- Owner: ekaputra07
- License: bsd-3-clause
- Created: 2013-07-06T14:17:52.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2013-07-06T15:02:11.000Z (over 11 years ago)
- Last Synced: 2023-03-25T21:08:20.280Z (almost 2 years ago)
- Language: Python
- Homepage:
- Size: 113 KB
- Stars: 2
- Watchers: 2
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
py-bmkg
=======A Python wrapper for accessing earth quake, climate data of Indonesia based on BMKG (http://bmkg.go.id/).
This is new project, new wrapper will be added gradually. For now it includes:
1. **Earth Quake data fetcher.**
Earth quake data fetcher, fetch latest (single or multi) of earth quakes that officially recorded by BMKG.
Usage example:
from bmkg.quake import Quake
q = Quake()
# All recently detected Quakes
print '--------------- Recently Earth Quake ------------------'
quakes = q.latest_quakes()
print quakes
# Latest Quakes (single)
print '--------------- Latest Earth Quake ------------------'
quakes = q.latest_quakes(single=True)
print quakes
This module reads data from [http://data.bmkg.go.id/gempaterkini.xml](http://data.bmkg.go.id/gempaterkini.xml) or [http://data.bmkg.go.id/en_gempaterkini.xml](http://data.bmkg.go.id/en_gempaterkini.xml) depends on **lang** parameter that you specified when you call **latest_quakes**.
I hope I can add more and more tools soon.