Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
cedricve committed Jan 3, 2024
2 parents 9d99065 + 9c97422 commit e74d2aa
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 39 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ This repository contains everything you'll need to know about our core product,
- Simplified and modern user interface.
- Multi architecture (ARMv7, ARMv8, amd64, etc).).
- Multi stream, for example recording in H265, live streaming and motion detection in H264.
- Multi camera support: IP Cameras (H264 and H265), USB cameras and Raspberry Pi Cameras [through a RTSP proxy](https://github.com/kerberos-io/camera-to-rtsp
- Multi camera support: IP Cameras (H264 and H265), USB cameras and Raspberry Pi Cameras [through a RTSP proxy](https://github.com/kerberos-io/camera-to-rtsp).
- Single camera per instance (e.g. one container per camera).
- Low resolution streaming through MQTT and high resolution streaming through WebRTC (only supports H264/PCM).
- Backchannel audio from Kerberos Hub to IP camera (requires PCM ULAW codec)
Expand Down
4 changes: 2 additions & 2 deletions deployments/binary/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Kerberos Agents are now also shipped as static binaries. Within the Docker image

You can run the binary as following on port `8080`:

main run cameraname 8080
main -action=run -port=80

## Systemd

Expand All @@ -18,7 +18,7 @@ When running on a Linux OS you might consider to auto-start the Kerberos Agent u
[Unit]
Wants=network.target
[Service]
ExecStart=/home/pi/agent/main run camera 80
ExecStart=/home/pi/agent/main -action=run -port=80
WorkingDirectory=/home/pi/agent/
[Install]
WantedBy=multi-user.target
Expand Down
2 changes: 1 addition & 1 deletion machinery/src/cloud/Cloud.go
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ loop:
onvifPresetsList = []byte("[]")
}
} else {
log.Log.Error("cloud.HandleHeartBeat(): error while getting PTZ configurations: " + err.Error())
log.Log.Debug("cloud.HandleHeartBeat(): error while getting PTZ configurations: " + err.Error())
onvifPresetsList = []byte("[]")
}

Expand Down
17 changes: 11 additions & 6 deletions machinery/src/onvif/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -312,12 +312,17 @@ func GetPositionFromDevice(configuration models.Configuration) (xsdonvif.PTZVect
// Get the PTZ configurations from the device
position, err := GetPosition(device, token)
if err == nil {
// float to string
x := strconv.FormatFloat(position.PanTilt.X, 'f', 6, 64)
y := strconv.FormatFloat(position.PanTilt.Y, 'f', 6, 64)
z := strconv.FormatFloat(position.Zoom.X, 'f', 6, 64)
log.Log.Info("onvif.GetPositionFromDevice(): successfully got position (" + x + ", " + y + ", " + z + ")")
return position, err
if position.PanTilt != nil && position.Zoom != nil {
// float to string
x := strconv.FormatFloat(position.PanTilt.X, 'f', 6, 64)
y := strconv.FormatFloat(position.PanTilt.Y, 'f', 6, 64)
z := strconv.FormatFloat(position.Zoom.X, 'f', 6, 64)
log.Log.Info("onvif.GetPositionFromDevice(): successfully got position (" + x + ", " + y + ", " + z + ")")
return position, err
} else {
log.Log.Debug("onvif.GetPositionFromDevice(): position is nil")
return position, errors.New("position is nil")
}
} else {
log.Log.Debug("onvif.GetPositionFromDevice(): " + err.Error())
return position, err
Expand Down
6 changes: 0 additions & 6 deletions snap/hooks/configure

This file was deleted.

23 changes: 0 additions & 23 deletions snapcraft.yaml

This file was deleted.

0 comments on commit e74d2aa

Please sign in to comment.