Releases: Path-Variable/onvif-cam-poll
Discovery command and installer wizard
Summary
This release adds a new command from the ONVIF standard - the discover all command.
It also adds an installer script using makefile and bash. Finally, all the commands are prefixed with
"onvif-" to avoid conflicts when performing a system-wide install.
Discover all command
The command will find any ONVIF devices on the specified interface and print their addresses to the console.
Makefile installer
A Makefile is provided in the project root.
Simply run
make install
And the script will compile the binaries, install them in /usr/bin
and compile
systemd services using the service templates provided. The user should provide
one .env file per camera they want to operate using the commands.
Command prefix
All commands were renamed to include the onvif-
prefix. This was done to avoid
conflicts with other commands that may be similarly named when performing a
system-wide install.
log message and mandatory parameter fix
Summary
This is a minor fix release for logging templates and parameter constraints.
Log fixes
The cooldown timer log message was changed to use the correct time unit.
The cooldown template was utilized in the motion script.
parameter constraints
The bot token and channel id parameters are now marked as required for scripts that use slack parameters.
The script will to start if they are missing.
Adds new scripts, removes slack webhook
Summary
This release adds two new scripts for operating on ptz presets.
New functions
It is now possible to set a new preset and to command the camera to go to a preset. This feature is added to deal with power outages moving the camera or tampering.
Removed unused params
Slack webhooks are now longer used to notify over slack. A bot token and channel id is sufficient.
Misc code improvements
There was a major refactor. The parameter structs are now composed to stop needles repetition.
Logging has been improved and the log messages are stored as templates.
The master branch was renamed to main to fit with GitHub conventions.
Multi-arch package publish
This release holds no new changes in functionality. The project structure was changed to facilitate releasing of the project binaries for multiple architectures on Github Packages
Upgrades onvif dependency and refactores code to new api
Onvif client library is now at 0.0.9.
As a result, the code of both scripts has been altered to conform to the new API.
Manual XML parsing for the snapshot url is no longer necessarry.
Improves cli arg handling
Introduces a library for reading command line arguments and cleans up the code
Bumps dependency version
Increases the version of the go-posix-time dependency to 1.1.2
The previous version had a bug that would have been active when switching from DST back to standard for time zones that
have DST.
Fixes off by one hour error on set-time
This is a fix release that corrects for an error in the set-time.go script that caused the cameras system time to be set one hour ahead.
It introduces a dependency to go-possix-time for formatting the Posix time zone string and improves the payload for setting system time.
Set time improvements
This is a minor release that makes the set time interval in set-time.go configurable and uses
the Local() function when getting the time to make sure the script is using the server time.
Initial release
This is the initial release of a script pair intended to allow for use of the motion polling service on ONVIF compliant cameras
without the use of a third-party cloud service.
The author deployed his scripts using systemd to restart in case of failure.
The system file is trivial in itself. If there is demand, examples will be posted.
No binaries will be provided as go images are native to the OS where they are compiled and the build process is simple in itself.
Built using Go v1.17
May the source be with you!
Edited 05.07 at 16:20 CEST