Hello Joachim,

Since your browser-facing folder for WeeWX is /public_html, you should 
specify the logo using a server-relative URL:

[Extras]
    logo_image = "/public_html/logo.png"

This works because the browser will fill-in the scheme, hostname and port 
so there's no need to fully-qualify the URL.

On a separate note, the public_html folder is an internal path and not 
normally exposed directly to browsers. One common method is to have the 
pages exposed as the folder /weewx which may be aliased to the folder 
.../public_html/weewx. If you have any questions on this topic, please 
start a new thread and mention if you're using Apache or Nginx and any 
other relevant details.

Hope this helps,
-Bill

On Thursday, June 4, 2020 at 6:51:11 AM UTC-4, Joachim Puttkammer wrote:
>
> Hi,
>
> I have a little problem with the logo. I do not want to 'download' the 
> logo from outsite.
> logo.png is stored in the images directory
>
> /etc/weewx/skins/Belchertown/skin.conf
>
> [Extras]
>     logo_image = "logo.png"
>
> YES logo : http://192.168.8.110/public_html/
> NO logo : http://192.168.8.110/public_html/graphs/
>
> --
> [Extras]
>     logo_image = "../logo.png"
>
> NO logo : http://192.168.8.110/public_html/
> YES logo : http://192.168.8.110/public_html/graphs/
>
> ---
> [Extras]
>     logo_image = "https://myserver/logo.png";
>
> YES logo : http://192.168.8.110/public_html/
> YES logo : http://192.168.8.110/public_html/graphs/
>
> Joachim
>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/56c972f3-8584-4219-8045-834f1a931e8fo%40googlegroups.com.

Reply via email to