Skip to content
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

Surveillance-card: semi not working with HACS #38

Closed
tommyjlong opened this issue Oct 28, 2020 · 9 comments
Closed

Surveillance-card: semi not working with HACS #38

tommyjlong opened this issue Oct 28, 2020 · 9 comments

Comments

@tommyjlong
Copy link

I use HACS to track and update this card. When upgrading to 0.0.4 (using HACS), each thumbnail now contains two semi-transparent circles, but I'm not sure what this is all about. One appears to be for taking a snapshot, and I think the other is for recording. I'm getting an error in Chrome Inspect saying it can not find record.svg and snapshot.svg. HACS did not pickup these svg files. I did download them into the directory where HACS stores the surveillance-card, but this didn't work. The error seems to be the javascript code expects these files to be located in www(or local)/surveillance-card/ but this is not where HACS keeps the surveillance-card.

@reefland
Copy link

same issue. HACS didn't even seem to download the images. Had to grab them manually.

Thanks for pointing out where they were expected. For now, this workaround of creating a symlink where it was expected got the images to show up:

root@freenas: www # ln -s community/surveillance-card/ .
root@freenas: www # ls -l
total 14
drwxr-xr-x  5 8123  8123   5 Nov 22 14:31 community
drwxr-xr-x  2 8123  8123   3 Feb 13  2020 custom_ui
drwxr-xr-x  3 8123  8123   4 Mar  2  2020 icons
lrwxr-xr-x  1 root  8123  28 Nov 22 14:50 surveillance-card -> community/surveillance-card/

@XoniBlue
Copy link

same issue. HACS didn't even seem to download the images. Had to grab them manually.

Thanks for pointing out where they were expected. For now, this workaround of creating a symlink where it was expected got the images to show up:

root@freenas: www # ln -s community/surveillance-card/ .
root@freenas: www # ls -l
total 14
drwxr-xr-x  5 8123  8123   5 Nov 22 14:31 community
drwxr-xr-x  2 8123  8123   3 Feb 13  2020 custom_ui
drwxr-xr-x  3 8123  8123   4 Mar  2  2020 icons
lrwxr-xr-x  1 root  8123  28 Nov 22 14:50 surveillance-card -> community/surveillance-card/

would you mind explaining how you went about doing this?

@reefland
Copy link

Not sure understand your confusion with the steps above. The "www" directory is located within your Home Assistant configuration directory. The ln -s community/surveillance-card/ . is what creates the symlink. The example above was done on a FreeBSD jail where HA is running. The steps would be identical on Linux. Hope that helps.

@johntdyer
Copy link

FWIW when I "reinstall" the this plugin it actually deleted the SVG files. Put another way I am able to manually download the files using the wget commands per the readme.md and then do a "reinstall" via the add-ons place and the it wil actually deletes the svg files I manually downloaded

@johntdyer
Copy link

@niemyjski - Any thoughts here ?

@niemyjski
Copy link
Collaborator

I've seen this too but I haven't had time to look into it. I wonder if there is something excluding svg's from being copied? I would think we would just be using font icons that are built into HA. Can someone submit a pr for this?

@MisterTFM
Copy link

Same issue, using HACS, it didn't download the *.svg files.
ScreenHunter 177

@niemyjski
Copy link
Collaborator

Can you please submit a pr that resolves this issue

@niemyjski
Copy link
Collaborator

I just resolved this issue in the latest commit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants