QuantumEntangledAndy / neolink

An RTSP bridge to Reolink IP cameras
GNU Affero General Public License v3.0
297 stars 44 forks source link

Pir status #50

Closed fmarzocca closed 1 year ago

fmarzocca commented 1 year ago

Is it possible to query the PIR status?

QuantumEntangledAndy commented 1 year ago

Currently not but it should be an easy thing to add once I have some time.

fmarzocca commented 1 year ago

Great! Thank you

QuantumEntangledAndy commented 1 year ago

Might I ask what it is you are trying to achieve? I might be able to get an idea for how to present the data if I know how you want to use it

QuantumEntangledAndy commented 1 year ago

p.s. lets keep this issue open until it is merged

fmarzocca commented 1 year ago

Simple. Just integrate the PIR status into my NodeRed automation. So in the Dashboard I could see the current status and switch it if I need.

QuantumEntangledAndy commented 1 year ago

Can node red parse XML data from stdout? The camera uses xml for configuration and it would be easist to pass that along.

fmarzocca commented 1 year ago

I can parse XML if I receive it as a function return. If it is stdout, I can arrange. The best would be JSON

QuantumEntangledAndy commented 1 year ago

Add in #53

neolink pir --config=config.toml

while omitting the on/off will report the current PIR status in xml format