Search found 49 matches

by patmansf
Sun Jun 16, 2024 3:28 pm
Forum: ZoneMinder 1.36.x
Topic: zmtrigger.pl when using telnet from a file fails
Replies: 10
Views: 2125

Re: zmtrigger.pl when using telnet from a file fails

I was able to use nc, and had to add a new line at the end of the input text. So this works: myipaddr=192.168.1.1 myport=6802 monitor=$1 shift m1=$1 shift m2=$1 shift data="${monitor}|on+10|10|${m1}|${m2}| " echo "Sending ${data} to zoneminder at ${myipaddr} port ${myport}" # telnet does not work ...
by patmansf
Fri Jun 07, 2024 2:47 am
Forum: ZoneMinder 1.36.x
Topic: zmtrigger.pl when using telnet from a file fails
Replies: 10
Views: 2125

Re: zmtrigger.pl when using telnet from a file fails

mikb wrote: Wed Jun 05, 2024 5:19 pm ENOTTY is correct. It's not a TTY. You are redirecting input from a file. So it's not a TTY.
Sure, but I don't know why it's sending an lseek only when I do not have a tty.

That is, when I use telnet directly I don't see any lseek calls.

This is based on an example zoneminder script.
by patmansf
Tue Jun 04, 2024 11:29 pm
Forum: ZoneMinder 1.36.x
Topic: zmtrigger.pl when using telnet from a file fails
Replies: 10
Views: 2125

Re: zmtrigger.pl when using telnet from a file fails

patmansf wrote: Mon Jun 03, 2024 1:45 pm [Yeah I'll try using expect, hopefully it won't have the ENOTTY issue.
expect hits the same issue.
by patmansf
Mon Jun 03, 2024 1:45 pm
Forum: ZoneMinder 1.36.x
Topic: zmtrigger.pl when using telnet from a file fails
Replies: 10
Views: 2125

Re: zmtrigger.pl when using telnet from a file fails

Try echo not cat. There is an example here: https://wiki.zoneminder.com/ZMTrigger The "cat" is just to dump the contents of the file for exposition of the contents, not as part of the failing command! :) Sometimes things like this don't work because of timing problems, and you have to start getting ...
by patmansf
Sun Jun 02, 2024 3:58 pm
Forum: ZoneMinder 1.36.x
Topic: zmtrigger.pl when using telnet from a file fails
Replies: 10
Views: 2125

Re: zmtrigger.pl when using telnet from a file fails

I used perl -d:Trace, and it looks like nothing is even making it back to the perl code - to the select call in zmtrigger.pl in my code at line 135.
by patmansf
Sun Jun 02, 2024 2:45 pm
Forum: ZoneMinder 1.36.x
Topic: zmtrigger.pl when using telnet from a file fails
Replies: 10
Views: 2125

Re: zmtrigger.pl when using telnet from a file fails

burger wrote: Sun Jun 02, 2024 2:28 am Try echo not cat. There is an example here:

https://wiki.zoneminder.com/ZMTrigger
I'm not using cat, but using echo it still fails the same way.
by patmansf
Sun Jun 02, 2024 12:35 am
Forum: ZoneMinder 1.36.x
Topic: zmtrigger.pl when using telnet from a file fails
Replies: 10
Views: 2125

zmtrigger.pl when using telnet from a file fails

Hi - If I directly telnet to the IP address and port that zmtrigger.pl is running on and send commands, it works as expected and I can trigger alarms via telnet. But, if I script it as shown in the documentation or have telnet read from a file it does not work, and no errors are logged. For example ...
by patmansf
Sat Sep 30, 2023 3:57 am
Forum: ZoneMinder 1.36.x
Topic: Filter has no "Disk Space" choice
Replies: 5
Views: 5005

Re: Filter has no "Disk Space" choice

The problem with Event Disk Space is that it is per event, not aggregate. What you want hasn't been implemented, although these days we likely have the infrastructure in place to do it.... we have the value you want in the Storage Areas table. So we should be able to add code to select it. This is ...
by patmansf
Mon Sep 25, 2023 5:17 pm
Forum: ZoneMinder 1.36.x
Topic: Filter has no "Disk Space" choice
Replies: 5
Views: 5005

Re: Filter has no "Disk Space" choice

Event disk space is the one. If you want to limit zm storage to a specific size, the best way is simply make a partition of the size needed. Otherwise set the percentage based on the available size. E.G., if you have 2GB disk, and you want to use 1GB of it, set disk percent to 50 or a bit less ...
by patmansf
Sat Sep 23, 2023 8:08 pm
Forum: ZoneMinder 1.36.x
Topic: Filter has no "Disk Space" choice
Replies: 5
Views: 5005

Filter has no "Disk Space" choice

Running v1.36.33 via rpmfusion-free-updates on Fedora 38. In the filters, I see no "Disk Space" as an item to compare with - the only ones with Disk in the name that show up are "Disk Blocks", "Disk Percent" and "Event Disk Space". Was it renamed? Otherwise any ideas on how to get it to show up? I ...
by patmansf
Sat May 14, 2022 4:09 pm
Forum: ZoneMinder 1.36.x
Topic: False alarms when the lights goes out (Cam IR light)
Replies: 4
Views: 3802

Re: False alarms when the lights goes out (Cam IR light)

You should post a video of what you want to capture too, we can't tell if this is where the motion is expected or if this is where no motion is expected. But, it looks like you should make this a type "preclusive" or add a preclusive zone. Select an area where you expect no motion, and set it up so ...
by patmansf
Sat May 07, 2022 7:06 pm
Forum: ZoneMinder 1.36.x
Topic: ZMU - Bogus number of lines return from query
Replies: 3
Views: 10447

Re: ZMU - Bogus number of lines return from query

Huh, I see the same thing - Chrome causes it to generate that error, Firefox does not.

And I see a zmu -m 1 running.
by patmansf
Tue Mar 29, 2022 10:37 pm
Forum: ZoneMinder 1.36.x
Topic: no "Groups" on web console page
Replies: 4
Views: 4534

Re: no "Groups" on web console page

UPDATE Users set Groups='Edit' WHERE Username='admin';
That worked, thanks.
by patmansf
Tue Mar 29, 2022 8:15 pm
Forum: ZoneMinder 1.36.x
Topic: no "Groups" on web console page
Replies: 4
Views: 4534

Re: no "Groups" on web console page

How can I do that for the "admin" user? My admin user does have an * by it, I don't know if that means anything. Edit: I added another user and gave them edit permissions on everything and was able to add a group using that new user. But, I can't change what the "admin" user can do.
by patmansf
Tue Mar 29, 2022 3:08 pm
Forum: ZoneMinder 1.36.x
Topic: no "Groups" on web console page
Replies: 4
Views: 4534

no "Groups" on web console page

Hi - Zoneminder v1.36.12 via rpmfusion on Fedora 35. My main web console page has no "Groups" item, it just has the "Console", "Options", "Log", "Filters" and more. The documentation shows this highlites this as "C" on https://zoneminder.readthedocs.io/en/stable/userguide/gettingstarted.html, but I ...