Closed ronluna closed 2 years ago
can you please check latest version (v2.0.12)?
thanks
All working correctly now after upgrading. Thanks!!!
By the way, wondering if there is anyway to sideload shinobi into Home assistant so recorded events can bee easily access ?
Recordings are available in media browser, is that what you are looking for?
I was trying to see if there is a way to access shinobi's recording from within HA without having to leave the HA UI. would media browser allows to access recording from within HA? I'm trying to find it but I can't seem to see it anywhere..
Apologies for the late reply, I've been away for the past few days...
Amazing plugin... Thanks!
That's ok, and thanks for the feedback.
Yes, it should provide you the ability to see videos from recording, Did you set the media browser integration? If you did, you should see the recording folder in it, If it's not working, please let me know
Thanks
Found the "Media Browser" never used it before. Recordings are in there!
Thumbnails for each recording are not showing. is it normal?
Mainly because Shinobi doesn't produce them and didn't want to extract it from video on runtime (to avoid overloading the HA)
I will try to see if I can create a plugin for Shinobi that produces it once video file is created and then use it
Sweet!!!
@ronluna thumbnails support add
Major refactor for the media source component:
Thumbnails support
Shinobi Video does not provide out of the box thumbnails endpoint, to add that support, please follow the instructions in shinobi-thumbnails repository.
Testing now. Although it seems the is installed and enabled it does not seems to be working.
`curl http://10.10.10.180:8080/:removed/thumbnails/:ke <!DOCTYPE html>
Cannot GET /:removed/thumbnails/:ke
` Also Home assistant is no longer able to play shinobi's recordings from the media browser. It does show a thumbnail of the cameras and the day but once inside a day it won't show the thumbnail and it won't play any video when clicking on them.
Please open another issue for the media playing that does not work.
As for the shinobi, it seems that you have installed it as plugin and not as a customAutoLoad, If you installed it as customAutiLoad, please report in the shinobi-thumbnails repo (gitlab)
Thanks
found the issue with the media play for media source, v2.0.19 solves it
also updated documentation for shinobi-thumbnails in its repository (GitLab)
Get latest release from GitLab:
shinobi-thumbnails
releasesSource code (zip)
asset of latest versionInstall Shinobi customAutoLoad:
Custom Auto Load
Download URL for Module
Download
Enable
If previous version of the module is installed, remove it before updateing
For some reason the logs shows the following during startup:
` This error originated from a custom integration.
Logger: custom_components.shinobi.core.components.camera Source: custom_components/shinobi/core/components/camera.py:166 Integration: Shinobi Video NVR (documentation, issues) First occurred: 10:51:21 AM (2 occurrences) Last logged: 10:51:21 AM
Failed to initialize CoreCamera instance, Error: invalid literal for int() with base 10: '', Line: 63 `
And I assume this is the reason why the card on the dashboard does not display any video feed and the logs shows the following when trying to access the shinobi card in the dashboard:
` This error originated from a custom integration.
Logger: aiohttp.server Source: custom_components/shinobi/core/components/camera.py:119 Integration: Shinobi Video NVR (documentation, issues) First occurred: 10:53:36 AM (3 occurrences) Last logged: 10:53:38 AM
Error handling request Traceback (most recent call last): File "/usr/local/lib/python3.10/site-packages/aiohttp/web_protocol.py", line 435, in _handle_request resp = await request_handler(request) File "/usr/local/lib/python3.10/site-packages/aiohttp/web_app.py", line 504, in _handle resp = await handler(request) File "/usr/local/lib/python3.10/site-packages/aiohttp/web_middlewares.py", line 117, in impl return await handler(request) File "/usr/src/homeassistant/homeassistant/components/http/security_filter.py", line 60, in security_filter_middleware return await handler(request) File "/usr/src/homeassistant/homeassistant/components/http/forwarded.py", line 100, in forwarded_middleware return await handler(request) File "/usr/src/homeassistant/homeassistant/components/http/request_context.py", line 28, in request_context_middleware return await handler(request) File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 82, in ban_middleware return await handler(request) File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 236, in auth_middleware return await handler(request) File "/usr/src/homeassistant/homeassistant/components/http/view.py", line 136, in handle result = await result File "/usr/src/homeassistant/homeassistant/components/camera/init.py", line 722, in get return await self.handle(request, camera) File "/usr/src/homeassistant/homeassistant/components/camera/init.py", line 740, in handle image = await _async_get_image( File "/usr/src/homeassistant/homeassistant/components/camera/init.py", line 169, in _async_get_image if image_bytes := await camera.async_camera_image( File "/config/custom_components/shinobi/core/components/camera.py", line 119, in async_camera_image url = self._still_image_url.async_render() AttributeError: 'NoneType' object has no attribute 'async_render'
`
Everything works as expected except the camera feeds (Motion detection works.. etc...)...
Any ideas how to solve this?