Weather not pinging.
I've installed the dashboard and everything works fine except the weather. It can't ping, and I can't search either. There are no errors in logs. I also made sure it pings 1.1.1.1 and it still doesn't work. It's a fresh install too
If you need any extra info let me know.
31 Replies
Thank you for submitting a support request.
Depending on the volume of requests, our team should get in contact with you shortly.
⚠️ Please include the following details in your post or we may reject your request without further comment: - Log (See https://homarr.dev/docs/community/faq#how-do-i-open-the-console--log) - Operating system (Unraid, TrueNAS, Ubuntu, ...) - Exact Homarr version (eg. 0.15.0, not latest) - Configuration (eg. docker-compose, screenshot or similar. Use ``your-text`` to format) - Other relevant information (eg. your devices, your browser, ...)
❓ Frequently Asked Questions | Homarr documentation
Can I install Homarr on a Raspberry Pi?
oh also I'm using docker compose
@creaper3 please post your log and compose.
Compose:
version: '3'
#---------------------------------------------------------------------#
Homarr - A simple, yet powerful dashboard for your server. #
#---------------------------------------------------------------------#
services:
homarr:
container_name: homarr
image: ghcr.io/ajnart/homarr:latest
restart: unless-stopped
volumes:
- /var/run/docker.sock:/var/run/docker.sock # Optional, only if you want docker integration
- /docker/homarr/configs:/app/data/configs
- /docker/homarr/icons:/app/public/icons
- /docker/homarr/data:/data
ports:
- '7575:7575'
There are errors now, there weren't before
What DNS do you use? Can you resolve any domains from within the container?
I used 1.1.1.1, and yes I can resolve other domains
Can you resolve this domain?
https://github.com/ajnart/homarr/blob/dev/src%2Fserver%2Fapi%2Frouters%2Fweather.ts#L51
api.open-meteo.com
GitHub
homarr/src/server/api/routers/weather.ts at dev · ajnart/homarr
Customizable browser's home page to interact with your homeserver's Docker containers (e.g. Sonarr/Radarr) - ajnart/homarr
yea that works
so when I put it as an app it pings
the settings for pinging
And how does the widget not load? Can you make a screenshot what is wrong?
here is a video of it
Can you try a different browser?
doesn't work with edge
I don't have another browser on my pc
Ok. No problem
Are you familiar with curl?
yea
kinda, I've used it
it just downloads and installs something right
Can you do a curl from inside the container to this URL, but replace ${} with the actual latitude & longitude.
GitHub
homarr/src/server/api/routers/weather.ts at dev · ajnart/homarr
Customizable browser's home page to interact with your homeserver's Docker containers (e.g. Sonarr/Radarr) - ajnart/homarr
where is ${}? I can't find it anywhere
Choose a random location to test, not your actual location
Replace these including the $ with the actual values
oh ok I see now
so I'm guessing I need to fork it then use curl? (I don't really know a whole lot about github)
No just copy the URL as text to your clipboard
so "curl -x GET https://github.com/ajnart/homarr/blob/dev/src%2Fserver%2Fapi%2Frouters%2Fweather.ts#L51", and then? Sorry I'm a bit confused I don't usually do this custom stuff.
GitHub
homarr/src/server/api/routers/weather.ts at dev · ajnart/homarr
Customizable browser's home page to interact with your homeserver's Docker containers (e.g. Sonarr/Radarr) - ajnart/homarr
Almost, the link mani shared contains the link you should try:
curl -x GET https://api.open-meteo.com/v1/forecast?latitude=0&longitude=0&daily=weathercode,temperature_2m_max,temperature_2m_min¤t_weather=true&timezone=Europe%2FLondon
now it says this
Use a big
-X
different error this time