Comments (8)
Right, so this seems to be an oddity with the Next.js server.
You need to restart the container for new icons to be recognized.
I'll look into a fix for this.
from homepage.
Double check your local path and icon names are all correct. A couple other users where having trouble before and have since fixed it (a documentation issue), so I do know that it's working for others as well.
Feel free to reopen if you're sure it's a problem with Homepage directly.
from homepage.
I fight we the exact same issue. but I don't think this is a naming issue.
this is what I have in the icons folder, this is inside the container:
those are exact the same icons with different names, if I use the warning.png everything is working fine:
entry in the services.yaml: icon: /icons/warning.png
now if I use the other name warn.png:
entry in the services.yaml: icon: /icons/warn.png
I can not figure out what the issue is 😞
from homepage.
Double check your local path and icon names are all correct. A couple other users where having trouble before and have since fixed it (a documentation issue), so I do know that it's working for others as well.
Feel free to reopen if you're sure it's a problem with Homepage directly.
I don't want to rely on icons from the Internet so I load all the icons locally.
I did check several times. the name of the file and the path and everything looks as it should
from homepage.
Additional note about this issue. I was getting very inconsistent results with different icon references for local icons. Until I restarted the container as you suggested above. Then things settled down. But I see some different results still... As the above user, I also would like to have local icons. So when I specify "icons: /icons/pihole.png" which is in the correct location with other local icons that do work; it for some reason returns a 404. If I specify icon: "http://ip:port/icons/pihole.png" from another docker container that is running (another diff app w/local icons); then it appears correctly. If I use the remote CDN specification "icons: pihole.png" it also appears correctly. As I said I am specifying just like other local icons that do work but "pihole.png" does not (as an example). I have seen others that do this. Its like if they are already in the CDN, then they get skipped, not sure ¯_(ツ)_/¯. BTW: sidebar, documentation issue: I also noticed that all local icon file names need to be lower case to work, otherwise they 404. Other online icon libraries have upper case filenames that caused issue for me. Anyway thanks for a great app. Hopefully the above info helps.
from homepage.
Right, so this seems to be an oddity with the Next.js server.
You need to restart the container for new icons to be recognized.
I'll look into a fix for this.
This fixed my issue too. I would have thought adding the new volume ref. to my docker-compose.yaml
file would have recreated (and thus restarted) the container, so I'm unsure why this works. Possibly worth adding a note at https://gethomepage.dev/en/configs/settings/#background-image.
Great work, btw.
from homepage.
...and I see it's the content rather than the location (volume mount) that's only recognised after a container restart. Sorry for the noise.
from homepage.
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new discussion for related concerns.
from homepage.
Related Issues (20)
- [Bug] Calendar shows finished event. HOT 3
- [Bug] Connection reset by peer since 0.8.6, 0.8.4 works HOT 2
- values set in .env file are not replaced in homepage
- [Bug] Cannot redirect logs to stdout
- [Bug] Customapi makes to much calls HOT 2
- Healthchecks new updated widget HOT 2
- [Bug] siteMonitor option for Proxmox Backup Server widget causes error to be logged on PBS HOT 4
- [Bug] ical Calendar widgets multiplies events HOT 3
- [Bug] Kavita Widget - JSON Error using HOMEPAGE_VAR env keys HOT 1
- Romm widget documentation incorrect HOT 2
- [Bug] adding a .env file to homepage breaks the docker integration on unraid HOT 1
- [Bug] Unifi widget does not set widget.fields if none are configured HOT 10
- [Bug] Container image missing `iputils` -- ping property fails HOT 6
- [Bug] Quick launch not opening with german Umlaut characters HOT 1
- Cloudflare tunnel error HOT 3
- UniFi Dream Router error / no information shown HOT 1
- [Bug]: mjpeg widget places background over icon HOT 4
- [BUG] iCal Integration with all-day events HOT 1
- [BUG] Google search suggestions fail with accented characters HOT 1
- [Bug] Omada widget not showing connected switches HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from homepage.