New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Snapshot not happening. #14
Comments
Can you tell me what model of camera is this? |
One more question, if you do a screen refresh does the picture ever update? |
The model is VMC3030. . it's the original Wire-Free camera. |
I have a couple of those cameras and I'm seeing the same issue. I'll take a look at it. |
I noticed that a few of the fields on the snapshot request were wrong. I checked in a fix. But here's the weird thing:
So I'm going to reboot my base station and my cameras to see if that makes a difference. |
From the app camera positioning option works for me. Do you want me to try it from the web or does it matter? |
If you could try the website. It seems to work differently from the app and I only see the problem on the website. The underlying code replicates the website behaviour. You can follow what's happening if you use Chrome by pressing CTRL+SHIFT+I. |
@twrecked Two of my cameras it worked fine via the web. However, one of my cameras was stuck in the 'busy' state. Chrome Dev is spitting out the response: {"success":true} . . I didn't catch the request. |
Same issue here with the old cameras, new Pro's work fine. |
I've also noticed the glance card shows a slightly different image height for snapshot vs newly updated image after a video was recorded / streamed, can this be made equal via options (I realise the aspects are likely different, but it drives my OCD mad!). |
@Swiftnesses I'm struggling with the snapshots on my older cameras and I think the problem is at the Arlo end. But the height/aspect ratio one is more interesting and I'll take a look at fixing it. The problem, as far as I can tell, is the resolution for Best Quality video and snapshots is 1920x1088 instead of 1920x1080 so it's making those images too tall. If you take a snapshot on a camera with Optimized video quality the image size changes. Take a snapshot on a camera with Best Quality video and it doesn't change. But mixing Best Quality and Optimized quality cameras can cause the images to not align horizontally on the page... I'll try and force everything down to a 16x9 ratio. I'm ok with Javascript and Python but HTML/CSS is new to me so it might take a few days of playing around to fix it. |
@Swiftnesses ; Can you try this branch: https://github.com/twrecked/hass-aarlo/tree/sixteen-nine You will need to make sure the web browser cache is cleared, Home Assistant will aggressively cache scripts. Alternatively, add a version number to the module declaration:
|
@twrecked That seems to have done it buddy, thank you! |
Excellent. I think there is still a little more tidy up I'll do in the library thumbnails before I check it in. Can I ask what machine/browser? I've only had chance to test it on Linux/Chrome. |
OSX Mojave (Dev preview) | Chrome 72.0.3626.119 (Official Build) (64-bit) |
Some info, I have no issues with snapshots on the older cameras in the day it seems, the issue starts at night when IR is on!? |
I've just rebooted one of my cameras that wasn't taking snapshots - I opened the battery cover and closed it - and now the snapshot is working. @zemerick1 any of these things work for you? |
Do I need to re-pull the code or just update the LoveLace module? Because I did the latter and one of my cameras took a screenshot, though it's not consistent. |
The lovelace code has some tweaks to speed up displaying the snapshot if it works, but the underlying code around snapshots hasn't changed. The lovelace code change wasn't enough to fix the issue for me and I was just wondering if physically rebooting a camera would get it to work, it did for me and it fixed the camera on the Arlo app too. Well, working for now at least, I'll keep trying again tonight. |
It doesn't appear to have worked for me. I will try rebooting my other cameras to see if that helps. Also, I don't know if this is because of the LoveLace change, but I can't playback my most recent clip. The image is no longer a 'link' to play the clip. I know the old Arlo card would allow it, but not 100% that this new one ever did. Don't want to send you down a rabbit hole. |
I honestly don't think the snapshot is my issue but I'll take full responsibility for breaking the video playback! Can you try updating everything and making sure to refresh the browser - Home Assistant will aggressively cache everything. If that doesn't work can you tell me what browser and OS you're using. I can try most variants except Macs here. |
I tried several times using incognito mode without luck. I also pulled in the latest code. Win 10 1803 / Chrome 72 Let me know how I can continue to help. |
I've got a Windows machine here, I'll take a look in a few minutes. Can you try adding a version number to the end of the glance card? (See my comment here #14 (comment)) Can you get to the library thumbnail list? By clicking on the 'captured today' icon - the folder with a video camera on it? And do those videos play? |
Yup I added the version: Also, negative on the library thumbnail list. It shows the tool-tip for the captures, but clicking it doesn't do anything. EDIT: I'm firing up Firefox on a *nix (Windows WSL) box to see if I get different results. |
It worked under Windows for me. Using Chrome. I'm just reinstalling everything here to make sure I'd got the latest versions of everything. One more thing to try under Chrome is "CTRL+SHIFT+I" and see if any errors come out if you reload Home Assistant. |
I've tried a reinstall of the custom component and the video stuff is working here - I tried windows, Linux and chrome OS and all using Chrome. It also works on my Android phone. If it still isn't working for you I'd try:
and hopefully we can get to the bottom of this. It's getting late here but I'll check in tomorrow. |
This is baffling. I've pulled in the latest code -- from HA 89b3, from your repo, and just updated Chrome.
...
|
One thing, I'm still on 0.87 - I've been concentrating on the component and forgot to upgrade. I'll try upgrading tomorrow. And we have pretty much the same custom cards. |
I introduced a bug that might stop videos appearing. Let me look into that. |
I just tested the code all the way up to 0.89 and I can't see the issues you are seeing. The bug I saw might stop videos being updated if a lot of cameras trigger at the same time which I don't believe is what you are seeing - you should still be able to play a video. And I'm not seeing any errors related to polymer (or anything else). |
So I'm getting different results today. I noticed that the service was showing different lines in the log than originally posted. Specifically, the line that says "queing snapshot update". And now, both the card and service appear to be functioning normally.
|
@twrecked So, as of right now (12:46 CST), both features are working. . the video clips (first time I've ever seen it, very cool), and the snapshot. . |
Test new version number for the card
I'm going to close this one for now. Please try the latest builds and open a new bug. I fixed a few issues to do with event handling and one issue around the snapshot handling code. |
When I call the service
camera.aarlo_request_snapshot
nothing happens. It says it's taking a screenshot, but there is no update in the UI.If I click the 'click to update image' icon using your custom picture card. It says 'Taking Screenshot' but nothing ever happens.
here is the output from the logs:
The text was updated successfully, but these errors were encountered: