7
33
Fork
You've already forked sentryshot
7

[Feature Request] Settings CLI #92

Open
opened 2025年10月07日 06:34:55 +02:00 by fuguesoft · 4 comments

Would it be possible to configure monitors and groups via the command line or an api? Maybe even options in the config file?

Would it be possible to configure monitors and groups via the command line or an api? Maybe even options in the config file?

If your just trying to make live view groups, go2rtc works pretty well for that.

If your just trying to make live view groups, go2rtc works pretty well for that.

To clarify, what I'm after is a way to update stream settings and groups via the commandline. Like instead of having to click through the menu, I could open a shell in the container or ssh into sentryshot.

Then I'd do something like:

sentryshot --update-monitor 0 name=my_cam enable=true source=rtsp://<dvr_ip:port/channel> record=true length=20

Or:

sentryshot --create-monitor name=front-yard enable=true source=rtsp://<dvr_ip:port/channel> record=false

Or even:

sentryshot --create-group name=FOH monitors=patio,front-door,dining-1,dining-2,server-station-1

Issuing commands to sentryshot via some API, essentially.
A config file option would be nice as it would make setup easily reproducible.

To clarify, what I'm after is a way to update stream settings and groups via the commandline. Like instead of having to click through the menu, I could open a shell in the container or ssh into sentryshot. Then I'd do something like: ```sh sentryshot --update-monitor 0 name=my_cam enable=true source=rtsp://<dvr_ip:port/channel> record=true length=20 ``` Or: ```sh sentryshot --create-monitor name=front-yard enable=true source=rtsp://<dvr_ip:port/channel> record=false ``` Or even: ```sh sentryshot --create-group name=FOH monitors=patio,front-door,dining-1,dining-2,server-station-1 ``` Issuing commands to sentryshot via some API, essentially. A config file option would be nice as it would make setup easily reproducible.
Owner
Copy link

This would have to support multiple motion detection zones, and I don't see a sane way to configure that with commands.

A config file option would be nice as it would make setup easily reproducible.

You could just edit the json files in configs/monitors/ and restart. I don't think the storage format will change any time soon.

This would have to support multiple motion detection zones, and I don't see a sane way to configure that with commands. > A config file option would be nice as it would make setup easily reproducible. You could just edit the json files in `configs/monitors/` and restart. I don't think the storage format will change any time soon.

ohhh I seeeee
I did not know about the .json files here, tyty!

ohhh I seeeee I did not know about the .json files here, tyty!
Sign in to join this conversation.
No Branch/Tag specified
master
sub_rec
recdb_v2
vino
sidebar
temp
range-streamer
logdb
v0.3.11
v0.3.10
v0.3.9
v0.3.8
v0.3.7
v0.3.6
v0.3.5
v0.3.4
v0.3.3
v0.3.2
v0.3.1
v0.3.0
v0.2.26
v0.2.25
v0.2.24
v0.2.23
v0.2.22
v0.2.21
v0.2.20
v0.2.19
v0.2.18
v0.2.17
v0.2.16
v0.2.15
v0.2.14
v0.2.13
v0.2.12
v0.2.11
v0.2.10
v0.2.9
v0.2.8
v0.2.7
v0.2.6
v0.2.5
v0.2.4
v0.2.3
v0.2.2
v0.2.1
v0.2.0
v0.1.3
v0.1.2
v0.1.1
v0.1.0
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
3 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
SentryShot/sentryshot#92
Reference in a new issue
SentryShot/sentryshot
No description provided.
Delete branch "%!s()"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?