H
Homarr7mo ago
aeternum

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
Cakey Bot
Cakey Bot7mo ago
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?
aeternum
aeternumOP7mo ago
OS: LXC container based on debian 11 homarr version: 0.15.3 I've tried on two different browsers, and it doesn't work.
aeternum
aeternumOP7mo ago
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
aeternum
aeternumOP7mo ago
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
Serenaphic
Serenaphic7mo ago
Hi, sharp isn't important indeed. Have you tried using a random city instead?
aeternum
aeternumOP7mo ago
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
Serenaphic
Serenaphic7mo ago
Any errors in the container logs? (not the browser)
aeternum
aeternumOP7mo ago
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
Serenaphic
Serenaphic7mo ago
https://api.open-meteo.com/v1/forecast?latitude=48.8534&longitude=2.3488&daily=weathercode,temperature_2m_max,temperature_2m_min&current_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
aeternum
aeternumOP7mo ago
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&current_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
Serenaphic
Serenaphic7mo ago
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
Serenaphic
Serenaphic7mo ago
You forgot to tap enter before pasting it in I think
aeternum
aeternumOP7mo ago
wdym
Serenaphic
Serenaphic7mo ago
Because you have a part of the result from the curl for the weather api
aeternum
aeternumOP7mo ago
oh
aeternum
aeternumOP7mo ago
is that better?
Serenaphic
Serenaphic7mo ago
Yeah that's the expected answer. But that was working so no surprise there
aeternum
aeternumOP7mo ago
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
Serenaphic
Serenaphic7mo ago
That's most likely an error comming from one of your extensions
aeternum
aeternumOP7mo ago
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
Serenaphic
Serenaphic7mo ago
Well, let's get back to the basics then. Could you provide all the information asked by cakey bot?
aeternum
aeternumOP7mo ago
which part do you need? the logs?
Serenaphic
Serenaphic7mo ago
All
aeternum
aeternumOP7mo ago
okay. one sec
aeternum
aeternumOP7mo ago
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.
aeternum
aeternumOP7mo ago
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?
Serenaphic
Serenaphic7mo ago
It might @Manicraft1001 any idea?
Manicraft1001
Manicraft10017mo ago
ERROR #033[39m#033[49m tRPC OpenAPI error on undefined: TRPCError: Not found
ERROR #033[39m#033[49m tRPC OpenAPI error on undefined: TRPCError: Not found
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?
Serenaphic
Serenaphic7mo ago
In the weather router, we don't try catch, so we don't swallow but we don't process either
Manicraft1001
Manicraft10017mo ago
Ok thanks for checking. Let's wait for the console
aeternum
aeternumOP7mo ago
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.
Serenaphic
Serenaphic7mo ago
However
const {
data: weather,
isLoading,
isError,
} = api.weather.at.useQuery(widget.properties.location, { refetchInterval: 1000 * 60 * 30 });
const { width, ref } = useElementSize();
const { t } = useTranslation('modules/weather');

if (isLoading) {
return <WidgetLoading />;
}

if (isError) {
return (
<Center>
<Text weight={500}>{t('error')}</Text>
</Center>
);
}
const {
data: weather,
isLoading,
isError,
} = api.weather.at.useQuery(widget.properties.location, { refetchInterval: 1000 * 60 * 30 });
const { width, ref } = useElementSize();
const { t } = useTranslation('modules/weather');

if (isLoading) {
return <WidgetLoading />;
}

if (isError) {
return (
<Center>
<Text weight={500}>{t('error')}</Text>
</Center>
);
}
We display the error just if "isError" is true, meaning we could have proper information but error sets true anyway
aeternum
aeternumOP7mo ago
i posted it :> any suggestions?
Wanhack
Wanhack7mo ago
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
aeternum
aeternumOP7mo ago
i tried a different DNS server (my main one is a PiHole server, so i thought it might be blocking it), to no avail
Wanhack
Wanhack7mo ago
How did you do it in? In the docker compose or tried to change the DNS for the whole server?
aeternum
aeternumOP7mo ago
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
Manicraft1001
Manicraft10017mo ago
Have you tried accessing it form a different device? Have you deactivated all extensions in your browser while trying to access? (safe mode)
aeternum
aeternumOP7mo ago
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*
Manicraft1001
Manicraft10017mo ago
Can you trigger the error again and then only post the Homarr log? There was a lot of noise in it (log rotation, ...)
aeternum
aeternumOP7mo ago
you mean from the server?
Manicraft1001
Manicraft10017mo ago
Yes, I mean the server side Homarr log but without the noise from your log rotations and host system
aeternum
aeternumOP7mo ago
ah. which log would it be?
Manicraft1001
Manicraft10017mo ago
The Homarr log I don't know how you can obtain the logs using LXC
aeternum
aeternumOP7mo ago
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
Manicraft1001
Manicraft10017mo ago
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.
aeternum
aeternumOP7mo ago
oh, no worries thanks for trying to help 🙂
Want results from more Discord servers?
Add your server