Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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/).

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.