Skip to content

Releases: rhizomatics/anpr2mqtt

v1.0.0-beta2

15 Apr 22:13

Choose a tag to compare

v1.0.0-beta2 Pre-release
Pre-release

1.0.0

Known Targets Configuration

  • Restructured from 2 fixed groups ("known" and "dangerous") to a flexible groups structure, so any number of groups can be created, for example "family","postman","delivery","utility"
    • Groups can have an icon,entity_id and priority, targets will inherit these if they don't have their own, or leave empty at group level and populate only on group members
    • Existing config using known or dangerous will be translated at runtime to new structure
  • correction lists of patterns or strings can now be added directly to target
  • auto_match_tolerance now moved to Event config
  • API lookup can be configured at target or group level, defaults to off, since vehicles already known

Target specific sensors in Home Assistant

  • Groups and individual targets can be given an entity_id and a sensor will be created in Home Assistant using MQTT discovery
    • State for the sensor will be timestamp of last sighting, and combined past history will be attributes
    • Any number of vehicles can be combined in a single sensor, so for example see last post vehicle detected, even if several come to the property
  • Targets can now be more than a simple string - currently description and entity_id supported

Time Analysis

  • Previous sightings now have a richer set of analysis, with histogram data by visit hour of day, earliest/latest times

Home Assistant

  • Improved example automation
  • Icon now configurable in the Event config, previously fixed at mdi:car-back

Internals and Fixes

  • Corrected example configurations
  • Refactored internally to a Sighting class and a more complete Target definition, replacing ad hoc dicts

Full Changelog: v0.10.2...v1.0.0-beta2

v0.10.2

14 Apr 09:43

Choose a tag to compare

0.10.2

  • Improve error handling when started without config file
  • Fix healthcheck script use of MQTT env vars

Full Changelog: v0.10.1...v0.10.2

v0.10.1

14 Apr 09:17

Choose a tag to compare

0.10.1

  • Update Home Assistant example to display a history summary, use the new spoken_message feature of Supernotify, and check event_image_url existing
  • Now warns at start up if image_base_url has a trailing slash
  • Always send a history value, defaulting to empty dict, to simplify HA templates
  • Added pypi publishing

What's Changed

Full Changelog: v0.10.0...v0.10.1

v0.10.0

11 Apr 21:57

Choose a tag to compare

0.10.0

  • Auto match plates with potential errors to known plates, using Levenshtein algorithm, and controlled via new auto_match_tolerance setting
  • Historical analysis now provides a count of times vehicle previously seen
    by hour of the day, the earliest and latest time of day ever seen, and if the current visit is within that range

What's Changed

  • Update uv-build requirement from <0.12.0,>=0.9.18 to >=0.11.3,<0.12.0 by @dependabot[bot] in #31

Full Changelog: v0.9.2...v0.10.0

v0.9.2

09 Apr 13:39

Choose a tag to compare

0.9.1

  • Fixes for API Client caching and logging
  • Report % saved on image compression
  • Option to specify a verify_plate to check the DVLA API at startup

Full Changelog: v0.9.0...v0.9.2

v0.9.0

06 Apr 21:50

Choose a tag to compare

0.9.0

  • Replaced the now doubtfully maintained httpx with niquests, and hishel with requests-cache
  • Settings now has configuration for cache_dir and to choose cache_type between FILE or MEMORY
  • Add DVLA lookup to the CLI tools
    • uv run tools dvla_lookup MAG1C --dvla.api_key <my_api_key>

What's Changed

  • [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci[bot] in #24
  • Bump actions/attest-build-provenance from 3 to 4 by @dependabot[bot] in #25
  • Bump docker/login-action from 3.7.0 to 4.0.0 by @dependabot[bot] in #26
  • Bump docker/build-push-action from 6.19.2 to 7.0.0 by @dependabot[bot] in #27
  • Bump docker/metadata-action from 5.10.0 to 6.0.0 by @dependabot[bot] in #28
  • Bump docker/setup-qemu-action from 3.7.0 to 4.0.0 by @dependabot[bot] in #29
  • Update uv-build requirement from <0.11.0,>=0.9.18 to >=0.9.18,<0.12.0 by @dependabot[bot] in #30

Full Changelog: v0.8.0...v0.9.0

v0.8.0

26 Mar 21:07

Choose a tag to compare

0.8.0

  • Autoclear to optionally reset state after period of time
  • Validate all regular expressions at startup

What's Changed

  • Bump docker/build-push-action from 8c1e8f8e5bf845ba3773a14f3967965548a2341e to 10e90e3645eae34f1e60eeb005ba3a3d33f178e8 by @dependabot[bot] in #16
  • Bump astral-sh/ruff-action from 3.5.1 to 3.6.1 by @dependabot[bot] in #15
  • Bump docker/login-action from 3.6.0 to 3.7.0 by @dependabot[bot] in #14
  • [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci[bot] in #13
  • Bump mkdocs-minify-html-plugin from 0.3.9 to 0.3.10 by @dependabot[bot] in #21
  • Bump mkdocs-material from 9.7.4 to 9.7.5 by @dependabot[bot] in #19
  • Bump ruff from 0.15.5 to 0.15.6 by @dependabot[bot] in #20
  • [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci[bot] in #18
  • Bump cairosvg from 2.8.2 to 2.9.0 by @dependabot[bot] in #22

Full Changelog: v0.7.1...v0.8.0

v0.7.1

26 Feb 12:41

Choose a tag to compare

0.7.1

Home Assistant Integration

  • Now subscribes to the HA 'birth' and 'last will' messages to re-publish on HA restart
  • State always published at startup
  • Camera settings can be added, to add area and live_url to the message
  • Camera Entity can now be added, and option to switch this and/or the Image entity creation

Directory Scanning

  • watch_tree can be set to recursively watch all subdirectories below watch_path

MQTT

  • MQTT protocol can now be set up to v5 or down to v3, defaults to v3.11

v0.6.0

10 Jan 23:30

Choose a tag to compare

0.6.0

  • Multiple events now supported, e.g. face detection or line crossing
  • OCR field definitions can be reused across events, or different crop definitions for the same value
    • For example, vehicle_direction could have different bounding boxes, or even values, on different cameras
  • Suggested area provided for Home Assistant Device if configured

Full Changelog: v0.5.0...v0.6.0

v0.5.0

10 Jan 09:50

Choose a tag to compare

0.5.0

  • Home Assistant Device creation optional
  • Simplified OCR coordinates
  • Flexible OCR field capture

Full Changelog: v0.4.1...v0.5.0