mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-23 07:46:05 +02:00
Use detection instead of file
https://github.com/alexbelgium/hassio-addons/issues/1706
This commit is contained in:
@@ -51,8 +51,8 @@ def get_bird_code(scientific_name):
|
|||||||
|
|
||||||
def automatic_mqtt_publish(file, detection, path):
|
def automatic_mqtt_publish(file, detection, path):
|
||||||
bird = {}
|
bird = {}
|
||||||
bird['Date'] = file.file_date
|
bird['Date'] = detection.date
|
||||||
bird['Time'] = file.start_time
|
bird['Time'] = detection.time
|
||||||
bird['ScientificName'] = detection.scientific_name.replace('_', ' ')
|
bird['ScientificName'] = detection.scientific_name.replace('_', ' ')
|
||||||
bird['CommonName'] = detection.common_name
|
bird['CommonName'] = detection.common_name
|
||||||
bird['Confidence'] = detection.confidence
|
bird['Confidence'] = detection.confidence
|
||||||
|
|||||||
Reference in New Issue
Block a user