custom-cards / surveillance-card

A custom component for displaying camera feeds in the style of a surveillance system.
Apache License 2.0
244 stars 36 forks source link

custom element doesn't exist #10

Closed s0c1 closed 4 years ago

s0c1 commented 5 years ago

lit-element has moved to: https://unpkg-gcp.firebaseapp.com/@polymer/lit-element@0.5.2/lit-element.js?module

IIIdefconIII commented 5 years ago

same here, seems that all custom cards need a update or so,

WaaromZoMoeilijk commented 5 years ago

Still wont work, after changing, restarting. Any advise? Another card "power wheel" did work after changing..

s0c1 commented 5 years ago

You have to clear your browser cache for this change to appear. Also, I did a contribute a pull request, so you can see the source that worked for me.

WaaromZoMoeilijk commented 5 years ago

Never mind.

chuckweinberger commented 5 years ago

@s0c1's pull requested worked for me for a few months, but now I'm getting the following js error: :8123/local/surveillance-card.js?v=2:1 Uncaught SyntaxError: Unexpected token { which is the first line of the import statement.

Seems like the problem is the external dependency for lit_element.

prasket commented 5 years ago

I did a little digging and found this message at the old source in npmjs

@polymer/lit-element has moved to lit-element. Please uninstall this package and install lit-element. See https://www.polymer-project.org/blog/2019-01-11-lit-element-rc

New location is here: https://www.npmjs.com/package/lit-element

I tried just subbing out locations and for new versions as a first go but didnt work. :(

----- EDIT ----- The old files are still there and I am able to curl them from the ha container under hass. So my above comment might not be related.

cagnulein commented 4 years ago

anyone has a solution?

s0c1 commented 4 years ago

I pulled this out and switched to the plain Camera element. If you use the still_image_url with a fast refresh time (1 second), it works like a champ in stock HA.

niemyjski commented 4 years ago

I'm not seeing this issue, can someone please let me know how to reproduce this issue. I'm not having any issues with this component and I have unifi, nest and amcrest cameras.

niemyjski commented 4 years ago

Fixed