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
oh
is that better?
Yeah that's the expected answer. But that was working so no surprise there
ah
is this important? Uncaught Error: No DOM node set for aPlacesNode.
node.type: 0. node.parent: [xpconnect wrapped nsINavHistoryResultNode]
_getDOMNodeForPlacesNode chrome://browser/content/places/browserPlacesViews.js:116
nodeTitleChanged chrome://browser/content/places/browserPlacesViews.js:499
that's fmor browser
from
That's most likely an error comming from one of your extensions
oh
i tried in safari, and it also didn't work
it also does'nt work on my desktop
i also tried safari, and it didn't work there either
Well, let's get back to the basics then. Could you provide all the information asked by cakey bot?
which part do you need? the logs?
All
okay. one sec
https://pastebin.com/HeduC8bu the logs. it's an lxc container based on debian 11. version 0.15.3
Pastebin
root@homarr:/var/log# grep homarr *grep: apt: Is a directoryauth.lo...
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
tried on firefox and safari, on two different machines, still non go
no go
oh, i found this: May 29 21:33:48 homarr yarn[13356]: #033[41m#033[30m ERROR #033[39m#033[49m tRPC OpenAPI error on undefined: TRPCError: Not found
M
is that important?
It might
@Manicraft1001 any idea?
is a suspicious error but it doesn't necessarily indicate that there would be an issue with the open API definition.
The log is a bit hard to follow - there is a lot of random noise and errors from unrelated stuff.
Can you also post your console? https://homarr.dev/docs/community/faq#how-do-i-open-the-console--log
It could also be that the error is client side - although that is unlikely because you tried different Browsers. @Tag can you check if we swallow errors in the procedure?
❓ Frequently Asked Questions | Homarr documentation
Can I install Homarr on a Raspberry Pi?
In the weather router, we don't try catch, so we don't swallow but we don't process either
Ok thanks for checking. Let's wait for the console
this is my console: https://pastebin.com/0g8EY1j4
Pastebin
Browser Console ModeParent process only(Fast)Multiprocess(Slower)17...
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
However
We display the error just if "isError" is true, meaning we could have proper information but error sets true anyway
i posted it :>
any suggestions?
I had a similar issue to this recently but mostly because of DNS, I am using tailscale so something reset the config and allowed the machine DNS to use the tailscale dns which broke the services on the server.
At first I manually added the DNS in the compose file, and it fixed my issues with the errors I was getting. After realizing it was tailscale I just disabled dns acceptance on the server
i tried a different DNS server (my main one is a PiHole server, so i thought it might be blocking it), to no avail
How did you do it in? In the docker compose or tried to change the DNS for the whole server?
nah, it's an lxc container. i just changed /etc/resolv.conf in the container
confirmed with nslookup that it was using hte new server
i disabled blocking from within pihole, and it still didn't work
Have you tried accessing it form a different device?
Have you deactivated all extensions in your browser while trying to access? (safe mode)
I have tried another device, no go. I also tried a different browser and it didn't work
and i tried incognito with no plugs and it didn't work either
plugins*
Can you trigger the error again and then only post the Homarr log? There was a lot of noise in it (log rotation, ...)
you mean from the server?
Yes, I mean the server side Homarr log but without the noise from your log rotations and host system
ah. which log would it be?
The Homarr log
I don't know how you can obtain the logs using LXC
would it be in /var/log?
I can access that
i did a grep for homarr in /var/log and it didn't have anything noticeably wrong
Usually you seem to define the log location yourself with LXC containers. We are unable to help you with LXC because this is outside of our support scope. We only provide the Docker images.
oh, no worries
thanks for trying to help 🙂