dirkschumacher / blume_messnet_api

Blume Messnet API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

blume_api

An API for the BLUME data of Berlin.

The current version of the API is not deloyed and is just for research purposes.

Usage

This Sinatra application can be started with the following shell command:

$ ruby api.rb

This starts the development server which can be accessed via http://localhost:4567.

API

Here is a list of API paths which can also be found in api.rb:

List of sensor stations

  • As JSON: /api/v1/stations

Sensor data for a specific station

  • As JSON: /api/v1/stations/:station_id
  • As CSV: /api/v1/stations/:station_id/csv

Sensor data for a specific station by year

  • As JSON: /api/v1/stations/:station_id/sensordata/:year
  • As CSV: /api/v1/stations/:station_id/sensordata/:year/csv

Sensor data by year

  • As JSON: /api/v1/sensordata/:year
  • As CSV: /api/v1/sensordata/:year/csv

Most recent sensor data

  • As JSON: /api/v1/recent
  • As CSV: /api/v1/recent/csv

See also

About

Blume Messnet API

License:GNU General Public License v2.0


Languages

Language:Ruby 100.0%