Skip to content

Files

Latest commit

 

History

History
21 lines (16 loc) · 724 Bytes

README.md

File metadata and controls

21 lines (16 loc) · 724 Bytes

BeeLogger API Documentation

[GET] /api/data/get

Params: from, to

This route accepts two parameters. 'from' defines where the returned data is supposed to start and 'to' where it's supposed to end.

A call to this route is formated like this:

/api/data/get/?from=day-month-year&to=day-month-year

Example:

/api/data/get/?from=03-08-2004&to=23-01-2020


[GET] /api/data/insert

Params: token, t, w, h

This route allows the hardware to post the data to the server so that it can save it in the corresponding MySQL database.

  • token: Value defined as 'insert_token' in config.py
  • t: The temperature
  • w: The weight
  • h: The humidity