Belchertown Logo

81 views
Skip to first unread message

Michael McClane

unread,
Oct 16, 2020, 4:35:07 PM10/16/20
to weewx-user
I have a 330x80 graphic to use as logo.  I refer to it in Extras as logo_image = "var/www/html/weewx/belchertown/logo.png"  This doesn't seem to work.  What is the proper way to reference it?

vince

unread,
Oct 16, 2020, 5:21:08 PM10/16/20
to weewx-user

On Friday, October 16, 2020 at 1:35:07 PM UTC-7, Michael McClane wrote:
I have a 330x80 graphic to use as logo.  I refer to it in Extras as logo_image = "var/www/html/weewx/belchertown/logo.png"  This doesn't seem to work.  What is the proper way to reference it?

Did you really mean "var/........." without a leading / to make it an absolute pathname ?

Mike McClane

unread,
Oct 16, 2020, 7:31:42 PM10/16/20
to weewx...@googlegroups.com
There is a leading slash

--
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 weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/0e2972a2-b5d7-433c-a9a4-035b2f0b86bbo%40googlegroups.com.

vince

unread,
Oct 16, 2020, 9:28:27 PM10/16/20
to weewx-user
On Friday, October 16, 2020 at 4:31:42 PM UTC-7, Mike McClane wrote:
There is a leading slash


The documentation says:
 
So that tells me it should be a URL that is resolvable by the browser, not an absolute pathname resolvable at the os level from a bash shell.

A quick test using "https://obrienlabs.net/images/logo.png" (the image on Pat's home page) works if a full URL is used.



vince

unread,
Oct 16, 2020, 9:51:04 PM10/16/20
to weewx-user
On Friday, October 16, 2020 at 6:28:27 PM UTC-7, vince wrote:
The documentation says:
 
So that tells me it should be a URL that is resolvable by the browser, not an absolute pathname resolvable at the os level from a bash shell.

A quick test using "https://obrienlabs.net/images/logo.png" (the image on Pat's home page) works if a full URL is used.



I did a second test and it seems that an absolute path as the webserver resolves it from the top of the web docroot also works, so if you have Belchertown going to a subdirectory in your public_html tree, something like "/belchertown/logo.png" would also work, if you have logo.png in /var/www/html/weewx/belchertown on the filesystem.

Mike McClane

unread,
Oct 17, 2020, 4:50:26 AM10/17/20
to weewx...@googlegroups.com
"/belchertown/logo.png” did the trick

--
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 weewx-user+...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages