viseron icon indicating copy to clipboard operation
viseron copied to clipboard

Documentation - How to get the camera slugs

Open tttdevelop opened this issue 2 years ago • 2 comments

In the chapter Dynamic MJPEG Streams, it mentions how to find your camera slugs via a docker exec command. This is not not working. It comes up with the error;

Traceback (most recent call last):
  File "<string>", line 1, in <module>
ImportError: cannot import name 'CONFIG' from 'viseron.config' (/src/viseron/config/__init__.py)

The correct docker exec command is this;

docker exec -it viseron python3 -c "from viseron.config import load_config; from viseron.helpers import print_slugs; print_slugs(load_config());"

tttdevelop avatar May 04 '22 12:05 tttdevelop

Thanks! Will make sure to fix it as part of #306

roflcoopter avatar May 08 '22 15:05 roflcoopter

In the chapter Dynamic MJPEG Streams, it mentions how to find your camera slugs via a docker exec command. This is not not working. It comes up with the error;

To satisfy my own curiosity, what is a camera slug?

(apologies for messing up the thread)

gniknalu avatar Jun 01 '22 13:06 gniknalu

This is no longer an issue in v2 since you specify the slugs yourself

roflcoopter avatar Dec 19 '22 14:12 roflcoopter