Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dahua - DAHUA: ERROR: Camera xxx does not seem to support event streaming #38

Open
zamojski opened this issue Sep 30, 2023 · 0 comments

Comments

@zamojski
Copy link

I receive the error DAHUA: ERROR: Camera xxx does not seem to support event streaming from this line: servers/dahua/server.go

I've checked the response of this camera from: http:https://192.168.1.xxx/cgi-bin/eventManager.cgi?action=attach&heartbeat=10&channel=5&codes=[All] and the Content-Type response header looks fine - multipart/x-mixed-replace; boundary=myboundary.

Here's my configuration:

debug: true

dahua:
  enabled: true
  cams:
    xxx:
      address: 192.168.1.xxx
      https: false
      username: admin
      password: xxx
      # IF ALL EVENTS ARE NEEDED - DELETE OR COMMENT FOLLOWING LINE
      #events: VideoMotion,CrossLineDetection,AlarmLocal,VideoLoss,VideoBlind
      events: AlarmLocal,VideoLoss,VideoBlind

mqtt:
  enabled: true
  username: user
  password: "zzz"
  port: 1883
  server: "192.168.1.zzz"
  topicroot: camera-alarms

and the log:

Added Dahua camera:
  name: xxx
  url: http:https://192.168.1.xxx
  username: admin 
  password set: true
STARTING...
CONFIG:
  SERVER: Hisilicon - enabled: true
    port: 15002
  SERVER: Hikvision - enabled: false
    camera count: 0
  SERVER Dahua enabled: true
    camera count: 1
  SERVER: FTP - enabled: false
    port: 21
    files allowed: true
    password set: true
    root path: ./ftp
  BUS: MQTT - enabled: true
    port: 1883
    topicRoot: camera-alarms
    server: 192.168.1.zzz
    username: user
    password set: true
  BUS: Webhooks - enabled: false
    count: 0
Initializing MQTT bus...
MQTT BUS INITIALIZED
STARTED HISILICON SERVER
DAHUA: Adding camera xxx: http:https://192.168.1.xxx
MQTT: CONNECTED TO 192.168.1.zzz
MQTT: Sent message to camera-alarms/alarmserver
DAHUA: USING DIGEST AUTH
DAHUA: Media type is multipart/x-mixed-replace
DAHUA: Read event body: Heartbeat

Please advise what I can do about it...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant