speed-camera icon indicating copy to clipboard operation
speed-camera copied to clipboard

Add a function to send data elsewhere, API, MQTT, etc.

Open UnderpantsGnome opened this issue 1 year ago • 0 comments
trafficstars

This is similar to the userMotionCode functionality, but passes different data.

The user_reporting_code.userReportingCode function is called, passing in a hash of the same data that is being persisted in the database, along with the video_stream, and the filename that was created.

From there the user can do whatever they wish with the data.

user_reporting_code.userReportingCode(reporting_fields, vs, filename)

The sample in user_reporting_code.py can be used to send the data to an external API.

UnderpantsGnome avatar Apr 26 '24 20:04 UnderpantsGnome