Web Page not adding additional options

346 views
Skip to first unread message

Nigel Bowen

unread,
Oct 31, 2021, 1:19:43 AM10/31/21
to weewx-user
I seem to be missing out on a vital step when I try to customise the Belchertown Skin.

It seems that some options work when added in the Weewx.conf file and some do not seem to works at all.  No error or note in the logs.

Earthquake data works but is in Miles when everything else is metric. (Distance label is KM)

I have added the Aeris Forecasts but couldn't add the forecast link for Aeris so I managed to be able to add my own, but had to do it in the Skin.conf file.  I don't think that this is the right way to do it.

The Air Quality just doesn't display anything.

Twitter & Facebook doesn't get added.

I am assuming that I need to be modifying these options in the Weewx.conf file and leave the Skin.conf file alone.

So I am thinking that I have missed something important and need some guidance.
mylog
skin.conf
weewx.conf

Greg from Oz

unread,
Oct 31, 2021, 2:38:25 AM10/31/21
to weewx-user

nigel Bowen

unread,
Oct 31, 2021, 3:27:27 AM10/31/21
to weewx...@googlegroups.com

Thanks, but that just errors:

ERROR user.belchertown: Locale: Error using locale en_AU.UTF-8. This locale may not be installed on your system and you may see unexpected results. Belchertown skin JavaScript will try to use this locale. Full error: unsupported locale setting

 

Nigel Bowen

--
You received this message because you are subscribed to a topic in the Google Groups "weewx-user" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/weewx-user/KUGB_fYu_yo/unsubscribe.
To unsubscribe from this group and all its topics, send an email to weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/0816245c-8373-4022-af37-641c05c83820n%40googlegroups.com.

Greg from Oz

unread,
Oct 31, 2021, 3:48:00 AM10/31/21
to weewx-user
Did you reboot?
I had miles in mine and followed that link I proposed and it worked after a reboot.
LC_MEASUREMENT="en_AU.UTF-8"

Nigel Bowen

unread,
Oct 31, 2021, 4:27:58 AM10/31/21
to weewx-user
Rebooted twice.  No different.  Defiantly something wrong.  All of this is with Chrome, Jumped across to Edge and the Twitter icon appeared.  So some of the issues that I am seeing MAY be related to Chrome.

vince

unread,
Oct 31, 2021, 12:09:29 PM10/31/21
to weewx-user
Have you set your os to have that locale configured ?  Run 'sudo raspi-config', select 'Localisation Options', then 'Locale'

Greg from Oz

unread,
Oct 31, 2021, 4:56:39 PM10/31/21
to weewx-user
If the icon shows on other browsers then you may have to allow mixed content.
Is your site https and the icons are http?

nigel Bowen

unread,
Oct 31, 2021, 6:14:19 PM10/31/21
to weewx...@googlegroups.com

That was a great suggestion, but it didn’t change anything.

nigel Bowen

unread,
Oct 31, 2021, 6:33:06 PM10/31/21
to weewx...@googlegroups.com

Yes I have run this and I have done it again and rebooted.  Still no joy with any of the additional options.

 

 

Nigel Bowen

 

-us...@googlegroups.com [mailto:weewx...@googlegroups.com] On Behalf Of vince
Sent: Monday, 1 November 2021 3:09 AM
To: weewx-user <weewx...@googlegroups.com>
Subject: Re: [weewx-user] Re: Web Page not adding additional options

Greg from Oz

unread,
Oct 31, 2021, 9:21:17 PM10/31/21
to weewx-user
Type locale in the console:
Mine looks like this:
locale
LANG=en_AU.UTF-8
LANGUAGE=
LC_CTYPE="en_AU.UTF-8"
LC_NUMERIC="en_AU.UTF-8"
LC_TIME="en_AU.UTF-8"
LC_COLLATE="en_AU.UTF-8"
LC_MONETARY="en_AU.UTF-8"
LC_MESSAGES="en_AU.UTF-8"
LC_PAPER="en_AU.UTF-8"
LC_NAME="en_AU.UTF-8"
LC_ADDRESS="en_AU.UTF-8"
LC_TELEPHONE="en_AU.UTF-8"
LC_MEASUREMENT="en_AU.UTF-8"
LC_IDENTIFICATION="en_AU.UTF-8"
LC_ALL=

When I do an install I run this below:

#!/bin/bash
echo Change the time zone
dpkg-reconfigure tzdata
echo Change locale to Australia
dpkg-reconfigure locales
update-locale en_AU.UTF-8
locale-gen en_AU.UTF-8
echo the local is set to
locale


nigel Bowen

unread,
Nov 1, 2021, 4:54:17 AM11/1/21
to weewx...@googlegroups.com

Thanks

 

I did a similar via sudo raspi-config as suggested by Vince

 

This morning. 

 

I have followed your set of commands and it did change a couple of LOCALE references, but still there is no improvement to the Belchertown skin options.

 

I am at a loss

--
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/acd7aa84-eca1-461a-b9ea-b3a300291afen%40googlegroups.com.

nigel Bowen

unread,
Nov 1, 2021, 4:55:44 AM11/1/21
to weewx...@googlegroups.com

This is my output after running several commands

 

LANG=en_AU.UTF-8

LANGUAGE=en_AU

LC_CTYPE="en_AU"

LC_NUMERIC="en_AU"

LC_TIME="en_AU"

LC_COLLATE="en_AU"

LC_MONETARY="en_AU"

LC_MESSAGES="en_AU"

LC_PAPER="en_AU"

LC_NAME="en_AU"

LC_ADDRESS="en_AU"

LC_TELEPHONE="en_AU"

LC_MEASUREMENT="en_AU"

LC_IDENTIFICATION="en_AU"

LC_ALL=en_AU

--

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/acd7aa84-eca1-461a-b9ea-b3a300291afen%40googlegroups.com.

vince

unread,
Nov 1, 2021, 12:47:01 PM11/1/21
to weewx-user
It is close to impossible to help when you post such cryptic descriptions of what you are seeing (or not seeing) and basically no descriptions of what you typed at the shell console nor what you see.   At this point I'd suggest dropping back to square one re: Belchertown and taking a more slow and steady approach.

First of all:
  • set debug=1 in your weewx.conf so we see more debugging info
  • disable all skins other than the Seasons or Standard skin
  • restart weewx
  • look at the 'one' enabled skin's output - do you see your weather data in the units you want ?
If that works:
  • save a copy of your weewx.conf file someplace
  • uninstall the Belchertown skin
  • remove all Belchertown sections from your weewx.conf
  • save 'another' copy of your weewx.conf so we can verify (if later needed) that you really cleaned weewx.conf up completely
  • install the Belchertown skin again
  • change 'nothing' yet regarding Belchertown 
  • restart weewx - does a bare minimum Belchertown have the units you want ?
If so, work adding 'one' item to Belchertown at a time:
  • do one thing, restart weewx, check your output, verify it works and has your desired units
  • do the next thing similarly, and so on


vince

unread,
Nov 1, 2021, 2:35:04 PM11/1/21
to weewx-user
ok - I installed weewx 4.5.1 and the latest Belchertown from git to catch up with all changes since the last release, set my system locale to yours, and set the units to metric.  All edits were made in weewx.conf and there are no errors when it runs for me over debian11.

Problems I can replicate:
  • earthquake distance using the USGS source 'is' in miles not km (likely a Belchertown bug)
Problems I can not replicate:
  • Aeris forecast works
  • Air quality works
  • Facebook (ugh) like button is there
  • Share button is there
  • Twitter button is there
I might add that if you install the latest Belchertown skin from his git repo (not the released version), it will add template commented-out stanzas for all the configuration items.   There is one bug there too, when I sent the Pull Request to Pat a while back to add the configurable items in the right places, I added two 'twitter_owner' lines in there.  Be sure that if you use the latest (unreleased) version that you have only one twitter_owner or weewx will rightly barf on startup.  I'll send Pat a note in a minute to correct my error there.

Nigel Bowen

unread,
Nov 2, 2021, 6:50:23 PM11/2/21
to weewx-user
I have done everything suggested so far with the same results.

Is there a list of prerequisites for both Weewx and Belchertown, as I am beginning to think that I am missing a component that is needed to display these extra sets of information.  Alternatively could it be an order of precedence in the positioning of each option in the .conf files.  I am getting this feeling as there are no errors in the logs when I try activating these options and they do not appear.

I might add that I have managed to kill WeeWx a couple of times with some of my attempts to try different things and managed to get it back.

By the way I am using the current release of Rasbian (RasberryP1 4)  So there may a limitation here as well.

Cheers

vince

unread,
Nov 2, 2021, 8:52:36 PM11/2/21
to weewx-user
I'm giving up at this point. You continue to decline to set debug=1 and provide us with updated logs and verbatim transcripts of what you're seeing and doing.  We can't read minds.  Sorry.

FWIW, there's nothing wrong with Raspbian. I retested on a pi updated to current os and Belchertown works just fine when set to your AU locale with the exception that the earthquake does still display in miles (I opened a github issue to Pat on this yesterday so he's aware of it).

The weewx.conf I used (gzipped) vs. the simulator driver is attached.  There is no magic required here on this one.
weewx.conf.au.gz

vince

unread,
Nov 3, 2021, 8:54:06 PM11/3/21
to weewx-user
(for others in the future) - a nice user 'James-76'  replied to the github issue I opened and mentioned that if you set "group_distance = km" when editing your weewx.conf file per Pat's instructions, it indeed does show the earthquake distance in km.

The underlying issue was a line previously missing from Pat's docs online, which he's fixed already.

So Belchertown works as expected with metric units.  See Pat's online readme for the updated edits to go metric.

nigel Bowen

unread,
Nov 3, 2021, 9:12:10 PM11/3/21
to weewx...@googlegroups.com

Thanks Vince

 

That setting is already in my Weewx.conf fie (see attachments in my original post) and as you know it still does not display correctly.

 

I have not re visited this and the other issues yet, per your suggestions, so I have not re posted up dated file to post.

 

 

 

Nigel Bowen

 

 

 

From: weewx...@googlegroups.com [mailto:weewx...@googlegroups.com] On Behalf Of vince
Sent: Thursday, 4 November 2021 11:54 AM
To: weewx-user <weewx...@googlegroups.com>
Subject: Re: [weewx-user] Re: Web Page not adding additional options

 

(for others in the future) - a nice user 'James-76'  replied to the github issue I opened and mentioned that if you set "group_distance = km" when editing your weewx.conf file per Pat's instructions, it indeed does show the earthquake distance in km.

--

You received this message because you are subscribed to a topic in the Google Groups "weewx-user" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/weewx-user/KUGB_fYu_yo/unsubscribe.
To unsubscribe from this group and all its topics, send an email to weewx-user+...@googlegroups.com.

Nigel Bowen

unread,
Nov 3, 2021, 10:01:52 PM11/3/21
to weewx-user
Updated files.

See attached  
Weewx.conf  without passwords renamed weewx Ex Passwords.conf
Skin.conf  renamed here as Belchertown skin.conf and not in system.
Mylog1 = debug =1 results
Mylog2 = debug =2 results

Even though I make changes to the weewx.conf file they are sometimes reflected in the HTML page.  for example the forecast_daily_link = "https://meteobox.com/victoria/benalla/" doesn't change, it shows the previous link.

With respect to the Earthquake distance displaying Miles when it should be KMS Note that on line 328 of Weewx.conf it includes group_distance = km    # Options are 'mile' or 'km'
Also this is my locale output

LANG=en_AU.UTF-8
LANGUAGE=en_AU
LC_CTYPE="en_AU"
LC_NUMERIC="en_AU"
LC_TIME="en_AU"
LC_COLLATE="en_AU"
LC_MONETARY="en_AU"
LC_MESSAGES="en_AU"
LC_PAPER="en_AU"
LC_NAME="en_AU"
LC_ADDRESS="en_AU"
LC_TELEPHONE="en_AU"
LC_MEASUREMENT="en_AU"
LC_IDENTIFICATION="en_AU"
LC_ALL=en_AU

Also note the AQ is not displayed even though it is activated in weewx.conf

I have either stuffed up the *.conf files or I am missing a system setup that is affecting these changes.

I have noted that there is a failure in the logs.  

Nov  4 12:08:26 raspberrypi systemd[1]: supervisor.service: Main process exited, code=exited, status=1/FAILURE

This may be my issue, but I have no idea what it means or in fact it is something that needs to be fixed or how.

I hope that this helps.

If you want me to uninstall Belchertown and reinstall then please explain how and where the install file is that you want me to use.

Thanks for your help.

mylog1
Belchertown skin.conf
weewx EX Passwords.conf
mylog2

Nigel Bowen

unread,
Nov 9, 2021, 6:10:32 PM11/9/21
to weewx-user
Still no joy with this.

I have attached a Weewx debug file created with a Verbosity=2 as well as a screenshot of the webpage.  This is addition to the files attached earlier in the post.

I hope that someone will find this useful.

This issue to me seems to be in the weewx.conf file and I am sure that I may have stuffed it up and weewx is no longer reading and applying any additional changes to it.  This can be seen when comparing the weewx.conf file with the screenshot.

If no one is able to help then I will just have to put up with what I have, but I want more.

Thanks

2021-11-10_10h05_28.jpg
weewx.debug
Reply all
Reply to author
Forward
0 new messages