Skip to content

Collector API

Local collector API for LoRaWAN tilt monitoring.

Server

URLDescription
http://localhost:8000Local collector default

Admin

Login

http
POST /admin/login

Source: api/admin/routes.py

Request body

FieldTypeRequired
usernamestringyes
passwordstringyes

Responses

Response schema is not declared in the collector route source.

Refresh Access Token

http
POST /admin/refresh

Source: api/admin/routes.py

Responses

Response schema is not declared in the collector route source.

Get Current User

http
GET /admin/me

Source: api/admin/routes.py

Authentication

http
Authorization: Bearer <token>

Responses

Response schema is not declared in the collector route source.

List Users

http
GET /admin/users

Source: api/admin/routes.py

Responses

Response schema is not declared in the collector route source.

Create User

http
POST /admin/users

Source: api/admin/routes.py

Request body

Schema: UserCreateRequest

Responses

Response schema is not declared in the collector route source.

Update User

http
PUT /admin/users/{user_id}

Source: api/admin/routes.py

Parameters

NameInTypeRequired
user_idpathintegeryes

Request body

Schema: UserUpdateRequest

Responses

Response schema is not declared in the collector route source.

Update User Password

http
PUT /admin/users/{user_id}/password

Source: api/admin/routes.py

Parameters

NameInTypeRequired
user_idpathintegeryes

Request body

Schema: UserPasswordRequest

Responses

Response schema is not declared in the collector route source.

Change Password

http
PUT /admin/change-password

Source: api/admin/routes.py

Authentication

http
Authorization: Bearer <token>

Request body

FieldTypeRequired
old_passwordstringyes
new_passwordstringyes

Responses

Response schema is not declared in the collector route source.

Logout

http
POST /admin/logout

Source: api/admin/routes.py

Authentication

http
Authorization: Bearer <token>

Responses

Response schema is not declared in the collector route source.

Ping Admin

http
GET /admin/ping

Source: api/admin/routes.py

Authentication

http
Authorization: Bearer <token>

Responses

Response schema is not declared in the collector route source.

Devices

Get Devices

http
GET /overview

Source: api/devices/routes.py

Authentication

http
Authorization: Bearer <token>

Responses

Response schema is not declared in the collector route source.

Get Device History

http
GET /device/{eui}/history

Source: api/devices/routes.py

Authentication

http
Authorization: Bearer <token>

Parameters

NameInTypeRequired
euipathstringyes
fromqueryinteger | nullno
toqueryinteger | nullno

Responses

Response schema is not declared in the collector route source.

Get Device Gps History

http
GET /device/{eui}/gps/history

Source: api/devices/routes.py

Authentication

http
Authorization: Bearer <token>

Parameters

NameInTypeRequired
euipathstringyes
fromqueryinteger | nullno
toqueryinteger | nullno

Responses

Response schema is not declared in the collector route source.

Get Device Info

http
GET /device/{eui}/info

Source: api/devices/routes.py

Authentication

http
Authorization: Bearer <token>

Parameters

NameInTypeRequired
euipathstringyes

Responses

Response schema is not declared in the collector route source.

Configuration

Get Device Config

http
GET /device/{eui}/config

Source: api/configuration/routes.py

Parameters

NameInTypeRequired
euipathstringyes

Responses

Response schema is not declared in the collector route source.

Update Device Config

http
PUT /device/{eui}/config

Source: api/configuration/routes.py

Parameters

NameInTypeRequired
euipathstringyes

Request body

Schema: object

Responses

Response schema is not declared in the collector route source.

Get Device Calibration

http
GET /device/{eui}/calibration

Source: api/configuration/routes.py

Parameters

NameInTypeRequired
euipathstringyes

Responses

Response schema is not declared in the collector route source.

Set Device Calibration

http
PUT /device/{eui}/calibration

Source: api/configuration/routes.py

Parameters

NameInTypeRequired
euipathstringyes

Request body

Schema: object

Responses

Response schema is not declared in the collector route source.

Reset Device Calibration

http
DELETE /device/{eui}/calibration

Source: api/configuration/routes.py

Parameters

NameInTypeRequired
euipathstringyes

Responses

Response schema is not declared in the collector route source.

Get Device Profile

http
GET /device/{eui}/profile

Source: api/configuration/routes.py

Parameters

NameInTypeRequired
euipathstringyes

Responses

Response schema is not declared in the collector route source.

Set Device Profile

http
PUT /device/{eui}/profile

Source: api/configuration/routes.py

Parameters

NameInTypeRequired
euipathstringyes

Request body

Schema: object

Responses

Response schema is not declared in the collector route source.

Get Device Manual Gps

http
GET /device/{eui}/manual-gps

Source: api/configuration/routes.py

Parameters

NameInTypeRequired
euipathstringyes

Responses

Response schema is not declared in the collector route source.

Set Device Manual Gps

http
PUT /device/{eui}/manual-gps

Source: api/configuration/routes.py

Parameters

NameInTypeRequired
euipathstringyes

Request body

Schema: object

Responses

Response schema is not declared in the collector route source.

Reset Device Manual Gps

http
DELETE /device/{eui}/manual-gps

Source: api/configuration/routes.py

Parameters

NameInTypeRequired
euipathstringyes

Responses

Response schema is not declared in the collector route source.

Get Logs

http
GET /logs

Source: api/configuration/routes.py

Parameters

NameInTypeRequired
startqueryinteger | nullno
endqueryinteger | nullno
topicquerystring | nullno
pagequeryintegeryes
page_sizequeryintegeryes

Responses

Response schema is not declared in the collector route source.

Get Cloud Config

http
GET /config

Source: api/configuration/routes.py

Parameters

NameInTypeRequired
keyquerystring | nullno

Responses

Response schema is not declared in the collector route source.

Get Setup Status

http
GET /setup/status

Source: api/configuration/routes.py

Responses

Response schema is not declared in the collector route source.

Get Setup Config

http
GET /setup/config

Source: api/configuration/routes.py

Responses

Response schema is not declared in the collector route source.

Complete Setup

http
PUT /setup/complete

Source: api/configuration/routes.py

Responses

Response schema is not declared in the collector route source.

Check Setup Mqtt Connection

http
POST /setup/mqtt/check

Source: api/configuration/routes.py

Request body

Schema: object

Responses

Response schema is not declared in the collector route source.

Save Setup Mqtt Config

http
PUT /setup/mqtt

Source: api/configuration/routes.py

Request body

Schema: object

Responses

Response schema is not declared in the collector route source.

Save Setup Mqtt Server

http
PUT /setup/mqtt-server

Source: api/configuration/routes.py

Request body

Schema: object

Responses

Response schema is not declared in the collector route source.

Test Cloud Sync Connection

http
POST /config/cloud-sync/test

Source: api/configuration/routes.py

Request body

Schema: object

Responses

Response schema is not declared in the collector route source.

Set Cloud Config

http
PUT /config

Source: api/configuration/routes.py

Request body

Schema: object

Responses

Response schema is not declared in the collector route source.

Test Mqtt Connection

http
POST /config/mqtt/test

Source: api/configuration/routes.py

Request body

Schema: object

Responses

Response schema is not declared in the collector route source.

Commands

Trigger Gps Acquisition

http
POST /device/{eui}/action/gps-acquisition

Source: api/commands/routes.py

Parameters

NameInTypeRequired
euipathstringyes

Responses

Response schema is not declared in the collector route source.

Trigger Device Info

http
POST /device/{eui}/action/device-info

Source: api/commands/routes.py

Parameters

NameInTypeRequired
euipathstringyes

Responses

Response schema is not declared in the collector route source.

Health

Ping

http
GET /ping

Source: api/health/routes.py

Responses

Response schema is not declared in the collector route source.

Version

http
GET /version

Source: api/health/routes.py

Responses

Response schema is not declared in the collector route source.

Neotech Geotechnical Engineering documentation.