Current Run State information extraction

Discussions related to the 1.36.x series of ZoneMinder
Post Reply
lk777
Posts: 17
Joined: Wed Jun 02, 2021 2:32 pm

Current Run State information extraction

Post by lk777 »

Hi,

ZM 1.36.5

I am using Home Assistant and Node-Red to automate ZoneMinder scheduling and data from/to ZoneMinder for a Security Alarm.

Everything works fine, but I would like to extract the current Run State information from ZoneMinder.

Is it possible to achieve?

Thanks in advance for any help.
lk777
Posts: 17
Joined: Wed Jun 02, 2021 2:32 pm

Re: Current Run State information extraction

Post by lk777 »

I figured it out.

In Node-Red used mysql node to query zm database:

SELECT Name FROM `States` WHERE IsActive=1

Then passed results to Home Assistant Call Service node (input_text helper).
Post Reply