Code Monkey home page Code Monkey logo

Comments (5)

berfenger avatar berfenger commented on July 29, 2024

Hi, thanks for your request.
The first thing we need to know is whether the event is reported through ONVIF.

Please make sure you have the onvif module set in config, and try the following.

On docker-compose.yml add this environment parameter CAM2MQTT_OPTS:

environment:
  # this will be the camera timezone when the camera type is updated by reolink module (reolink.sync_datetime = true)
  - TZ=Europe/Paris
  - CAM2MQTT_OPTS="-Dlogback.configurationFile=logback-debug.xml"

Then run cam2mqtt, press the bell button, and post the logs.
You can view the logs by running $ docker-compose logs.

Thank you.

from cam2mqtt.

jh17 avatar jh17 commented on July 29, 2024

Hi, I have some logs for you. I hope, that this will help!

`
[TRACE] 2023-01-13 15:41:50,515 akka://cam2mqtt/user/cameraman/cam_hlglocke/mod_onvif/subscription - pulled 0 messages
[TRACE] 2023-01-13 15:41:50,624 akka://cam2mqtt/user/cameraman/cam_hlglocke/mod_onvif/subscription - subscription message:
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://www.w3.org/2003/05/soap-envelope" xmlns:SOAP-ENC="http://www.w3.org/2003/05/soap-encoding" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wsdd="http://schemas.xmlsoap.org/ws/2005/04/discovery" xmlns:xop="http://www.w3.org/2004/08/xop/include" xmlns:chan="http://schemas.microsoft.com/ws/2005/02/duplex" xmlns:wsa5="http://www.w3.org/2005/08/addressing" xmlns:c14n="http://www.w3.org/2001/10/xml-exc-c14n#" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:saml1="urn:oasis:names:tc:SAML:1.0:assertion" xmlns:saml2="urn:oasis:names:tc:SAML:2.0:assertion" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:xenc="http://www.w3.org/2001/04/xmlenc#" xmlns:wsc="http://docs.oasis-open.org/ws-sx/ws-secureconversation/200512" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:tt="http://www.onvif.org/ver10/schema" xmlns:wsrfbf="http://docs.oasis-open.org/wsrf/bf-2" xmlns:wstop="http://docs.oasis-open.org/wsn/t-1" xmlns:wsrfr="http://docs.oasis-open.org/wsrf/r-2" xmlns:ns1="http://www.onvif.org/ver20/media/wsdl" xmlns:tdn="http://www.onvif.org/ver10/network/wsdl" xmlns:tds="http://www.onvif.org/ver10/device/wsdl" xmlns:tev="http://www.onvif.org/ver10/events/wsdl" xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2" xmlns:timg="http://www.onvif.org/ver20/imaging/wsdl" xmlns:tmd="http://www.onvif.org/ver10/deviceIO/wsdl" xmlns:tptz="http://www.onvif.org/ver20/ptz/wsdl" xmlns:trc="http://www.onvif.org/ver10/recording/wsdl" xmlns:trp="http://www.onvif.org/ver10/replay/wsdl" xmlns:trt="http://www.onvif.org/ver10/media/wsdl" xmlns:trv="http://www.onvif.org/ver10/receiver/wsdl" xmlns:tse="http://www.onvif.org/ver10/search/wsdl" xmlns:ter="http://www.onvif.org/ver10/error" xmlns:tns1="http://www.onvif.org/ver10/topics" xmlns:tad="http://www.onvif.org/ver20/analytics/wsdl">SOAP-ENV:Header<wsa5:To SOAP-ENV:mustUnderstand="1">http://192.168.1.36:8000/onvif/PullSubManager?Idx=484901764</wsa5:To><wsa5:Action SOAP-ENV:mustUnderstand="1">http://www.onvif.org/ver10/events/wsdl/PullPointSubscription/PullMessagesResponse</wsa5:Action>wsse:Security<wsse:UsernameToken wsu:Id="UsernameToken-7c94af7d-ce0e-465f-a367-5c5ea5410c3b">wsse:Usernameadmin</wsse:Username><wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordDigest">o7idFFEGOK8M+es/gCorYWkaVUU=</wsse:Password><wsse:Nonce EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary">ODg1OGMyMTEtNzNhOS00NmUyLTk5YWMtZTUwN2NhZGJhMGRi</wsse:Nonce>wsu:Created2023-01-13T15:41:50.000+0000</wsu:Created></wsse:UsernameToken></wsse:Security></SOAP-ENV:Header>SOAP-ENV:Bodytev:PullMessagesResponsetev:CurrentTime2023-01-13T15:41:51Z</tev:CurrentTime>tev:TerminationTime2023-01-13T15:42:49Z</tev:TerminationTime>wsnt:NotificationMessage<wsnt:Topic Dialect="http://www.onvif.org/ver10/tev/topicExpression/ConcreteSet">tns1:RuleEngine/MyRuleDetector/Visitor</wsnt:Topic>wsnt:Message<tt:Message UtcTime="2023-01-11T16:12:24Z" PropertyOperation="Initialized">tt:Source<tt:SimpleItem Name="Source" Value="000" /></tt:Source>tt:Data<tt:SimpleItem Name="State" Value="false" /></tt:Data></tt:Message></wsnt:Message></wsnt:NotificationMessage></tev:PullMessagesResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>

[TRACE] 2023-01-13 15:48:12,573 akka://cam2mqtt/user/cameraman/cam_hlglocke/mod_onvif/subscription - pulled 0 messages
[TRACE] 2023-01-13 15:48:12,665 akka://cam2mqtt/user/cameraman/cam_hlglocke/mod_onvif/subscription - subscription message:
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://www.w3.org/2003/05/soap-envelope" xmlns:SOAP-ENC="http://www.w3.org/2003/05/soap-encoding" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wsdd="http://schemas.xmlsoap.org/ws/2005/04/discovery" xmlns:xop="http://www.w3.org/2004/08/xop/include" xmlns:chan="http://schemas.microsoft.com/ws/2005/02/duplex" xmlns:wsa5="http://www.w3.org/2005/08/addressing" xmlns:c14n="http://www.w3.org/2001/10/xml-exc-c14n#" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:saml1="urn:oasis:names:tc:SAML:1.0:assertion" xmlns:saml2="urn:oasis:names:tc:SAML:2.0:assertion" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:xenc="http://www.w3.org/2001/04/xmlenc#" xmlns:wsc="http://docs.oasis-open.org/ws-sx/ws-secureconversation/200512" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:tt="http://www.onvif.org/ver10/schema" xmlns:wsrfbf="http://docs.oasis-open.org/wsrf/bf-2" xmlns:wstop="http://docs.oasis-open.org/wsn/t-1" xmlns:wsrfr="http://docs.oasis-open.org/wsrf/r-2" xmlns:ns1="http://www.onvif.org/ver20/media/wsdl" xmlns:tdn="http://www.onvif.org/ver10/network/wsdl" xmlns:tds="http://www.onvif.org/ver10/device/wsdl" xmlns:tev="http://www.onvif.org/ver10/events/wsdl" xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2" xmlns:timg="http://www.onvif.org/ver20/imaging/wsdl" xmlns:tmd="http://www.onvif.org/ver10/deviceIO/wsdl" xmlns:tptz="http://www.onvif.org/ver20/ptz/wsdl" xmlns:trc="http://www.onvif.org/ver10/recording/wsdl" xmlns:trp="http://www.onvif.org/ver10/replay/wsdl" xmlns:trt="http://www.onvif.org/ver10/media/wsdl" xmlns:trv="http://www.onvif.org/ver10/receiver/wsdl" xmlns:tse="http://www.onvif.org/ver10/search/wsdl" xmlns:ter="http://www.onvif.org/ver10/error" xmlns:tns1="http://www.onvif.org/ver10/topics" xmlns:tad="http://www.onvif.org/ver20/analytics/wsdl">SOAP-ENV:Header<wsa5:To SOAP-ENV:mustUnderstand="1">http://192.168.1.36:8000/onvif/PullSubManager?Idx=485284623</wsa5:To><wsa5:Action SOAP-ENV:mustUnderstand="1">http://www.onvif.org/ver10/events/wsdl/PullPointSubscription/PullMessagesResponse</wsa5:Action>wsse:Security<wsse:UsernameToken wsu:Id="UsernameToken-d5fe44b0-ef3e-479c-9ef2-76fcb4f5ef9a">wsse:Usernameadmin</wsse:Username><wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordDigest">DmfNcoM+HJSTcRYGip9nN01RBnA=</wsse:Password><wsse:Nonce EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary">NDg1ZGVlZjEtNTAzZS00ZDRkLTg5NWQtMzRmNzdkNzZlYmU4</wsse:Nonce>wsu:Created2023-01-13T15:48:12.000+0000</wsu:Created></wsse:UsernameToken></wsse:Security></SOAP-ENV:Header>SOAP-ENV:Bodytev:PullMessagesResponsetev:CurrentTime2023-01-13T15:48:13Z</tev:CurrentTime>tev:TerminationTime2023-01-13T15:49:12Z</tev:TerminationTime>wsnt:NotificationMessage<wsnt:Topic Dialect="http://www.onvif.org/ver10/tev/topicExpression/ConcreteSet">tns1:RuleEngine/MyRuleDetector/Visitor</wsnt:Topic>wsnt:Message<tt:Message UtcTime="2023-01-11T16:12:24Z" PropertyOperation="Initialized">tt:Source<tt:SimpleItem Name="Source" Value="000" /></tt:Source>tt:Data<tt:SimpleItem Name="State" Value="false" /></tt:Data></tt:Message></wsnt:Message></wsnt:NotificationMessage></tev:PullMessagesResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>

[TRACE] 2023-01-13 15:53:46,540 akka://cam2mqtt/user/cameraman/cam_hlglocke/mod_onvif/subscription - pulled 1 messages
[TRACE] 2023-01-13 15:53:50,612 akka://cam2mqtt/user/cameraman/cam_hlglocke/mod_onvif/subscription - subscription message:
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://www.w3.org/2003/05/soap-envelope" xmlns:SOAP-ENC="http://www.w3.org/2003/05/soap-encoding" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wsdd="http://schemas.xmlsoap.org/ws/2005/04/discovery" xmlns:xop="http://www.w3.org/2004/08/xop/include" xmlns:chan="http://schemas.microsoft.com/ws/2005/02/duplex" xmlns:wsa5="http://www.w3.org/2005/08/addressing" xmlns:c14n="http://www.w3.org/2001/10/xml-exc-c14n#" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:saml1="urn:oasis:names:tc:SAML:1.0:assertion" xmlns:saml2="urn:oasis:names:tc:SAML:2.0:assertion" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:xenc="http://www.w3.org/2001/04/xmlenc#" xmlns:wsc="http://docs.oasis-open.org/ws-sx/ws-secureconversation/200512" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:tt="http://www.onvif.org/ver10/schema" xmlns:wsrfbf="http://docs.oasis-open.org/wsrf/bf-2" xmlns:wstop="http://docs.oasis-open.org/wsn/t-1" xmlns:wsrfr="http://docs.oasis-open.org/wsrf/r-2" xmlns:ns1="http://www.onvif.org/ver20/media/wsdl" xmlns:tdn="http://www.onvif.org/ver10/network/wsdl" xmlns:tds="http://www.onvif.org/ver10/device/wsdl" xmlns:tev="http://www.onvif.org/ver10/events/wsdl" xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2" xmlns:timg="http://www.onvif.org/ver20/imaging/wsdl" xmlns:tmd="http://www.onvif.org/ver10/deviceIO/wsdl" xmlns:tptz="http://www.onvif.org/ver20/ptz/wsdl" xmlns:trc="http://www.onvif.org/ver10/recording/wsdl" xmlns:trp="http://www.onvif.org/ver10/replay/wsdl" xmlns:trt="http://www.onvif.org/ver10/media/wsdl" xmlns:trv="http://www.onvif.org/ver10/receiver/wsdl" xmlns:tse="http://www.onvif.org/ver10/search/wsdl" xmlns:ter="http://www.onvif.org/ver10/error" xmlns:tns1="http://www.onvif.org/ver10/topics" xmlns:tad="http://www.onvif.org/ver20/analytics/wsdl">SOAP-ENV:Header<wsa5:To SOAP-ENV:mustUnderstand="1">http://192.168.1.36:8000/onvif/PullSubManager?Idx=485284623</wsa5:To><wsa5:Action SOAP-ENV:mustUnderstand="1">http://www.onvif.org/ver10/events/wsdl/PullPointSubscription/PullMessagesResponse</wsa5:Action>wsse:Security<wsse:UsernameToken wsu:Id="UsernameToken-8160837a-438a-43cf-8ae4-551886c614d8">wsse:Usernameadmin</wsse:Username><wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordDigest">m69X/cnbEkNXUYocdquWqtsxcgI=</wsse:Password><wsse:Nonce EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary">MzM5YTc2ODYtYzEyOC00NjBiLTk3YTItZTRhNzU0MDQwZTA1</wsse:Nonce>wsu:Created2023-01-13T15:53:46.000+0000</wsu:Created></wsse:UsernameToken></wsse:Security></SOAP-ENV:Header>SOAP-ENV:Bodytev:PullMessagesResponsetev:CurrentTime2023-01-13T15:53:47Z</tev:CurrentTime>tev:TerminationTime2023-01-13T15:54:12Z</tev:TerminationTime>wsnt:NotificationMessage<wsnt:Topic Dialect="http://www.onvif.org/ver10/tev/topicExpression/ConcreteSet">tns1:RuleEngine/MyRuleDetector/Visitor</wsnt:Topic>wsnt:Message<tt:Message UtcTime="2023-01-13T15:53:50Z" PropertyOperation="Changed">tt:Source<tt:SimpleItem Name="Source" Value="000" /></tt:Source>tt:Data<tt:SimpleItem Name="State" Value="true" /></tt:Data></tt:Message></wsnt:Message></wsnt:NotificationMessage></tev:PullMessagesResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>

[TRACE] 2023-01-13 15:54:02,797 akka://cam2mqtt/user/cameraman/cam_hlglocke/mod_onvif/subscription - pulled 1 messages
[TRACE] 2023-01-13 15:54:05,412 akka://cam2mqtt/user/cameraman/cam_hlglocke/mod_onvif/subscription - subscription message:
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://www.w3.org/2003/05/soap-envelope" xmlns:SOAP-ENC="http://www.w3.org/2003/05/soap-encoding" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wsdd="http://schemas.xmlsoap.org/ws/2005/04/discovery" xmlns:xop="http://www.w3.org/2004/08/xop/include" xmlns:chan="http://schemas.microsoft.com/ws/2005/02/duplex" xmlns:wsa5="http://www.w3.org/2005/08/addressing" xmlns:c14n="http://www.w3.org/2001/10/xml-exc-c14n#" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:saml1="urn:oasis:names:tc:SAML:1.0:assertion" xmlns:saml2="urn:oasis:names:tc:SAML:2.0:assertion" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:xenc="http://www.w3.org/2001/04/xmlenc#" xmlns:wsc="http://docs.oasis-open.org/ws-sx/ws-secureconversation/200512" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:tt="http://www.onvif.org/ver10/schema" xmlns:wsrfbf="http://docs.oasis-open.org/wsrf/bf-2" xmlns:wstop="http://docs.oasis-open.org/wsn/t-1" xmlns:wsrfr="http://docs.oasis-open.org/wsrf/r-2" xmlns:ns1="http://www.onvif.org/ver20/media/wsdl" xmlns:tdn="http://www.onvif.org/ver10/network/wsdl" xmlns:tds="http://www.onvif.org/ver10/device/wsdl" xmlns:tev="http://www.onvif.org/ver10/events/wsdl" xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2" xmlns:timg="http://www.onvif.org/ver20/imaging/wsdl" xmlns:tmd="http://www.onvif.org/ver10/deviceIO/wsdl" xmlns:tptz="http://www.onvif.org/ver20/ptz/wsdl" xmlns:trc="http://www.onvif.org/ver10/recording/wsdl" xmlns:trp="http://www.onvif.org/ver10/replay/wsdl" xmlns:trt="http://www.onvif.org/ver10/media/wsdl" xmlns:trv="http://www.onvif.org/ver10/receiver/wsdl" xmlns:tse="http://www.onvif.org/ver10/search/wsdl" xmlns:ter="http://www.onvif.org/ver10/error" xmlns:tns1="http://www.onvif.org/ver10/topics" xmlns:tad="http://www.onvif.org/ver20/analytics/wsdl">SOAP-ENV:Header<wsa5:To SOAP-ENV:mustUnderstand="1">http://192.168.1.36:8000/onvif/PullSubManager?Idx=485284623</wsa5:To><wsa5:Action SOAP-ENV:mustUnderstand="1">http://www.onvif.org/ver10/events/wsdl/PullPointSubscription/PullMessagesResponse</wsa5:Action>wsse:Security<wsse:UsernameToken wsu:Id="UsernameToken-c32bec63-168a-4862-89cf-9213e4b3356a">wsse:Usernameadmin</wsse:Username><wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordDigest">pt98rUp9Nr982hfo9qXPKkp0ezo=</wsse:Password><wsse:Nonce EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary">ZTBmMTc3ZmEtZmUwZi00NGIwLWI2NGYtZGIyZjc1ZWIwZjM4</wsse:Nonce>wsu:Created2023-01-13T15:54:02.000+0000</wsu:Created></wsse:UsernameToken></wsse:Security></SOAP-ENV:Header>SOAP-ENV:Bodytev:PullMessagesResponsetev:CurrentTime2023-01-13T15:54:03Z</tev:CurrentTime>tev:TerminationTime2023-01-13T15:55:02Z</tev:TerminationTime>wsnt:NotificationMessage<wsnt:Topic Dialect="http://www.onvif.org/ver10/tev/topicExpression/ConcreteSet">tns1:RuleEngine/MyRuleDetector/Visitor</wsnt:Topic>wsnt:Message<tt:Message UtcTime="2023-01-13T15:54:05Z" PropertyOperation="Changed">tt:Source<tt:SimpleItem Name="Source" Value="000" /></tt:Source>tt:Data<tt:SimpleItem Name="State" Value="false" /></tt:Data></tt:Message></wsnt:Message></wsnt:NotificationMessage></tev:PullMessagesResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>

`

from cam2mqtt.

berfenger avatar berfenger commented on July 29, 2024

Thanks
Good news, the event is reported through onvif on this topic: RuleEngine/MyRuleDetector/Visitor.
I hope to have some time to implement it in the next few days.

from cam2mqtt.

berfenger avatar berfenger commented on July 29, 2024

Hi, this feature is already implemented on the edge branch.

You can test then using the edge docker image: acasal/cam2mqtt:edge

The MQTT events are documented on the README.
Please give it a try and let me know your results.

from cam2mqtt.

jh17 avatar jh17 commented on July 29, 2024

Hi, it works like a charm! Thank you very much for your effort!!
Johannes

from cam2mqtt.

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.