As a camera in a front end gives this “wow factor” decided to add one.
I have several cameras which are connected to the zoneminder. What i did - went to the zoneminder monitor window. Tight click. Copy url and paste it to the config. I have tried with generic - with no success. But mjpgeg seems to work fine in the configuration below
camera:
- platform: mjpeg
mjpeg_url: http://zoneminder/cgi-bin-zm/nph-zms?mode=jpeg&scale=33&maxfps=30&buffer=1000&monitor=1&connkey=some_numbers&rand=some_numbers
The only problem - i get a lot of errors in the logs and wonder if this can be fixed
17-02-13 08:24:26 WARNING (Thread-4) [requests.packages.urllib3.connectionpool] Failed to parse headers (url=http://robot.nora.lemurs:80/cgi-bin-zm/nph-zms?mode=jpeg&scale=33&maxfps=30&buffer=1000&monitor=1&connkey=216762&rand=579691): [StartBoundaryNotFoundDefect(), MultipartInvariantViolationDefect()], unparsed data: ''
Traceback (most recent call last):
File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/requests/packages/urllib3/connectionpool.py", line 398, in _make_request
assert_header_parsing(httplib_response.msg)
File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/requests/packages/urllib3/util/response.py", line 66, in assert_header_parsing
raise HeaderParsingError(defects=defects, unparsed_data=unparsed_data)
requests.packages.urllib3.exceptions.HeaderParsingError: [StartBoundaryNotFoundDefect(), MultipartInvariantViolationDefect()], unparsed data: ''