A go library to simplify configuration of events such as record video when motion is detected. The library only targets Axis Communication cameras.
var device = Device{
Address: address,
Username: username,
Password: password,
}
// Record video to the cameras sd-card when motion is detected.
err := NewMotionDetectionHandler("yourname", true).Record().Video().SdCard().ExecuteOn(context.TODO(), device)
// and/or
// Send a http get request when motion is detected
err := NewMotionDetectionHandler("yourname", true).HttpNotification().Notify("testing", "source=livingroom").HTTP("http://192.168.1.106", "", "", "", "", "", "", "").ExecuteOn(context.TODO(), device)
TODO
The library support cameras with the following characteristics:
- Property:
Properties.API.HTTP.Version=3
- Firmware: 5.50 and later