Search found 68 matches

by tsp84
Wed Apr 14, 2021 9:39 pm
Forum: Mobile Apps
Topic: event recovery with MQTT
Replies: 2
Views: 205

Re: event recovery with MQTT

You could setup a script on your MQTT host to take the info from the MQTT and use pyzm or a custom bash script to grab the videos and info of that event. This would all be up to you to script though. I don't think this functionality is built into the MQTT portion.
by tsp84
Thu Mar 25, 2021 6:56 pm
Forum: Mobile Apps
Topic: wondering if anyone else has this issue?
Replies: 0
Views: 1040

wondering if anyone else has this issue?

Sometimes the polygon area for my zones wont be the custom ones i setup in objectconfig.ini, I can see it in the objdet jpegs. Sometimes its the custom polygon area and other times its the ZM zone. I noticed in objectconfig.ini that import_zm_zones=yes is commented out. I uncommented it and set it t...
by tsp84
Thu Mar 25, 2021 2:50 am
Forum: ZoneMinder 1.35.x
Topic: API call equivalent to zmpkg.pl status ? states.json bug?
Replies: 4
Views: 746

Re: API call equivalent to zmpkg.pl status ? states.json bug?

How about the API call to change to a custom run state? /change/ seems to be just for stop/start/restart of ZM itself.
by tsp84
Thu Mar 25, 2021 1:18 am
Forum: ZoneMinder 1.35.x
Topic: API call equivalent to zmpkg.pl status ? states.json bug?
Replies: 4
Views: 746

Re: API call equivalent to zmpkg.pl status ? states.json bug?

ah crap found it after looking in zmNinja source. daemonCheck.json
by tsp84
Thu Mar 25, 2021 1:10 am
Forum: ZoneMinder 1.35.x
Topic: API call equivalent to zmpkg.pl status ? states.json bug?
Replies: 4
Views: 746

API call equivalent to zmpkg.pl status ? states.json bug?

Is there an API call to see if zm is running or stopped like zmpkg.pl status? The only thing I saw in docs was to use server.json but if its not a multi server setup it returns empty. For the states.json bug. If you set the run state to STOP and run zmpkg.pl status it returns stopped, as expected. I...
by tsp84
Tue Mar 23, 2021 2:31 pm
Forum: Mobile Apps
Topic: add an extra hard drive in zoneminder
Replies: 14
Views: 1585

Re: add an extra hard drive in zoneminder

Check the log. See if the permissions are causing errors. See if user www-data can write to the /path/to/hdd
by tsp84
Tue Mar 23, 2021 11:51 am
Forum: Mobile Apps
Topic: add an extra hard drive in zoneminder
Replies: 14
Views: 1585

Re: add an extra hard drive in zoneminder

Then the events that happen now will start to save to your new hard drive
by tsp84
Tue Mar 23, 2021 11:08 am
Forum: Mobile Apps
Topic: add an extra hard drive in zoneminder
Replies: 14
Views: 1585

Re: add an extra hard drive in zoneminder

  • First click the yellow circled area in CONSOLE view (ip or /path/ to camera)
Screenshot from 2021-03-23 04-59-31.png
Screenshot from 2021-03-23 04-59-31.png (507.75 KiB) Viewed 1487 times
  • Then go to "Storage" tab circled in green and then click the drop down menu circled in blue and select your new hard drive
Screenshot from 2021-03-23 05-03-24.png
Screenshot from 2021-03-23 05-03-24.png (424.57 KiB) Viewed 1487 times
by tsp84
Tue Mar 23, 2021 5:26 am
Forum: ZoneMinder 1.35.x
Topic: New night / day sunrise / sunset sunwait Bash script. API 2.0 tokens only
Replies: 2
Views: 710

Re: New night / day sunrise / sunset sunwait Bash script. API 2.0 tokens only

#!/bin/bash # call this with a cronjob every 10 mins from root but assigned www-data user - *10 * * * * /usr/bin/sudo -u www-data /path/to/this/script OR # make a systemd .timer and .service file and use systemctl enable --now yourfileyoumade.timer. --now executes script now and starts timer # inst...
by tsp84
Tue Mar 23, 2021 5:24 am
Forum: ZoneMinder 1.35.x
Topic: New night / day sunrise / sunset sunwait Bash script. API 2.0 tokens only
Replies: 2
Views: 710

New night / day sunrise / sunset sunwait Bash script. API 2.0 tokens only

I was using the old sunwait script on this forum and decided to jazz it up a little bit. This script assumes a few things and will break otherwise. Only usable with API 2.0 access/refresh tokens Requires: jq, sunwait, curl, bc ZM needs to be setup with a hash passphrase, not append ips to hash, and ...
by tsp84
Mon Mar 22, 2021 7:40 pm
Forum: Mobile Apps
Topic: add an extra hard drive in zoneminder
Replies: 14
Views: 1585

Re: add an extra hard drive in zoneminder

I dont understand the last reply. As long as you have that hard drive properly setup and mounted into the docker container, you should only need to point ZM to the /path/to/new/hard/drive, make sure it is "Enabled" and then change the "Storage" options in your monitor feeds to point towards your new...
by tsp84
Mon Mar 22, 2021 3:55 am
Forum: Mobile Apps
Topic: match_past_detections granularity?
Replies: 14
Views: 1718

Re: match_past_detections granularity?

I created a pull request, here is the link to see what I changed if you want to play around/optimize.
https://github.com/pliablepixels/zmeven ... n/pull/377
by tsp84
Mon Mar 22, 2021 2:25 am
Forum: Mobile Apps
Topic: match_past_detections granularity?
Replies: 14
Views: 1718

Re: match_past_detections granularity?

I modified image_manip.py and common_params.py in order to implement a granularity system for "past_det_max_diff_area". Also required adding a few config options in object_config.ini. Per monitor overrides work as expected. Code might be a bit ugly but it works so far. Deff needs some optimization a...
by tsp84
Sun Mar 21, 2021 9:36 pm
Forum: Mobile Apps
Topic: add an extra hard drive in zoneminder
Replies: 14
Views: 1585

Re: add an extra hard drive in zoneminder

Dont forget to change the "Storage" on your monitor feeds to point to your new hard drive once you have it set up in zm.