matt1
(Skinah)
October 26, 2022, 8:26am
2797
kobold:
Although the binding says it stops checking this feature, each change posted to the camera results in the same error.
Is there a way to disable this query to the camera?
Does your camera have terminals for connecting to an alarm? My guess is it does not have this feature. See here for a fix which once the PR builds the link to a JAR can be used to test it out.
EDIT: It could also possible be caused by using a user/pass combination that does not have rights to access this feature of the API. There is usually media/user and admin rights so that could be another reason for it due to the 403 Forbidden http code. Either way this PR should help you out.
[ipcamera] Fix multiple WARNs when HIK camera does not support alarm inputs by Skinah · Pull Request #13606 · openhab/openhab-addons (github.com)
kobold
( kobold)
October 26, 2022, 9:02am
2798
Thank you, your jar works perfectly.
Is or will there be a way to tell the binding to query read the state of enableMotionAlarm from the cameras e.g. every 30 seconds? With that I would be sure that camera and openhab are automatically synced
jwiseman
(Mr. Wiseman (OH 4.2 Snapshot on Pi4))
October 26, 2022, 11:54am
2799
matt1
(Skinah)
October 26, 2022, 12:26pm
2800
I don’t know and I do not have an account. Sometimes the links work and other times it comes up with the login page for me. Try hitting the refresh on the browser and it may start the filedownload. The server is owned and or managed by the openHAB foundation so you may be best asking in a new thread.
jwiseman
(Mr. Wiseman (OH 4.2 Snapshot on Pi4))
October 26, 2022, 6:23pm
2801
Can you post this build on your server?
http://www.pcmus.com/openhab/IpCameraBinding/
Not able to get to the jFrog openHAB site, tried everything even creating an account on jFrog.
Best, Jay
Python
(Chris)
October 27, 2022, 2:04pm
2802
matt1:
Does the actual raw log file change, or is it only the viewing of the file through frontail for example that gets upset?
Have you tried a different web browser?
The actual log file events.log changes, if i try to grep it it says the file is binary and i need to use the -a flag.
Haven’t tried a different browser but the same content (binary garbled text) is present in the logs and browser.
Thanks! I will play around with this more as i was unsuccessful to get it working. I understand what you pasted pertains to OH2.x and in OH3.x it’s configured in /var/lib/openhab/etc/log4j2.xml
I tried multiple different soutions (Link1 , Link2 ) to block any line containing: “EventNotificationAlert” but it kept appearing. Maybe because there are linebreaks in the changed event and its not a single line?
matt1
(Skinah)
October 29, 2022, 5:05am
2803
The basic flow is as follows:
A binding wants to log something.
org.slf4j.Logger
writes the log to the file.
Your using frontail? to read the log file and create html.
Your browser displays it.
If we assume that your drive is not corrupted as a user said they have seen it before do that, then my guess is it may be a bug in the sl4j library that creates the file.
This is the problem with not creating your own new thread, I am not aware of any issues in sl4j and would not know if there were, others are better informed so you need to create a new thread. It may be that openHAB needs to update to a newer version of sl4j logger to fix something, you may have corruption, or the binding may be putting in a string of text that changes the formatting/language or who knows what that is a feature of sl4j. I doubt very much that the last one is the case.
As for filtering in OH3, please search the forum and then create your own thread showing what you have tried and asking how it is done. Once again I am not an expert and it wont get seen by those that are unless you create a thread in the right place of the forum. I would try to filter using
log4j2.appender.event.filter.myfilter1.regex = .*CAMERA_FrontYard_LastEventData.*
or for multiple cameras perhaps
log4j2.appender.event.filter.myfilter1.regex = .*LastEventData.*
I have not done this in a long time and if it is now in a new file in OH3 that is one reason to ask where people that are doing it can reply.
matt1
(Skinah)
October 29, 2022, 5:22am
2804
I would prefer not to as I would prefer to encourage people to never download and use JAR files from an unknown source. You never know when someone’s forum account can get hacked, so even when you know/trust the person it should be avoided. The changes got merged, so they are now in the snapshot builds and will be in the next Milestone a few weeks away. The KAR that all addons can be downloaded in, can be opened up in any zip program and browsed to grab out a single JAR file.
Here is the Jenkins link for the snapshot build
Artifacts of openHAB-Addons #871 : /bundles/org.openhab.binding.ipcamera/target [Jenkins]
This is what I love about openHAB, you can completely mix and match together parts to work around a bug instantly. No need to move away from your core that is running smoothly, you can just dump in the 1 binding that needs a change.
@kobold
kobold:
Thank you, your jar works perfectly.
Is or will there be a way to tell the binding to query read the state of enableMotionAlarm from the cameras e.g. every 30 seconds? With that I would be sure that camera and openhab are automatically synced
You’re welcome. You can already do that by sending the REFRESH command to the channel you want to be checked and updated. Use a cron rule to say run every 30 seconds and send the REFRESH to that channel. You can see which channels support this here and which URL is used to check for issues if it does not work on your camera:
openhab-addons/HikvisionHandler.java at main · openhab/openhab-addons (github.com)
SHUred
(SHUred)
November 8, 2022, 7:46pm
2805
Hi,
i hope posting my problem here is the right way to do
(Thats what im guessing reading the information on the binding page)
Im owning two H.VIEW HV-E800A
s with Firmware IPCAM_V4.04.97.220808
Using IP-Camera Binding with openHAB 3.4.0.M4
Configured My MainCam like this:
UID: ipcamera:onvif:b6aa2f79b4
label: ONVIF IP Camera Front Door
thingTypeUID: ipcamera:onvif
configuration:
mjpegOptions: -q:v 5 -r 2 -vf scale=640:-2 -update 1
ipAddress: 192.168.178.120
updateImageWhen: "0"
gifPreroll: 0
onvifPort: 80
alarmInputUrl: http://192.168.178.120:2006/event
ffmpegLocation: /usr/bin/ffmpeg
ipWhitelist: DISABLE
mp4OutOptions: -c:v copy -c:a copy
pollTime: 1000
password: SECRET
port: 80
snapshotUrl: http://192.168.178.120/action/snap?cam=0&user=SECRET&pwd=SECRET
snapshotOptions: -an -vsync vfr -q:v 2 -update 1
ptzContinuous: false
onvifMediaProfile: 0
ffmpegInput: " rtsp://192.168.178.120:554/live/main"
gifOutOptions: -r 2 -filter_complex
scale=-2:360:flags=lanczos,setpts=0.5*PTS,split[o1][o2];[o1]palettegen[p];[o2]fifo[o3];[o3][p]paletteuse
hlsOutOptions: -strict -2 -f lavfi -i aevalsrc=0 -acodec aac -vcodec copy
-hls_flags delete_segments -hls_time 2 -hls_list_size 4
username: SECRET
ONVIF
is activated and Ports are:
http: 80
https: 443
rtsp: 554
Service: 6000
rtmp: 1935
RTSP
authentication is off
My Problem is now, that i would like to use the alarm channels to trigger rules in OH
The items connected to the different channels of the ONVIF Cameras stay NULL
I dont know much about ONVIF or this IP Cam Stuff in general
Down below a log for the binding after i disabled both cameras and enabled only the main-camera
2022-11-08 20:26:53.739 [DEBUG] [amera.internal.onvif.OnvifConnection] - Connecting 192.168.178.120 to ONVIF
2022-11-08 20:26:53.739 [TRACE] [amera.internal.onvif.OnvifConnection] - Sending ONVIF request:GetSystemDateAndTime
2022-11-08 20:26:53.762 [TRACE] [amera.internal.onvif.OnvifConnection] - Onvif reply is:<?xml version="1.0" encoding="UTF-8"?>
<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:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:wsa5="http://www.w3.org/2005/08/addressing" xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2" xmlns:xop="http://www.w3.org/2004/08/xop/include" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:tt="http://www.onvif.org/ver10/schema" xmlns:wsbf2="http://docs.oasis-open.org/wsrf/bf-2" xmlns:wstop="http://docs.oasis-open.org/wsn/t-1" xmlns:dn="http://www.onvif.org/ver10/network/wsdl" xmlns:d="http://schemas.xmlsoap.org/ws/2005/04/discovery" xmlns:wsr2="http://docs.oasis-open.org/wsrf/r-2" xmlns:tan="http://www.onvif.org/ver20/analytics/wsdl" xmlns:tds="http://www.onvif.org/ver10/device/wsdl" xmlns:tev="http://www.onvif.org/ver10/events/wsdl" xmlns:timg="http://www.onvif.org/ver20/imaging/wsdl" xmlns:trt="http://www.onvif.org/ver10/media/wsdl" xmlns:tns1="http://www.onvif.org/ver10/topics" xmlns:ter="http://www.onvif.org/ver10/error" xmlns:ns1="http://www.onvif.org/ver10/deviceIO/wsdl" xmlns:wsd="http://schemas.xmlsoap.org/ws/2005/04/discovery" xmlns:wsadis="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:ns3="http://www.onvif.org/ver20/media/wsdl" xmlns:tptz="http://www.onvif.org/ver20/ptz/wsdl" xmlns:chan="http://schemas.microsoft.com/ws/2005/02/duplex" xmlns:c14n="http://www.w3.org/2001/10/xml-exc-c14n#" xmlns:wsc="http://schemas.xmlsoap.org/ws/2005/02/sc" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:xmime="http://www.w3.org/2005/05/xmlmime" xmlns:tpl="http://www.onvif.org/ver10/plus/wsdl" xmlns:tplt="http://www.onvif.org/ver10/plus/schema"><SOAP-ENV:Body><tds:GetSystemDateAndTimeResponse><tds:SystemDateAndTime><tt:DateTimeType>Manual</tt:DateTimeType><tt:DaylightSavings>false</tt:DaylightSavings><tt:TimeZone><tt:TZ>CET-1:00:00</tt:TZ></tt:TimeZone><tt:UTCDateTime><tt:Time><tt:Hour>19</tt:Hour><tt:Minute>26</tt:Minute><tt:Second>53</tt:Second></tt:Time><tt:Date><tt:Year>2022</tt:Year><tt:Month>11</tt:Month><tt:Day>8</tt:Day></tt:Date></tt:UTCDateTime><tt:LocalDateTime><tt:Time><tt:Hour>20</tt:Hour><tt:Minute>26</tt:Minute><tt:Second>53</tt:Second></tt:Time><tt:Date><tt:Year>2022</tt:Year><tt:Month>11</tt:Month><tt:Day>8</tt:Day></tt:Date></tt:LocalDateTime></tds:SystemDateAndTime></tds:GetSystemDateAndTimeResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>
2022-11-08 20:26:53.762 [TRACE] [amera.internal.onvif.OnvifConnection] - Sending ONVIF request:GetCapabilities
2022-11-08 20:26:53.765 [DEBUG] [amera.internal.onvif.OnvifConnection] - Cameras UTC dateTime is:2022-11-8T19:26:53
2022-11-08 20:26:53.765 [DEBUG] [amera.internal.onvif.OnvifConnection] - Openhabs UTC dateTime is:2022-11-08T19:26:53.765Z
2022-11-08 20:26:53.843 [TRACE] [amera.internal.onvif.OnvifConnection] - Onvif reply is:<?xml version="1.0" encoding="UTF-8"?>
<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:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:wsa5="http://www.w3.org/2005/08/addressing" xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2" xmlns:xop="http://www.w3.org/2004/08/xop/include" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:tt="http://www.onvif.org/ver10/schema" xmlns:wsbf2="http://docs.oasis-open.org/wsrf/bf-2" xmlns:wstop="http://docs.oasis-open.org/wsn/t-1" xmlns:dn="http://www.onvif.org/ver10/network/wsdl" xmlns:d="http://schemas.xmlsoap.org/ws/2005/04/discovery" xmlns:wsr2="http://docs.oasis-open.org/wsrf/r-2" xmlns:tan="http://www.onvif.org/ver20/analytics/wsdl" xmlns:tds="http://www.onvif.org/ver10/device/wsdl" xmlns:tev="http://www.onvif.org/ver10/events/wsdl" xmlns:timg="http://www.onvif.org/ver20/imaging/wsdl" xmlns:trt="http://www.onvif.org/ver10/media/wsdl" xmlns:tns1="http://www.onvif.org/ver10/topics" xmlns:ter="http://www.onvif.org/ver10/error" xmlns:ns1="http://www.onvif.org/ver10/deviceIO/wsdl" xmlns:wsd="http://schemas.xmlsoap.org/ws/2005/04/discovery" xmlns:wsadis="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:ns3="http://www.onvif.org/ver20/media/wsdl" xmlns:tptz="http://www.onvif.org/ver20/ptz/wsdl" xmlns:chan="http://schemas.microsoft.com/ws/2005/02/duplex" xmlns:c14n="http://www.w3.org/2001/10/xml-exc-c14n#" xmlns:wsc="http://schemas.xmlsoap.org/ws/2005/02/sc" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:xmime="http://www.w3.org/2005/05/xmlmime" xmlns:tpl="http://www.onvif.org/ver10/plus/wsdl" xmlns:tplt="http://www.onvif.org/ver10/plus/schema"><SOAP-ENV:Header><wsse:Security SOAP-ENV:mustUnderstand="true"><wsse:UsernameToken><wsse:Username>admin</wsse:Username><wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordDigest">HapaX0/9Mo6+wWafJaO6e0ajDMw=</wsse:Password><wsse:Nonce>LTExODA2NDU5MDY=</wsse:Nonce><wsu:Created>2022-11-08T19:26:53.763Z</wsu:Created></wsse:UsernameToken></wsse:Security></SOAP-ENV:Header><SOAP-ENV:Body><tds:GetCapabilitiesResponse><tds:Capabilities><tt:Analytics><tt:XAddr>http://192.168.178.120:80/onvif/analytize_service</tt:XAddr><tt:RuleSupport>true</tt:RuleSupport><tt:AnalyticsModuleSupport>true</tt:AnalyticsModuleSupport></tt:Analytics><tt:Device><tt:XAddr>http://192.168.178.120:80/onvif/device_service</tt:XAddr><tt:Network><tt:IPFilter>true</tt:IPFilter><tt:ZeroConfiguration>false</tt:ZeroConfiguration><tt:IPVersion6>false</tt:IPVersion6><tt:DynDNS>true</tt:DynDNS></tt:Network><tt:System><tt:DiscoveryResolve>true</tt:DiscoveryResolve><tt:DiscoveryBye>true</tt:DiscoveryBye><tt:RemoteDiscovery>true</tt:RemoteDiscovery><tt:SystemBackup>false</tt:SystemBackup><tt:SystemLogging>false</tt:SystemLogging><tt:FirmwareUpgrade>false</tt:FirmwareUpgrade><tt:SupportedVersions><tt:Major>2</tt:Major><tt:Minor>60</tt:Minor></tt:SupportedVersions><tt:SupportedVersions><tt:Major>2</tt:Major><tt:Minor>40</tt:Minor></tt:SupportedVersions><tt:SupportedVersions><tt:Major>2</tt:Major><tt:Minor>20</tt:Minor></tt:SupportedVersions><tt:SupportedVersions><tt:Major>2</tt:Major><tt:Minor>10</tt:Minor></tt:SupportedVersions><tt:Extension><tt:HttpFirmwareUpgrade>false</tt:HttpFirmwareUpgrade><tt:HttpSystemBackup>false</tt:HttpSystemBackup><tt:HttpSystemLogging>false</tt:HttpSystemLogging><tt:HttpSupportInformation>false</tt:HttpSupportInformation></tt:Extension></tt:System><tt:IO><tt:InputConnectors>0</tt:InputConnectors><tt:RelayOutputs>0</tt:RelayOutputs></tt:IO></tt:Device><tt:Events><tt:XAddr>http://192.168.178.120:80/onvif/event_service</tt:XAddr><tt:WSSubscriptionPolicySupport>true</tt:WSSubscriptionPolicySupport><tt:WSPullPointSupport>true</tt:WSPullPointSupport><tt:WSPausableSubscriptionManagerInterfaceSupport>false</tt:WSPausableSubscriptionManagerInterfaceSupport></tt:Events><tt:Imaging><tt:XAddr>http://192.168.178.120:80/onvif/imaging_service</tt:XAddr></tt:Imaging><tt:Media><tt:XAddr>http://192.168.178.120:80/onvif/media_service</tt:XAddr><tt:StreamingCapabilities><tt:RTPMulticast>true</tt:RTPMulticast><tt:RTP_TCP>true</tt:RTP_TCP><tt:RTP_RTSP_TCP>true</tt:RTP_RTSP_TCP></tt:StreamingCapabilities><tt:Extension><tt:ProfileCapabilities><tt:MaximumNumberOfProfiles>5</tt:MaximumNumberOfProfiles></tt:ProfileCapabilities></tt:Extension></tt:Media><tt:Extension><tplt:Plus><tplt:XAddr>http://192.168.178.120:80/onvif/plus</tplt:XAddr><tplt:PTZTrack>false</tplt:PTZTrack><tplt:PrivacyMask>true</tplt:PrivacyMask><tplt:H265>true</tplt:H265><tplt:SVAC>false</tplt:SVAC><tplt:OperationPtzArea>false</tplt:OperationPtzArea></tplt:Plus><tt:DeviceIO><tt:XAddr>http://192.168.178.120:80/onvif/deviceio_service</tt:XAddr><tt:VideoSources>1</tt:VideoSources><tt:VideoOutputs>1</tt:VideoOutputs><tt:AudioSources>1</tt:AudioSources><tt:AudioOutputs>1</tt:AudioOutputs><tt:RelayOutputs>0</tt:RelayOutputs></tt:DeviceIO><tt:AnalyticsDevice><tt:XAddr>http://192.168.178.120:80/onvif/analytize_service</tt:XAddr><tt:RuleSupport>true</tt:RuleSupport></tt:AnalyticsDevice></tt:Extension></tds:Capabilities></tds:GetCapabilitiesResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>
2022-11-08 20:26:53.843 [DEBUG] [amera.internal.onvif.OnvifConnection] - deviceXAddr:http://192.168.178.120:80/onvif/device_service
2022-11-08 20:26:53.844 [DEBUG] [amera.internal.onvif.OnvifConnection] - eventsXAddr:http://192.168.178.120:80/onvif/event_service
2022-11-08 20:26:53.844 [DEBUG] [amera.internal.onvif.OnvifConnection] - mediaXAddr:http://192.168.178.120:80/onvif/media_service
2022-11-08 20:26:53.844 [TRACE] [amera.internal.onvif.OnvifConnection] - Camera must not support PTZ, it failed to give a <tt:PTZ><tt:XAddr>:<?xml version="1.0" encoding="UTF-8"?>
<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:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:wsa5="http://www.w3.org/2005/08/addressing" xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2" xmlns:xop="http://www.w3.org/2004/08/xop/include" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:tt="http://www.onvif.org/ver10/schema" xmlns:wsbf2="http://docs.oasis-open.org/wsrf/bf-2" xmlns:wstop="http://docs.oasis-open.org/wsn/t-1" xmlns:dn="http://www.onvif.org/ver10/network/wsdl" xmlns:d="http://schemas.xmlsoap.org/ws/2005/04/discovery" xmlns:wsr2="http://docs.oasis-open.org/wsrf/r-2" xmlns:tan="http://www.onvif.org/ver20/analytics/wsdl" xmlns:tds="http://www.onvif.org/ver10/device/wsdl" xmlns:tev="http://www.onvif.org/ver10/events/wsdl" xmlns:timg="http://www.onvif.org/ver20/imaging/wsdl" xmlns:trt="http://www.onvif.org/ver10/media/wsdl" xmlns:tns1="http://www.onvif.org/ver10/topics" xmlns:ter="http://www.onvif.org/ver10/error" xmlns:ns1="http://www.onvif.org/ver10/deviceIO/wsdl" xmlns:wsd="http://schemas.xmlsoap.org/ws/2005/04/discovery" xmlns:wsadis="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:ns3="http://www.onvif.org/ver20/media/wsdl" xmlns:tptz="http://www.onvif.org/ver20/ptz/wsdl" xmlns:chan="http://schemas.microsoft.com/ws/2005/02/duplex" xmlns:c14n="http://www.w3.org/2001/10/xml-exc-c14n#" xmlns:wsc="http://schemas.xmlsoap.org/ws/2005/02/sc" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:xmime="http://www.w3.org/2005/05/xmlmime" xmlns:tpl="http://www.onvif.org/ver10/plus/wsdl" xmlns:tplt="http://www.onvif.org/ver10/plus/schema"><SOAP-ENV:Header><wsse:Security SOAP-ENV:mustUnderstand="true"><wsse:UsernameToken><wsse:Username>admin</wsse:Username><wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordDigest">HapaX0/9Mo6+wWafJaO6e0ajDMw=</wsse:Password><wsse:Nonce>LTExODA2NDU5MDY=</wsse:Nonce><wsu:Created>2022-11-08T19:26:53.763Z</wsu:Created></wsse:UsernameToken></wsse:Security></SOAP-ENV:Header><SOAP-ENV:Body><tds:GetCapabilitiesResponse><tds:Capabilities><tt:Analytics><tt:XAddr>http://192.168.178.120:80/onvif/analytize_service</tt:XAddr><tt:RuleSupport>true</tt:RuleSupport><tt:AnalyticsModuleSupport>true</tt:AnalyticsModuleSupport></tt:Analytics><tt:Device><tt:XAddr>http://192.168.178.120:80/onvif/device_service</tt:XAddr><tt:Network><tt:IPFilter>true</tt:IPFilter><tt:ZeroConfiguration>false</tt:ZeroConfiguration><tt:IPVersion6>false</tt:IPVersion6><tt:DynDNS>true</tt:DynDNS></tt:Network><tt:System><tt:DiscoveryResolve>true</tt:DiscoveryResolve><tt:DiscoveryBye>true</tt:DiscoveryBye><tt:RemoteDiscovery>true</tt:RemoteDiscovery><tt:SystemBackup>false</tt:SystemBackup><tt:SystemLogging>false</tt:SystemLogging><tt:FirmwareUpgrade>false</tt:FirmwareUpgrade><tt:SupportedVersions><tt:Major>2</tt:Major><tt:Minor>60</tt:Minor></tt:SupportedVersions><tt:SupportedVersions><tt:Major>2</tt:Major><tt:Minor>40</tt:Minor></tt:SupportedVersions><tt:SupportedVersions><tt:Major>2</tt:Major><tt:Minor>20</tt:Minor></tt:SupportedVersions><tt:SupportedVersions><tt:Major>2</tt:Major><tt:Minor>10</tt:Minor></tt:SupportedVersions><tt:Extension><tt:HttpFirmwareUpgrade>false</tt:HttpFirmwareUpgrade><tt:HttpSystemBackup>false</tt:HttpSystemBackup><tt:HttpSystemLogging>false</tt:HttpSystemLogging><tt:HttpSupportInformation>false</tt:HttpSupportInformation></tt:Extension></tt:System><tt:IO><tt:InputConnectors>0</tt:InputConnectors><tt:RelayOutputs>0</tt:RelayOutputs></tt:IO></tt:Device><tt:Events><tt:XAddr>http://192.168.178.120:80/onvif/event_service</tt:XAddr><tt:WSSubscriptionPolicySupport>true</tt:WSSubscriptionPolicySupport><tt:WSPullPointSupport>true</tt:WSPullPointSupport><tt:WSPausableSubscriptionManagerInterfaceSupport>false</tt:WSPausableSubscriptionManagerInterfaceSupport></tt:Events><tt:Imaging><tt:XAddr>http://192.168.178.120:80/onvif/imaging_service</tt:XAddr></tt:Imaging><tt:Media><tt:XAddr>http://192.168.178.120:80/onvif/media_service</tt:XAddr><tt:StreamingCapabilities><tt:RTPMulticast>true</tt:RTPMulticast><tt:RTP_TCP>true</tt:RTP_TCP><tt:RTP_RTSP_TCP>true</tt:RTP_RTSP_TCP></tt:StreamingCapabilities><tt:Extension><tt:ProfileCapabilities><tt:MaximumNumberOfProfiles>5</tt:MaximumNumberOfProfiles></tt:ProfileCapabilities></tt:Extension></tt:Media><tt:Extension><tplt:Plus><tplt:XAddr>http://192.168.178.120:80/onvif/plus</tplt:XAddr><tplt:PTZTrack>false</tplt:PTZTrack><tplt:PrivacyMask>true</tplt:PrivacyMask><tplt:H265>true</tplt:H265><tplt:SVAC>false</tplt:SVAC><tplt:OperationPtzArea>false</tplt:OperationPtzArea></tplt:Plus><tt:DeviceIO><tt:XAddr>http://192.168.178.120:80/onvif/deviceio_service</tt:XAddr><tt:VideoSources>1</tt:VideoSources><tt:VideoOutputs>1</tt:VideoOutputs><tt:AudioSources>1</tt:AudioSources><tt:AudioOutputs>1</tt:AudioOutputs><tt:RelayOutputs>0</tt:RelayOutputs></tt:DeviceIO><tt:AnalyticsDevice><tt:XAddr>http://192.168.178.120:80/onvif/analytize_service</tt:XAddr><tt:RuleSupport>true</tt:RuleSupport></tt:AnalyticsDevice></tt:Extension></tds:Capabilities></tds:GetCapabilitiesResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>
2022-11-08 20:26:53.844 [TRACE] [amera.internal.onvif.OnvifConnection] - Sending ONVIF request:GetProfiles
2022-11-08 20:26:53.906 [TRACE] [amera.internal.onvif.OnvifConnection] - Onvif reply is:<?xml version="1.0" encoding="UTF-8"?>
<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:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:wsa5="http://www.w3.org/2005/08/addressing" xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2" xmlns:xop="http://www.w3.org/2004/08/xop/include" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:tt="http://www.onvif.org/ver10/schema" xmlns:wsbf2="http://docs.oasis-open.org/wsrf/bf-2" xmlns:wstop="http://docs.oasis-open.org/wsn/t-1" xmlns:dn="http://www.onvif.org/ver10/network/wsdl" xmlns:d="http://schemas.xmlsoap.org/ws/2005/04/discovery" xmlns:wsr2="http://docs.oasis-open.org/wsrf/r-2" xmlns:tan="http://www.onvif.org/ver20/analytics/wsdl" xmlns:tds="http://www.onvif.org/ver10/device/wsdl" xmlns:tev="http://www.onvif.org/ver10/events/wsdl" xmlns:timg="http://www.onvif.org/ver20/imaging/wsdl" xmlns:trt="http://www.onvif.org/ver10/media/wsdl" xmlns:tns1="http://www.onvif.org/ver10/topics" xmlns:ter="http://www.onvif.org/ver10/error" xmlns:ns1="http://www.onvif.org/ver10/deviceIO/wsdl" xmlns:wsd="http://schemas.xmlsoap.org/ws/2005/04/discovery" xmlns:wsadis="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:ns3="http://www.onvif.org/ver20/media/wsdl" xmlns:tptz="http://www.onvif.org/ver20/ptz/wsdl" xmlns:chan="http://schemas.microsoft.com/ws/2005/02/duplex" xmlns:c14n="http://www.w3.org/2001/10/xml-exc-c14n#" xmlns:wsc="http://schemas.xmlsoap.org/ws/2005/02/sc" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:xmime="http://www.w3.org/2005/05/xmlmime" xmlns:tpl="http://www.onvif.org/ver10/plus/wsdl" xmlns:tplt="http://www.onvif.org/ver10/plus/schema"><SOAP-ENV:Header></SOAP-ENV:Header><SOAP-ENV:Body><trt:GetProfilesResponse><trt:Profiles fixed="true" token="profile0"><tt:Name>profile0</tt:Name><tt:VideoSourceConfiguration token="videosrc_cfg_cam0"><tt:Name>videosrc_cfg_cam0</tt:Name><tt:UseCount>2</tt:UseCount><tt:SourceToken>videosrc_cam0</tt:SourceToken><tt:Bounds height="2160" width="3840" y="0" x="0"></tt:Bounds></tt:VideoSourceConfiguration><tt:AudioSourceConfiguration token="audiosrc_cfg_cam0"><tt:Name>audiosrc_cfg_cam0</tt:Name><tt:UseCount>2</tt:UseCount><tt:SourceToken>audiosrc_cam0</tt:SourceToken></tt:AudioSourceConfiguration><tt:VideoEncoderConfiguration token="videoenc_cfg_cam0_stream0"><tt:Name>videoenc_cfg_cam0_stream0</tt:Name><tt:UseCount>1</tt:UseCount><tt:Encoding>H264</tt:Encoding><tt:Resolution><tt:Width>3840</tt:Width><tt:Height>2160</tt:Height></tt:Resolution><tt:Quality>3</tt:Quality><tt:RateControl><tt:FrameRateLimit>15</tt:FrameRateLimit><tt:EncodingInterval>1</tt:EncodingInterval><tt:BitrateLimit>8000</tt:BitrateLimit></tt:RateControl><tt:H264><tt:GovLength>50</tt:GovLength><tt:H264Profile>Main</tt:H264Profile></tt:H264><tt:Multicast><tt:Address><tt:Type>IPv4</tt:Type><tt:IPv4Address>239.0.0.1</tt:IPv4Address></tt:Address><tt:Port>5050</tt:Port><tt:TTL>60</tt:TTL><tt:AutoStart>false</tt:AutoStart></tt:Multicast><tt:SessionTimeout>PT0S</tt:SessionTimeout></tt:VideoEncoderConfiguration><tt:AudioEncoderConfiguration token="audioenc_cfg_cam0_stream0"><tt:Name>audioenc_cfg_cam0_stream0</tt:Name><tt:UseCount>2</tt:UseCount><tt:Encoding>G711</tt:Encoding><tt:Bitrate>16000</tt:Bitrate><tt:SampleRate>8000</tt:SampleRate><tt:Multicast><tt:Address><tt:Type>IPv4</tt:Type><tt:IPv4Address>239.0.0.1</tt:IPv4Address></tt:Address><tt:Port>5053</tt:Port><tt:TTL>60</tt:TTL><tt:AutoStart>false</tt:AutoStart></tt:Multicast><tt:SessionTimeout>PT0S</tt:SessionTimeout></tt:AudioEncoderConfiguration><tt:VideoAnalyticsConfiguration token="videoanaytic_cfg_cam0"><tt:Name>videoanaytic_cfg_cam0</tt:Name><tt:UseCount>2</tt:UseCount><tt:AnalyticsEngineConfiguration><tt:AnalyticsModule Name="CellMotionEngineMoudle" Type="tt:CellMotionEngine"><tt:Parameters><tt:SimpleItem Value="50" Name="Sensitivity"></tt:SimpleItem><tt:ElementItem Name="Layout"><tt:CellLayout Columns="22" Rows="18"><tt:Transformation><tt:Translate x="-1.000000" y="-1.000000"/><tt:Scale x="0.002841" y="0.003472"/></tt:Transformation></tt:CellLayout></tt:ElementItem></tt:Parameters></tt:AnalyticsModule></tt:AnalyticsEngineConfiguration><tt:RuleEngineConfiguration><tt:Rule Name="CellMotionDetectorRule" Type="tt:CellMotionDetector"><tt:Parameters><tt:SimpleItem Value="5" Name="MinCount"></tt:SimpleItem><tt:SimpleItem Value="10" Name="AlarmOnDelay"></tt:SimpleItem><tt:SimpleItem Value="3" Name="AlarmOffDelay"></tt:SimpleItem><tt:SimpleItem Value="zwA=" Name="ActiveCells"></tt:SimpleItem></tt:Parameters></tt:Rule></tt:RuleEngineConfiguration></tt:VideoAnalyticsConfiguration><tt:MetadataConfiguration token="metadata_cfg_cam0"><tt:Name>metadata_cfg_cam0</tt:Name><tt:UseCount>2</tt:UseCount><tt:Events><tt:Filter></tt:Filter><tt:SubscriptionPolicy></tt:SubscriptionPolicy></tt:Events><tt:Analytics>false</tt:Analytics><tt:Multicast><tt:Address><tt:Type>IPv4</tt:Type><tt:IPv4Address>239.0.0.1</tt:IPv4Address></tt:Address><tt:Port>5050</tt:Port><tt:TTL>60</tt:TTL><tt:AutoStart>false</tt:AutoStart></tt:Multicast><tt:SessionTimeout>PT0S</tt:SessionTimeout></tt:MetadataConfiguration></trt:Profiles><trt:Profiles fixed="true" token="profile1"><tt:Name>profile1</tt:Name><tt:VideoSourceConfiguration token="videosrc_cfg_cam0"><tt:Name>videosrc_cfg_cam0</tt:Name><tt:UseCount>2</tt:UseCount><tt:SourceToken>videosrc_cam0</tt:SourceToken><tt:Bounds height="2160" width="3840" y="0" x="0"></tt:Bounds></tt:VideoSourceConfiguration><tt:AudioSourceConfiguration token="audiosrc_cfg_cam0"><tt:Name>audiosrc_cfg_cam0</tt:Name><tt:UseCount>2</tt:UseCount><tt:SourceToken>audiosrc_cam0</tt:SourceToken></tt:AudioSourceConfiguration><tt:VideoEncoderConfiguration token="videoenc_cfg_cam0_stream1"><tt:Name>videoenc_cfg_cam0_stream1</tt:Name><tt:UseCount>1</tt:UseCount><tt:Encoding>H264</tt:Encoding><tt:Resolution><tt:Width>704</tt:Width><tt:Height>576</tt:Height></tt:Resolution><tt:Quality>3</tt:Quality><tt:RateControl><tt:FrameRateLimit>15</tt:FrameRateLimit><tt:EncodingInterval>1</tt:EncodingInterval><tt:BitrateLimit>600</tt:BitrateLimit></tt:RateControl><tt:H264><tt:GovLength>50</tt:GovLength><tt:H264Profile>Main</tt:H264Profile></tt:H264><tt:Multicast><tt:Address><tt:Type>IPv4</tt:Type><tt:IPv4Address>239.0.0.1</tt:IPv4Address></tt:Address><tt:Port>5052</tt:Port><tt:TTL>60</tt:TTL><tt:AutoStart>false</tt:AutoStart></tt:Multicast><tt:SessionTimeout>PT0S</tt:SessionTimeout></tt:VideoEncoderConfiguration><tt:AudioEncoderConfiguration token="audioenc_cfg_cam0_stream0"><tt:Name>audioenc_cfg_cam0_stream0</tt:Name><tt:UseCount>2</tt:UseCount><tt:Encoding>G711</tt:Encoding><tt:Bitrate>16000</tt:Bitrate><tt:SampleRate>8000</tt:SampleRate><tt:Multicast><tt:Address><tt:Type>IPv4</tt:Type><tt:IPv4Address>239.0.0.1</tt:IPv4Address></tt:Address><tt:Port>5053</tt:Port><tt:TTL>60</tt:TTL><tt:AutoStart>false</tt:AutoStart></tt:Multicast><tt:SessionTimeout>PT0S</tt:SessionTimeout></tt:AudioEncoderConfiguration><tt:VideoAnalyticsConfiguration token="videoanaytic_cfg_cam0"><tt:Name>videoanaytic_cfg_cam0</tt:Name><tt:UseCount>2</tt:UseCount><tt:AnalyticsEngineConfiguration><tt:AnalyticsModule Name="CellMotionEngineMoudle" Type="tt:CellMotionEngine"><tt:Parameters><tt:SimpleItem Value="50" Name="Sensitivity"></tt:SimpleItem><tt:ElementItem Name="Layout"><tt:CellLayout Columns="22" Rows="18"><tt:Transformation><tt:Translate x="-1.000000" y="-1.000000"/><tt:Scale x="0.002841" y="0.003472"/></tt:Transformation></tt:CellLayout></tt:ElementItem></tt:Parameters></tt:AnalyticsModule></tt:AnalyticsEngineConfiguration><tt:RuleEngineConfiguration><tt:Rule Name="CellMotionDetectorRule" Type="tt:CellMotionDetector"><tt:Parameters><tt:SimpleItem Value="5" Name="MinCount"></tt:SimpleItem><tt:SimpleItem Value="10" Name="AlarmOnDelay"></tt:SimpleItem><tt:SimpleItem Value="3" Name="AlarmOffDelay"></tt:SimpleItem><tt:SimpleItem Value="zwA=" Name="ActiveCells"></tt:SimpleItem></tt:Parameters></tt:Rule></tt:RuleEngineConfiguration></tt:VideoAnalyticsConfiguration><tt:MetadataConfiguration token="metadata_cfg_cam0"><tt:Name>metadata_cfg_cam0</tt:Name><tt:UseCount>2</tt:UseCount><tt:Events><tt:Filter></tt:Filter><tt:SubscriptionPolicy></tt:SubscriptionPolicy></tt:Events><tt:Analytics>false</tt:Analytics><tt:Multicast><tt:Address><tt:Type>IPv4</tt:Type><tt:IPv4Address>239.0.0.1</tt:IPv4Address></tt:Address><tt:Port>5050</tt:Port><tt:TTL>60</tt:TTL><tt:AutoStart>false</tt:AutoStart></tt:Multicast><tt:SessionTimeout>PT0S</tt:SessionTimeout></tt:MetadataConfiguration></trt:Profiles></trt:GetProfilesResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>
2022-11-08 20:26:53.907 [TRACE] [amera.internal.onvif.OnvifConnection] - String was found:profile0
2022-11-08 20:26:53.907 [TRACE] [amera.internal.onvif.OnvifConnection] - String was found:profile1
2022-11-08 20:26:53.908 [TRACE] [amera.internal.onvif.OnvifConnection] - Sending ONVIF request:GetSnapshotUri
2022-11-08 20:26:53.908 [TRACE] [amera.internal.onvif.OnvifConnection] - Sending ONVIF request:GetStreamUri
2022-11-08 20:26:53.909 [TRACE] [amera.internal.onvif.OnvifConnection] - Sending ONVIF request:GetEventProperties
2022-11-08 20:26:53.909 [TRACE] [amera.internal.onvif.OnvifConnection] - Sending ONVIF request:GetServiceCapabilities
2022-11-08 20:26:53.921 [TRACE] [amera.internal.onvif.OnvifConnection] - Onvif reply is:<?xml version="1.0" encoding="UTF-8"?>
<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:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:wsa5="http://www.w3.org/2005/08/addressing" xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2" xmlns:xop="http://www.w3.org/2004/08/xop/include" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:tt="http://www.onvif.org/ver10/schema" xmlns:wsbf2="http://docs.oasis-open.org/wsrf/bf-2" xmlns:wstop="http://docs.oasis-open.org/wsn/t-1" xmlns:dn="http://www.onvif.org/ver10/network/wsdl" xmlns:d="http://schemas.xmlsoap.org/ws/2005/04/discovery" xmlns:wsr2="http://docs.oasis-open.org/wsrf/r-2" xmlns:tan="http://www.onvif.org/ver20/analytics/wsdl" xmlns:tds="http://www.onvif.org/ver10/device/wsdl" xmlns:tev="http://www.onvif.org/ver10/events/wsdl" xmlns:timg="http://www.onvif.org/ver20/imaging/wsdl" xmlns:trt="http://www.onvif.org/ver10/media/wsdl" xmlns:tns1="http://www.onvif.org/ver10/topics" xmlns:ter="http://www.onvif.org/ver10/error" xmlns:ns1="http://www.onvif.org/ver10/deviceIO/wsdl" xmlns:wsd="http://schemas.xmlsoap.org/ws/2005/04/discovery" xmlns:wsadis="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:ns3="http://www.onvif.org/ver20/media/wsdl" xmlns:tptz="http://www.onvif.org/ver20/ptz/wsdl" xmlns:chan="http://schemas.microsoft.com/ws/2005/02/duplex" xmlns:c14n="http://www.w3.org/2001/10/xml-exc-c14n#" xmlns:wsc="http://schemas.xmlsoap.org/ws/2005/02/sc" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:xmime="http://www.w3.org/2005/05/xmlmime" xmlns:tpl="http://www.onvif.org/ver10/plus/wsdl" xmlns:tplt="http://www.onvif.org/ver10/plus/schema"><SOAP-ENV:Header></SOAP-ENV:Header><SOAP-ENV:Body><trt:GetSnapshotUriResponse><trt:MediaUri><tt:Uri>http://192.168.178.120:80/action/snap?cam=0&user=admin&pwd=7146581be62e339e152a135e0526f64d</tt:Uri><tt:InvalidAfterConnect>false</tt:InvalidAfterConnect><tt:InvalidAfterReboot>false</tt:InvalidAfterReboot><tt:Timeout>PT0S</tt:Timeout></trt:MediaUri></trt:GetSnapshotUriResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>
2022-11-08 20:26:53.921 [DEBUG] [amera.internal.onvif.OnvifConnection] - GetSnapshotUri:/action/snap?cam=0&user=admin&pwd=7146581be62e339e152a135e0526f64d
2022-11-08 20:26:53.925 [TRACE] [amera.internal.onvif.OnvifConnection] - Onvif reply is:<?xml version="1.0" encoding="UTF-8"?>
<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:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:wsa5="http://www.w3.org/2005/08/addressing" xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2" xmlns:xop="http://www.w3.org/2004/08/xop/include" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:tt="http://www.onvif.org/ver10/schema" xmlns:wsbf2="http://docs.oasis-open.org/wsrf/bf-2" xmlns:wstop="http://docs.oasis-open.org/wsn/t-1" xmlns:dn="http://www.onvif.org/ver10/network/wsdl" xmlns:d="http://schemas.xmlsoap.org/ws/2005/04/discovery" xmlns:wsr2="http://docs.oasis-open.org/wsrf/r-2" xmlns:tan="http://www.onvif.org/ver20/analytics/wsdl" xmlns:tds="http://www.onvif.org/ver10/device/wsdl" xmlns:tev="http://www.onvif.org/ver10/events/wsdl" xmlns:timg="http://www.onvif.org/ver20/imaging/wsdl" xmlns:trt="http://www.onvif.org/ver10/media/wsdl" xmlns:tns1="http://www.onvif.org/ver10/topics" xmlns:ter="http://www.onvif.org/ver10/error" xmlns:ns1="http://www.onvif.org/ver10/deviceIO/wsdl" xmlns:wsd="http://schemas.xmlsoap.org/ws/2005/04/discovery" xmlns:wsadis="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:ns3="http://www.onvif.org/ver20/media/wsdl" xmlns:tptz="http://www.onvif.org/ver20/ptz/wsdl" xmlns:chan="http://schemas.microsoft.com/ws/2005/02/duplex" xmlns:c14n="http://www.w3.org/2001/10/xml-exc-c14n#" xmlns:wsc="http://schemas.xmlsoap.org/ws/2005/02/sc" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:xmime="http://www.w3.org/2005/05/xmlmime" xmlns:tpl="http://www.onvif.org/ver10/plus/wsdl" xmlns:tplt="http://www.onvif.org/ver10/plus/schema"><SOAP-ENV:Header><wsa5:Action SOAP-ENV:mustUnderstand="true">http://www.onvif.org/ver10/events/wsdl/EventPortType/GetEventPropertiesResponse</wsa5:Action></SOAP-ENV:Header><SOAP-ENV:Body><tev:GetEventPropertiesResponse><tev:TopicNamespaceLocation>http://www.onvif.org/onvif/ver10/topics/topicns.xml</tev:TopicNamespaceLocation><wsnt:FixedTopicSet>true</wsnt:FixedTopicSet><wstop:TopicSet><tns1:UserAlarm><tns1:IVA><tns1:LeaveZone wstop:topic="true"><tt:MessageDescription IsProperty="false"><tt:Source><tt:SimpleItemDescription Name="InputToken" Type="tt:ReferenceToken"/></tt:Source><tt:Data><tt:SimpleItemDescription Name="IVA_Alarm" Type="xsd:string"/></tt:Data></tt:MessageDescription></tns1:LeaveZone><tns1:AccessZone wstop:topic="true"><tt:MessageDescription IsProperty="false"><tt:Source><tt:SimpleItemDescription Name="InputToken" Type="tt:ReferenceToken"/></tt:Source><tt:Data><tt:SimpleItemDescription Name="IVA_Alarm" Type="xsd:string"/></tt:Data></tt:MessageDescription></tns1:AccessZone><tns1:HumanShapeDetect wstop:topic="true"><tt:MessageDescription IsProperty="false"><tt:Source><tt:SimpleItemDescription Name="VideoSourceConfigurationToken" Type="tt:ReferenceToken"/></tt:Source><tt:Data><tt:SimpleItemDescription Name="State" Type="xsd:boolean"/></tt:Data></tt:MessageDescription></tns1:HumanShapeDetect></tns1:IVA><tns1:IllegalLogin wstop:topic="true"><tt:MessageDescription IsProperty="false"><tt:Source><tt:SimpleItemDescription Name="IllegalLogin" Type="xsd:string"/><tt:SimpleItemDescription Name="DevChannel" Type="xsd:int"/></tt:Source><tt:Data><tt:SimpleItemDescription Name="State" Type="xsd:boolean"/></tt:Data></tt:MessageDescription></tns1:IllegalLogin><tns1:SmartHttpReport><tns1:FaceDetector wstop:topic="true"><tt:MessageDescription IsProperty="false"/></tns1:FaceDetector><tns1:FieldDetector wstop:topic="true"><tt:MessageDescription IsProperty="false"/></tns1:FieldDetector><tns1:LineDetector wstop:topic="true"><tt:MessageDescription IsProperty="false"/></tns1:LineDetector></tns1:SmartHttpReport><tns1:BandwidthChange wstop:topic="true"><tt:MessageDescription IsProperty="true"><tt:Source><tt:SimpleItemDescription Name="BandwidthChange" Type="xsd:string"/></tt:Source><tt:Data><tt:SimpleItemDescription Name="TotalBandwidth" Type="xsd:int"/><tt:SimpleItemDescription Name="RemainingBandwidth" Type="xsd:int"/><tt:SimpleItemDescription Name="TotalStreamNum" Type="xsd:int"/><tt:SimpleItemDescription Name="FreeStreamNum" Type="xsd:int"/></tt:Data></tt:MessageDescription></tns1:BandwidthChange></tns1:UserAlarm><tns1:RuleEngine><FieldDetector><ObjectsInside wstop:topic="true"><tt:MessageDescription IsProperty="true"><tt:Source><tt:SimpleItemDescription Name="VideoSourceConfigurationToken" Type="tt:ReferenceToken" /><tt:SimpleItemDescription Name="VideoAnalyticsConfigurationToken" Type="tt:ReferenceToken" /><tt:SimpleItemDescription Name="Rule" Type="xsd:string" /></tt:Source><tt:Key><tt:SimpleItemDescription Name="ObjectId" Type="xsd:integer" /></tt:Key><tt:Data><tt:SimpleItemDescription Name="IsInside" Type="xsd:boolean" /></tt:Data></tt:MessageDescription></ObjectsInside></FieldDetector><FaceRecognitionDetector><ObjectIsRecognized wstop:topic="true"><tt:MessageDescription IsProperty="true"><tt:Source><tt:SimpleItemDescription Name="VideoSourceConfigurationToken" Type="tt:ReferenceToken" /><tt:SimpleItemDescription Name="VideoAnalyticsConfigurationToken" Type="tt:ReferenceToken" /><tt:SimpleItemDescription Name="Rule" Type="xsd:string" /></tt:Source><tt:Data><tt:SimpleItemDescription Name="ObjectId" Type="xsd:integer" /></tt:Data></tt:MessageDescription></ObjectIsRecognized></FaceRecognitionDetector><LineDetector><Crossed wstop:topic="true"><tt:MessageDescription IsProperty="true"><tt:Source><tt:SimpleItemDescription Name="VideoSourceConfigurationToken" Type="tt:ReferenceToken" /><tt:SimpleItemDescription Name="VideoAnalyticsConfigurationToken" Type="tt:ReferenceToken" /><tt:SimpleItemDescription Name="Rule" Type="xsd:string" /></tt:Source><tt:Data><tt:SimpleItemDescription Name="ObjectId" Type="xsd:integer" /></tt:Data></tt:MessageDescription></Crossed></LineDetector><CellMotionDetector><Motion wstop:topic="true"><tt:MessageDescription IsProperty="true"><tt:Source><tt:SimpleItemDescription Name="VideoSourceConfigurationToken" Type="tt:ReferenceToken" /><tt:SimpleItemDescription Name="VideoAnalyticsConfigurationToken" Type="tt:ReferenceToken" /><tt:SimpleItemDescription Name="Rule" Type="xsd:string" /></tt:Source><tt:Data><tt:SimpleItemDescription Name="IsMotion" Type="xsd:boolean" /></tt:Data></tt:MessageDescription></Motion></CellMotionDetector></tns1:RuleEngine><tns1:VideoSource wstop:topic="true"><MotionAlarm wstop:topic="true"><tt:MessageDescription><tt:Source> <tt:SimpleItemDescription Name="Source" Type="tt:ReferenceToken"/> </tt:Source><tt:Data> <tt:SimpleItemDescription Name="State" Type="xsd:boolean" /> </tt:Data></tt:MessageDescription></MotionAlarm></tns1:VideoSource><tns1:Device wstop:topic="true"><Trigger wstop:topic="true"><DigitalInput wstop:topic="true"><tt:MessageDescription><tt:Source><tt:SimpleItemDescription Name="InputToken" Type="tt:ReferenceToken"/></tt:Source><tt:Data> <tt:SimpleItemDescription Name="LogicalState" Type="xsd:boolean" /> </tt:Data></tt:MessageDescription></DigitalInput></Trigger></tns1:Device></wstop:TopicSet><wsnt:TopicExpressionDialect>http://docs.oasis-open.org/wsn/t-1/TopicExpression/Concrete</wsnt:TopicExpressionDialect><wsnt:TopicExpressionDialect>http://www.onvif.org/ver10/tev/topicExpression/ConcreteSet</wsnt:TopicExpressionDialect><tev:MessageContentFilterDialect>http://www.onvif.org/ver10/tev/messageContentFilter/ItemFilter</tev:MessageContentFilterDialect><tev:MessageContentSchemaLocation>http://www.onvif.org/onvif/ver10/schema/onvif.xsd</tev:MessageContentSchemaLocation></tev:GetEventPropertiesResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>
2022-11-08 20:26:53.925 [TRACE] [amera.internal.onvif.OnvifConnection] - Sending ONVIF request:CreatePullPointSubscription
2022-11-08 20:26:53.933 [TRACE] [amera.internal.onvif.OnvifConnection] - Onvif reply is:<?xml version="1.0" encoding="UTF-8"?>
<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:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:wsa5="http://www.w3.org/2005/08/addressing" xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2" xmlns:xop="http://www.w3.org/2004/08/xop/include" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:tt="http://www.onvif.org/ver10/schema" xmlns:wsbf2="http://docs.oasis-open.org/wsrf/bf-2" xmlns:wstop="http://docs.oasis-open.org/wsn/t-1" xmlns:dn="http://www.onvif.org/ver10/network/wsdl" xmlns:d="http://schemas.xmlsoap.org/ws/2005/04/discovery" xmlns:wsr2="http://docs.oasis-open.org/wsrf/r-2" xmlns:tan="http://www.onvif.org/ver20/analytics/wsdl" xmlns:tds="http://www.onvif.org/ver10/device/wsdl" xmlns:tev="http://www.onvif.org/ver10/events/wsdl" xmlns:timg="http://www.onvif.org/ver20/imaging/wsdl" xmlns:trt="http://www.onvif.org/ver10/media/wsdl" xmlns:tns1="http://www.onvif.org/ver10/topics" xmlns:ter="http://www.onvif.org/ver10/error" xmlns:ns1="http://www.onvif.org/ver10/deviceIO/wsdl" xmlns:wsd="http://schemas.xmlsoap.org/ws/2005/04/discovery" xmlns:wsadis="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:ns3="http://www.onvif.org/ver20/media/wsdl" xmlns:tptz="http://www.onvif.org/ver20/ptz/wsdl" xmlns:chan="http://schemas.microsoft.com/ws/2005/02/duplex" xmlns:c14n="http://www.w3.org/2001/10/xml-exc-c14n#" xmlns:wsc="http://schemas.xmlsoap.org/ws/2005/02/sc" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:xmime="http://www.w3.org/2005/05/xmlmime" xmlns:tpl="http://www.onvif.org/ver10/plus/wsdl" xmlns:tplt="http://www.onvif.org/ver10/plus/schema"><SOAP-ENV:Header></SOAP-ENV:Header><SOAP-ENV:Body><trt:GetStreamUriResponse><trt:MediaUri><tt:Uri>rtsp://192.168.178.120:554/live/main</tt:Uri><tt:InvalidAfterConnect>false</tt:InvalidAfterConnect><tt:InvalidAfterReboot>false</tt:InvalidAfterReboot><tt:Timeout>PT60S</tt:Timeout></trt:MediaUri></trt:GetStreamUriResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>
2022-11-08 20:26:53.934 [DEBUG] [amera.internal.onvif.OnvifConnection] - GetStreamUri:rtsp://192.168.178.120:554/live/main
2022-11-08 20:26:53.936 [TRACE] [amera.internal.onvif.OnvifConnection] - Onvif reply is:<?xml version="1.0" encoding="UTF-8"?>
<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:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:wsa5="http://www.w3.org/2005/08/addressing" xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2" xmlns:xop="http://www.w3.org/2004/08/xop/include" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:tt="http://www.onvif.org/ver10/schema" xmlns:wsbf2="http://docs.oasis-open.org/wsrf/bf-2" xmlns:wstop="http://docs.oasis-open.org/wsn/t-1" xmlns:dn="http://www.onvif.org/ver10/network/wsdl" xmlns:d="http://schemas.xmlsoap.org/ws/2005/04/discovery" xmlns:wsr2="http://docs.oasis-open.org/wsrf/r-2" xmlns:tan="http://www.onvif.org/ver20/analytics/wsdl" xmlns:tds="http://www.onvif.org/ver10/device/wsdl" xmlns:tev="http://www.onvif.org/ver10/events/wsdl" xmlns:timg="http://www.onvif.org/ver20/imaging/wsdl" xmlns:trt="http://www.onvif.org/ver10/media/wsdl" xmlns:tns1="http://www.onvif.org/ver10/topics" xmlns:ter="http://www.onvif.org/ver10/error" xmlns:ns1="http://www.onvif.org/ver10/deviceIO/wsdl" xmlns:wsd="http://schemas.xmlsoap.org/ws/2005/04/discovery" xmlns:wsadis="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:ns3="http://www.onvif.org/ver20/media/wsdl" xmlns:tptz="http://www.onvif.org/ver20/ptz/wsdl" xmlns:chan="http://schemas.microsoft.com/ws/2005/02/duplex" xmlns:c14n="http://www.w3.org/2001/10/xml-exc-c14n#" xmlns:wsc="http://schemas.xmlsoap.org/ws/2005/02/sc" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:xmime="http://www.w3.org/2005/05/xmlmime" xmlns:tpl="http://www.onvif.org/ver10/plus/wsdl" xmlns:tplt="http://www.onvif.org/ver10/plus/schema"><SOAP-ENV:Body><SOAP-ENV:Fault><SOAP-ENV:Code><SOAP-ENV:Value>SOAP-ENV:Sender</SOAP-ENV:Value></SOAP-ENV:Code><SOAP-ENV:Reason><SOAP-ENV:Text xml:lang="en">Method 'GetServiceCapabilities' not implemented: method name or namespace not recognized</SOAP-ENV:Text></SOAP-ENV:Reason></SOAP-ENV:Fault></SOAP-ENV:Body></SOAP-ENV:Envelope>
2022-11-08 20:26:53.945 [TRACE] [amera.internal.onvif.OnvifConnection] - Onvif reply is:<?xml version="1.0" encoding="UTF-8"?>
<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:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:wsa5="http://www.w3.org/2005/08/addressing" xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2" xmlns:xop="http://www.w3.org/2004/08/xop/include" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:tt="http://www.onvif.org/ver10/schema" xmlns:wsbf2="http://docs.oasis-open.org/wsrf/bf-2" xmlns:wstop="http://docs.oasis-open.org/wsn/t-1" xmlns:dn="http://www.onvif.org/ver10/network/wsdl" xmlns:d="http://schemas.xmlsoap.org/ws/2005/04/discovery" xmlns:wsr2="http://docs.oasis-open.org/wsrf/r-2" xmlns:tan="http://www.onvif.org/ver20/analytics/wsdl" xmlns:tds="http://www.onvif.org/ver10/device/wsdl" xmlns:tev="http://www.onvif.org/ver10/events/wsdl" xmlns:timg="http://www.onvif.org/ver20/imaging/wsdl" xmlns:trt="http://www.onvif.org/ver10/media/wsdl" xmlns:tns1="http://www.onvif.org/ver10/topics" xmlns:ter="http://www.onvif.org/ver10/error" xmlns:ns1="http://www.onvif.org/ver10/deviceIO/wsdl" xmlns:wsd="http://schemas.xmlsoap.org/ws/2005/04/discovery" xmlns:wsadis="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:ns3="http://www.onvif.org/ver20/media/wsdl" xmlns:tptz="http://www.onvif.org/ver20/ptz/wsdl" xmlns:chan="http://schemas.microsoft.com/ws/2005/02/duplex" xmlns:c14n="http://www.w3.org/2001/10/xml-exc-c14n#" xmlns:wsc="http://schemas.xmlsoap.org/ws/2005/02/sc" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:xmime="http://www.w3.org/2005/05/xmlmime" xmlns:tpl="http://www.onvif.org/ver10/plus/wsdl" xmlns:tplt="http://www.onvif.org/ver10/plus/schema"><SOAP-ENV:Header><wsa5:To SOAP-ENV:mustUnderstand="true">http://192.168.178.120:80/onvif/event_service</wsa5:To><wsa5:Action SOAP-ENV:mustUnderstand="true">http://www.onvif.org/ver10/events/wsdl/EventPortType/CreatePullPointSubscriptionResponse</wsa5:Action></SOAP-ENV:Header><SOAP-ENV:Body><tev:CreatePullPointSubscriptionResponse><tev:SubscriptionReference><wsa5:Address>http://192.168.178.120:80/onvif/event_service/subscription?id=13</wsa5:Address></tev:SubscriptionReference><wsnt:CurrentTime>2022-11-08T19:26:53Z</wsnt:CurrentTime><wsnt:TerminationTime>2022-11-08T19:36:53Z</wsnt:TerminationTime></tev:CreatePullPointSubscriptionResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>
2022-11-08 20:26:53.946 [DEBUG] [amera.internal.onvif.OnvifConnection] - subscriptionXAddr=http://192.168.178.120:80/onvif/event_service/subscription?id=13
2022-11-08 20:26:53.946 [TRACE] [amera.internal.onvif.OnvifConnection] - Sending ONVIF request:PullMessages
==> /var/log/openhab/events.log <==
2022-11-08 20:26:57.750 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'ipcamera:onvif:b6aa2f79b4' changed from INITIALIZING to ONLINE
==> /var/log/openhab/openhab.log <==
2022-11-08 20:26:57.750 [TRACE] [era.internal.handler.IpCameraHandler] - Sending camera: GET: http://192.168.178.120:80/action/snap?cam=0&user=admin&pwd=U2HGZp8CopTAhg
2022-11-08 20:26:57.758 [WARN ] [ipcamera.internal.MyNettyAuthHandler] - 403 Forbidden: Check camera setup or has the camera activated the illegal login lock?
Hello,
I wanted to ask again if there is anything new on the topic of remote access to the camera streams (mjpg). I have now tried again for a few hours to make the camera stream remotely available. For me it is important to work via myopenhab cloud (and Main UI), because I need the notifications. Besides, this is a really very simple solution. I only frustrate myself with the display of the camera streams via remote access.
https://user:password@1234.myfritz.net/ipcamera/haustuer/ipcamera.mjpeg
I have already installed a reserve proxy (ngnix) and the stream is displayed directly via the browser, but not in the Openhab Mail UI (oh-image) itself.
Have any of you found in general a solution?
Maybe we can exchange and discuss the different approaches here again?
ulij
(Uli Joergens)
November 17, 2022, 6:20pm
2807
Hello,
First of all it is not recommended to pass username and password in the URL. This is also no longer required.
If you follow the guidelines for setting up the binding and ffmpeg, you should be able to access cam images through a reverse proxy (mine runs on apache).
MJPEG URL would be something like the following:
http://192.168.1.139:8080/ipcamera/cameast/ipcamera.mjpeg
In the UI, I embedded that in an Image Card:
component: oh-image-card
config:
action: url
actionModal: widget:Default_Camera
actionModalConfig:
mjpegurl: https://<FQDN>/ipcamera2/ipcamera.mjpeg
actionUrl: /ipcamera/cameast/ipcamera.mjpeg
lazy: true
title: East
url: /ipcamera/cameast/ipcamera.mjpeg
You then need to configure the reverse proxy. Here authentication is a bit tricky and not very pretty as you need to authenticate twice, against apache and as an admin for API calls…
Hope that helps.
matt1
(Skinah)
November 17, 2022, 9:07pm
2808
You should open a new thread as this is not a ipcamera binding question and a topic all of its own.
I would recommend you use wiregaurd. This way your phone shows up inside your home network and everything just works exactly like you are at home. This also has the benefits that you can be safer when on free wifi.
EDIT:
@Sebastian_Neu I’m not 100% sure what it is that youre really asking…
A) How to access OH3 user interfaces when your remote and not home.
B) How to view nonstop and live camera streams when not home.
C) How to get notified and see the camera footage from a person walking on your land when your not home.
D) A combo of the above.
Open up a new thread to discuss what the options are and make it clear what your END GOAL actually is. There are very easy ways to do option C with Telegram and Pushover apps for example.
There can be basic networking reasons for this. For example if you are viewing the UI via HTTPS then you cannot use a HTTP link in the oh-image, you will need to use the HTTPS version of the link as some browsers will block non http sub content when your main URL is a HTTPS link. Proving that the direct link is working remotely is a good idea to prove that it works, but there are plenty of pitfalls that can stop stuff from working. This is another reason why I believe wireguard to be the better way forward, if it works when your at home, then it will work when your not at home and using wireguard.
Potentially when your at home your not using HTTPS to view the main UI, then when your away from home you are using HTTPS to connect to openHAB and that is where the issue lies.
Thank you for the detailed feedback. I will have a look at the Wireguard solution in detail.
binderth
(Thomas Binder)
November 22, 2022, 12:35pm
2810
I have a foscam FI9900P running and as it doesn’t offer MJPEG-Stream, I’d like to use use the binding for it.
So,what I did:
install binding (obviously )
sudo apt install ffmpeg
on my RaspberryPi4 running OH3.3
filled in IP, username, password and checked the ports (HTTP and ONVIF) for the binding
What I did get:
the “Snapshot”-Url in my items runs just fine (http://192.168.78.110:8080/ipcamera/BinderCam2/ipcamera.jpg )
the “MJPEG”-Url in my items doesn’t work (http://192.168.78.110:8080/ipcamera/BinderCam2/ipcamera.mjpeg )
I then let the binding run in TRACE mode:
2022-11-22 13:25:29.843 [DEBUG] [era.internal.handler.IpCameraHandler] - End of FOSCAM handler reached, so closing the channel to the camera now
2022-11-22 13:25:32.436 [DEBUG] [amera.internal.servlet.CameraServlet] - GET:/ipcamera.mjpeg, received from 192.168.78.129
2022-11-22 13:25:32.439 [DEBUG] [amera.internal.servlet.CameraServlet] - First stream requested, opening up stream from camera
2022-11-22 13:25:32.745 [TRACE] [era.internal.handler.IpCameraHandler] - Sending camera: GET: http://192.168.78.112:88/cgi-bin/CGIStream.cgi?cmd=GetMJStream&usr=onvif&pwd=password2
2022-11-22 13:25:37.752 [TRACE] [era.internal.handler.IpCameraHandler] - Sending camera: GET: http://192.168.78.112:88/cgi-bin/CGIProxy.fcgi?cmd=getDevState&usr=onvif&pwd=password2
2022-11-22 13:25:37.826 [TRACE] [era.internal.handler.IpCameraHandler] - HTTP Result back from camera is :<CGI_Result>
<result>0</result>
<IOAlarm>0</IOAlarm>
<motionDetectAlarm>1</motionDetectAlarm>
<soundAlarm>0</soundAlarm>
<record>0</record>
<sdState>0</sdState>
<sdFreeSpace>0k</sdFreeSpace>
<sdTotalSpace>0k</sdTotalSpace>
<ntpState>1</ntpState>
<ddnsState>0</ddnsState>
<url>http%3A%2F%2Fiw6558.myfoscam.org%3A88</url>
<upnpState>0</upnpState>
<isWifiConnected>0</isWifiConnected>
<wifiConnectedAP></wifiConnectedAP>
<infraLedState>0</infraLedState>
<humanDetectAlarmState>1</humanDetectAlarmState>
</CGI_Result>
:
2022-11-22 13:25:37.831 [DEBUG] [era.internal.handler.IpCameraHandler] - End of FOSCAM handler reached, so closing the channel to the camera now
I figured: as the camera doesn’t send an MJPEG-Stream, the CGI-URL of the camera won’t do: http://192.168.78.112:88/cgi-bin/CGIStream.cgi?cmd=GetMJStream&usr=onvif&pwd=password2 ?
So how do I setup the camera, that the binding will use the rtsp-stream and convert it into MJPEG via ffmpeg? I also tried to use rtsp://onvif:password2@192.168.78.112:88/videoMain
in the FFmpeg Input
section as this is the URL given from the SOAP response.
matt1
(Skinah)
November 22, 2022, 9:01pm
2811
To override the hardcoded url for foscam go to the things configs and enter in ffmpeg in all lowercase as the url. This forces it to create the stream from the rtsp url that is in the ffmpeginputurl. If the camera is onvif then it can auto detect the rtsp and does not need to be supplied.
Also you don’t need to enter in user:pass@ in any url in this binding.
1 Like
11194
(Вася Пупкин)
November 30, 2022, 4:43pm
2812
@matt1 Can you please tell me, where in the binding’s code setting update is initiated?
matt1
(Skinah)
December 1, 2022, 3:44am
2813
Not sure what your asking, can you reword and provide a little more to the question so it is clearer?
Hi.
I have the following issue.
I have multiple network interfaces residing on my RPi
WIFI
Cable
Tailscale VPN
All of them have their IP addresses.
The issue that “Image URL” item get and IP address of one of them, let’s take WIFI channel.
so when I use “Image URL” on MainUI and open it via Tailscale VPN ip, the image is not shown due to it tries to connect to WIFI ip which is unknown in Tailscale VPN ip range.
one option for me is that to have instead of IP in “Image URL” DNS name like http://camname:8080/ipcamera/xxxxx/ipcamera.jpg
so that I can add to host a mapping to use either of these 3 IP addresses
how can I configure to fill such item with DNS name instead of IP?
11194
(Вася Пупкин)
December 1, 2022, 3:08pm
2815
Problem is that I can’t see Dahua channels polling - if setting changed for some reason (like every reboot sets Motion Detection off), then the binding is unaware of this change. I can see the code in processSettings function, initiated by channelRead function, but cannot find out where channelRead function is called by binding.
matt1
(Skinah)
December 1, 2022, 11:20pm
2816
The binding opens a connection to the ‘alarm stream’ and this connection stays open and never closes, if it does close, then every 8 seconds the binding is checking and will re-open the stream for alarm messages and it will log this has occured. Then the channelRead function will fire on every reply back from the camera, it is event based and NOT POLLED so this is why you can not find the function getting called. There is no delay it happens right away on the event.
That is how it works, but do you have an actual problem, if so open a new thread and feel free to mention me in it.
Nik_Kashtanov:
I have multiple network interfaces residing on my RPi
WIFI
Cable
Tailscale VPN
All of them have their IP addresses.
The issue that “Image URL” item get and IP address of one of them
The binding will use what is selected as the preffered network IP in the main settings on openHAB, I think it is under NETWORK menu option. This way you select this ONCE and it updates for all bindings.