Supergiovane / node-red-contrib-hikvision-ultimate

A native set of node for Hikvision Cameras, Doorbells, Alarms, Radars etc.
https://www.facebook.com/supergiovaneDev
MIT License
51 stars 11 forks source link

Text Overlay Size #8

Closed deggle closed 3 years ago

deggle commented 3 years ago

This is a really useful node so thank you so much for your work.

One issue I've found is that when posting a text overlay the set font size is overridden to the smallest. On my setup this is too small to be useful so I'm not really able to use this feature.

I think it would be helpful if the sizes (for me 16x16, 32x32, 64x64) could be specified in the node as I assume this must already be being in the data posted (or perhaps it's not and DVRs that support multiple sizes are defaulting to [0] which is 16x16)?

There is also a setting for flashing and/or transparent text which would be pretty useful if it could be added.

Settings on my DVR, per camera: image

Supergiovane commented 3 years ago

Hi Deggle the ISAPI documentation doesn't even mention the font size, so i must dig into the internet and find a way to do this. I'll take a look.

deggle commented 3 years ago

Thanks for taking the time to look into it. Let me know if I can do anything to help.

I'm not sure if the element names in the web GUI align with the ISAPI info, but in case it's useful: image

Supergiovane commented 3 years ago

Mmm... yes and no, but thank you anyway... i maybe found an old API document mentioning this. Stay tuned. If possible, i'll push a new version already today.

Supergiovane commented 3 years ago

Sorry for the delay i had to fix some issue first with TTS-Ultimate. I'll work on that tomorrow. Sorry for that!

xury77 commented 3 years ago

I had the same too. I fixed it myself, but I don't know is a common solution for other cameras/DVRs For my DVR must be sent a frame started `

1 1` In your version you started at `` I think it should be nested in `` with the fontSize and TextOverlayList too. Below is my modified hikvisionUltimateText.js: This is config for 32x32 size. FontSize 0 is 16x16 FontSize 1 is 32x32 FontSize 2 is 64x64 TextOverlayList is how many rows is available. For my DVR max is 6 [hikvisionUltimateText.js.txt](https://github.com/Supergiovane/node-red-contrib-hikvision-ultimate/files/5898930/hikvisionUltimateText.js.txt) So I think the complete must be started at xml tag. It seems that if fontsize is omitted it is set to 0 (16x16) [edited] Ok I found how to set transparency and flashing Let insert: ``` false false ``` above `1`
Supergiovane commented 3 years ago

Hi Xuri nope, this isn't standard, as ISAPI tell to do this in other way. Your suggestion didn't work for neither my NVR nor my cameras. I'm doing what ISAPI documentation tells to do. Let's see what happens.

Supergiovane commented 3 years ago

I've 4 ISAPI documents, and each one is telling a different way to do the same things. I won't loose other time on that, but i found a solution for all you: i'll create an XML sender node, so you can freely send whatever XML you want.

Supergiovane commented 3 years ago

V. 1.0.30 is out with this new node.

deggle commented 3 years ago

Hello,

Shame to not have the functionality in the existing node, but understand the approach - and the benefits when I start to look into ISAPI (not familiar at all yet). Thanks to @xury77 for the code tweak above as that helped get what I was initially doing to work!

Thanks again,

Tim