Skip to content

Latest commit

 

History

History
215 lines (154 loc) · 7.12 KB

webhooks.rst

File metadata and controls

215 lines (154 loc) · 7.12 KB

Webhooks

The primary method that Anisca Bird uses to deliver data is through the use of webhooks. A webhook URL will be called via a POST request with the message encoded as a JSON body.

Messages

Your webhook URL should be prepared to receive the following messages:

weight: Bird detected and weighed

This message is sent when a ringed bird is detected on the perch. A detection is valid if the RFID tag was successful read.


Device status is sent twice a day.

offset: Tare weight

This is the tare weight (unladen weight) and is sent every 2 hours.

calibration: Calibration result

This message is sent after the user has performed a calibration.