Coder Social home page Coder Social logo

Comments (3)

Mincka avatar Mincka commented on September 27, 2024

This issue was also troubleshot here:
Supergiovane/node-red-contrib-hikvision-ultimate#16

The exception is thrown here because the duration eventType is unknown from sensor map.

This is a special event type to notify the beginning and ending of the target moving inside the zone for Intrusion Detection (aka FieldDetection). Its parsing is more complicated since the linked events are in a list:

<DurationList>
  <Duration>
    <relationEvent>fielddetection</relationEvent>
  </Duration>
</DurationList>

Maybe it's useful if you catch up the feed in the middle of an event. The receiver knows there are some kind of events still in progress.

From what I see in the linked issue, it should not be useful for HA since there are already fielddetection events with the states active then inactive. In this case, the easy fix would be to add duration to the sensor map but ignore its processing (return directly in process_stream.

from pyhik.

mezz64 avatar mezz64 commented on September 27, 2024

I'm short on time these days to implement fixes, but can usually make time to review and merge a PR if someone wants to take a stab at it.

from pyhik.

mezz64 avatar mezz64 commented on September 27, 2024

Fixed with PR #79.

from pyhik.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.