bartbutenaers / node-red-contrib-onvif-nodes

Node Red nodes for communicating with OnVif compliant IP devices
Apache License 2.0
65 stars 25 forks source link

Tapo c200 camera #29

Closed fmarzocca closed 2 years ago

fmarzocca commented 2 years ago

Hi,

I am using a Tapo Tp-link C200 camera (Onvif). How can I enable/disable Privacy Mode with your node? Thanks

bartbutenaers commented 2 years ago

Hello Fabio (@fmarzocca),

Sorry for the delay. I had overlooked your question ...

When looking at that privacy mode feature, it seems to me that it is a typical Tapo feature? I see that some other camera's implement it by physical movements: e.g. rotate the camera lens, so it cannot record any video anymore.

I don't think that this is an Onvif feature, but I might be mistaken... Have you seen anything about this in an Onvif related article perhaps?

But you might be able to accomplish it by using the http-request node, to send a http request to your camera. There is e.g. a Python library that has implemented a setPrivacyMode function, which also sends a http request... And Zoneminder does it the same way in their sleep function.

Bart

fmarzocca commented 2 years ago

Hi Bart,

thank you for your answer. I don't know much about Tapo's "privacy mode" feature. I have asked to tp-link support, but they are just answering "use the app"! I will have a look at that python library!

Best

Fabio

On Thu, Oct 7, 2021 at 12:11 AM bartbutenaers @.***> wrote:

Hello Fabio @.*** https://github.com/fmarzocca),

Sorry for the delay. I had overlooked your question ...

When looking at that privacy mode https://www.tp-link.com/ae/support/faq/2791/ feature, it seems to me that it is a typical Tapo feature? I see that some other camera's implement it by physical movements: e.g. rotate the camera lens, so it cannot record any video anymore.

I don't think that this is an Onvif feature, but I might be mistaken... Have you seen anything about this in an Onvif related article perhaps?

But you might be able to accomplish it by using the http-request node, to send a http request to your camera. There is e.g. a Python library that has implemented a setPrivacyMode https://github.com/JurajNyiri/pytapo/blob/87dbd0cbf2285b51051a42099120af72bc0563c1/pytapo/__init__.py#L244 function, which also sends a http request... And Zoneminder does it the same way in their sleep https://raw.githubusercontent.com/oparm/zoneminder-tapo-c200/main/TapoC200.pm function.

Bart

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/bartbutenaers/node-red-contrib-onvif-nodes/issues/29#issuecomment-937240534, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACBCQ3VRNSFKNT4TSJYTMWLUFTCPPANCNFSM5FI26T2A . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

fmarzocca commented 2 years ago

Hi Bart,

I managed to let it working with the pytapo library! Thank you very much

Fabio

bartbutenaers commented 2 years ago

Hey Fabio, You are welcome! You could also try to figure out which http requests are being send by that python library. E.g. by enabling the logs of the http request (e.g. here. Then you can use a simple http-request node to send the same requests. That way you have a very simple flow... Kind regards, Bart