Seepark API documentation

GET /api/(version)/openweathermap/city/(cityid)

List all data found for a city

GET /api/(version)/sensor/type/(sensor_type)

Return all data for a specific sensor type

URL parameters: begin=<datetime>, optional, format like “2018-05-19T21:07:53” end=<datetime>, optional, format like “2018-05-19T21:07:53” mode=<full|consolidated>, optional. return all rows (default) or with lower resolution (for charts) format=<default|c3>, optional. return result as returned by sqlalchemy (default) or formatted for c3.js

GET /api/(version)/sensor/id/(sensor_id)

Return all data for a specific sensor

URL parameters: begin=<datetime>, optional, format like “2018-05-19T21:07:53” end=<datetime>, optional, format like “2018-05-19T21:07:53” mode=<full|consolidated>, optional. return all rows (default) or with lower resolution (for charts) format=<default|c3>, optional. return result as returned by sqlalchemy (default) or formatted for c3.js

GET /report/(int: year)-(int: month)

Report for given year and month

GET /api/(version)/openweathermap/cities

List all city IDs found in the database

GET /api/(version)/sensors/

List all sensors found in the database

Indices and tables