H
Homarr5mo 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 Bot5mo 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
aeternum5mo 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
aeternum5mo 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
aeternum5mo 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
Tag
Tag5mo ago
Hi, sharp isn't important indeed. Have you tried using a random city instead?
aeternum
aeternum5mo 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
Tag
Tag5mo ago
Any errors in the container logs? (not the browser)
aeternum
aeternum5mo 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
Tag
Tag5mo 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
aeternum5mo 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
Tag
Tag5mo 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
Tag
Tag5mo ago
You forgot to tap enter before pasting it in I think
aeternum
aeternum5mo ago
wdym
Tag
Tag5mo ago
Because you have a part of the result from the curl for the weather api
aeternum
aeternum5mo ago
oh
aeternum
aeternum5mo ago
is that better?
Tag
Tag5mo ago
Yeah that's the expected answer. But that was working so no surprise there
aeternum
aeternum5mo 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
Tag
Tag5mo ago
That's most likely an error comming from one of your extensions
aeternum
aeternum5mo 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
Tag
Tag5mo ago
Well, let's get back to the basics then. Could you provide all the information asked by cakey bot?
aeternum
aeternum5mo ago
which part do you need? the logs?
Tag
Tag5mo ago
All
aeternum
aeternum5mo ago
okay. one sec
aeternum
aeternum5mo 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
aeternum5mo 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?
Tag
Tag5mo ago
It might @Manicraft1001 any idea?
Manicraft1001
Manicraft10015mo 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?
Tag
Tag5mo ago
In the weather router, we don't try catch, so we don't swallow but we don't process either
Manicraft1001
Manicraft10015mo ago
Ok thanks for checking. Let's wait for the console
aeternum
aeternum5mo 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.
Tag
Tag5mo 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
aeternum5mo ago
i posted it :> any suggestions?
Wanhack
Wanhack5mo 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
aeternum5mo 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
Wanhack5mo ago
How did you do it in? In the docker compose or tried to change the DNS for the whole server?
aeternum
aeternum5mo 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
Manicraft10015mo 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
aeternum5mo 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
Manicraft10015mo 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
aeternum5mo ago
you mean from the server?
Manicraft1001
Manicraft10015mo ago
Yes, I mean the server side Homarr log but without the noise from your log rotations and host system
aeternum
aeternum5mo ago
ah. which log would it be?
Manicraft1001
Manicraft10015mo ago
The Homarr log I don't know how you can obtain the logs using LXC
aeternum
aeternum5mo 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
Manicraft10015mo 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
aeternum5mo ago
oh, no worries thanks for trying to help 🙂
Want results from more Discord servers?
Add your server