tjko / nxgipd

nxgipd - a monitoring daemon for UTC Interlogix / GE Security / Caddx NetworX series alarm systems
GNU General Public License v2.0
39 stars 19 forks source link

Feature request: 2 new nxcmd commands to set the clock and save the status XML file #4

Closed Dogora closed 9 years ago

Dogora commented 9 years ago

I have a suggestion for 2 more commands to the daemon via nxcmd: one to set the panel's clock, and one to save the status XML file. While these commands may not get used much, they could be nice to have at times.

kirkawolff commented 9 years ago

Seconded

tjko commented 9 years ago

I added "setclock" option/command to nxcmd: a75b7bf845e051a499e4839d46bbc7a30f12931e

nxcmd is for "issuing" command to the alarm panel, so issuing commands to the daemon/server process should be separate mechanism. For now daemon process saves the status file every time it receives SIGUSR1 signal: 81974ec1fa39cd73c873202c0d23053691440c2e

But status file saving probably should happen periodically, to guard against power loss, etc. maybe it really should be configurable option to specify how often daemon should save its status...

Dogora commented 9 years ago

Thanks for the addition.