Weather app
Hi
I added the weather app, but it doesn't work. When I go to search my town, it says "an error occured". I have confirmed the container can resolve dns addresses. Any ideas?
49 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?
OS: LXC container based on debian 11
homarr version: 0.15.3
I've tried on two different browsers, and it doesn't work.
syslog:May 29 19:36:42 homarr yarn[13356]: Error: 'sharp' is required to be installed in standalone mode for the image optimization to function correctly. Read more at: https://nextjs.org/docs/messages/sharp-missing-in-production
is that important
?
i also tried changing the DNS server to one that is not my PiHole, and it still didn't work
ok, so adding sharp didn't work
Hi, sharp isn't important indeed. Have you tried using a random city instead?
hi @Tag yes, no cities work at all
forgot to put that in my post
even when first putting the widget in and it defaults to paris, that didn't work either
Any errors in the container logs? (not the browser)
nope. went through all of them, and the only error i found was the sharp thing
i did a tail -f on some of them while iwas trying to add a city, and no errors
https://api.open-meteo.com/v1/forecast?latitude=48.8534&longitude=2.3488&daily=weathercode,temperature_2m_max,temperature_2m_min¤t_weather=true&timezone=Europe%2FLondon
Does this work for you if you? You should get a page with a bunch of info. That's the api we use that return the weather
yes
on my laptop
i will try ot curl it from container
root@homarr:/var/log# curl https://api.open-meteo.com/v1/forecast?latitude=48.8534&longitude=2.3488&daily=weathercode,temperature_2m_max,temperature_2m_min¤t_weather=true&timezone=Europe%2FLondon
[1] 13795
[2] 13796
[3] 13797
[4] 13798
root@homarr:/var/log# {"reason":"Parameter 'latitude' and 'longitude' must have the same number of elements","error":true}
i dunno what any of that means
https://geocoding-api.open-meteo.com/v1/search?name=Paris
Let's try this one
But since you can select the city, I doubt there's a problem
You forgot to tap enter before pasting it in I think
wdym
Because you have a part of the result from the curl for the weather api