Hi
I'm still at the start of a steep learning curve to ZM, so just need a pointer to the approach to take.
I want to get some serial notification of events from the RS232 com port and X10 parts of ZM say it sends stuff out on events which I could then interpret.
My question is "Instead of using the X10 method, is there a generic serial port approach to use OR am I better off installing the event server which looks wildly complex but will probably do what I want and have the advantage I can expand my requirements to object recognition which I assume it will do."
cheers
Keith
X10 serial output
Re: X10 serial output
Hi fluffykeith,
the zmtrigger.pl code has generic serial stuff in it... it needs to be enabled by uncommenting a line at the top.
I'm not sure what the state of the zmx10.pl code is. Not many people use x10 any more.
The zmeventserver stuff is mega complicated with many options for various ways to send out notifications, but serial is not one of them, so that would have to be added.
You are probably best in the short term to work with zmtrigger/zmx10 and see what's what. Long term, I'd like to see serial as it's own notification type, used by all three.
If perl is not your thing and something else like python is, you can always start from scratch. In 1.37 we can just run any program on event creation/finish.
the zmtrigger.pl code has generic serial stuff in it... it needs to be enabled by uncommenting a line at the top.
I'm not sure what the state of the zmx10.pl code is. Not many people use x10 any more.
The zmeventserver stuff is mega complicated with many options for various ways to send out notifications, but serial is not one of them, so that would have to be added.
You are probably best in the short term to work with zmtrigger/zmx10 and see what's what. Long term, I'd like to see serial as it's own notification type, used by all three.
If perl is not your thing and something else like python is, you can always start from scratch. In 1.37 we can just run any program on event creation/finish.
-
- Posts: 14
- Joined: Wed Jun 07, 2023 3:11 pm
Re: X10 serial output
Thanks iconnor
yes good idea I can just run my own python.
I can do that by the "execute command on match" filter, right?
So now I'm thinking - Can I set up different zones and pass some info that would indicate the zone that alarmed?
**** Edit - yes I found it "filter on Alarmed Zone"****
Does "%EC% Cause of the event" indicate the zone or can I match on the zone and have multiple filters then use "%EN% Name of the event" to know the zone?
I think it will be good because I can also pass the python the image path and process it.
Also what does this give? "%MOD% Path to image containing object detection"
Just wondering if it would be some sort of movement detection mapping image that I could then process to determine the position of the movement.
Thanks - lots for me to play with, I just need to fix the start up issue I have, see other post.
yes good idea I can just run my own python.
I can do that by the "execute command on match" filter, right?
So now I'm thinking - Can I set up different zones and pass some info that would indicate the zone that alarmed?
**** Edit - yes I found it "filter on Alarmed Zone"****
Does "%EC% Cause of the event" indicate the zone or can I match on the zone and have multiple filters then use "%EN% Name of the event" to know the zone?
I think it will be good because I can also pass the python the image path and process it.
Also what does this give? "%MOD% Path to image containing object detection"
Just wondering if it would be some sort of movement detection mapping image that I could then process to determine the position of the movement.
Thanks - lots for me to play with, I just need to fix the start up issue I have, see other post.