Belchertown 1.1

209 views
Skip to first unread message

Ron Sell

unread,
May 12, 2020, 1:59:47 PM5/12/20
to weewx-user
I am trying to re create my Weewx on a new server. I am having the hardest time. When I make changes to the weewx.conf, restart service and run sudo weewx_reports none of my changes take affect. What am I missing?

[[Belchertown]]

        HTML_ROOT = /var/www/html

        skin = Belchertown

        [[[Extras]]]

            belchertown_root_url = http://10.0.0.181

          # footer_copyright_text = BelchertownWeather.com

            forecast_enabled = 1

            forecast_api_id = xxxxx

            forecast_api_secret = xxxxx

            forecast_units = "us"

            forecast_stale = forecast_stale

            earthquake_enabled = 0

            twitterenabled = 0

            webpage_autorefresh = 200000

             mqtt_websockets_enabled = 1

             mqtt_websockets_host = "10.0.0.32"

             mqtt_websockets_port = 9001

             mqtt_websockets_topic = "weather/#"

            disconnect_live_website_visitor = 0

            show_apptemp = 1

          #  show_windrun = 1

            station_observations = barometer, dewpoint, outHumidity, cloudbase, rainWithRainRate, UV, radiation

            theme = auto

            reload_hook_images = 1

            reload_images_hook_af = 60

            show_last_updated_alert = 1

            last_updated_alert_threshold = 1800

            footer_disclaimer_text = "Weather"

            footer_copyright_text = " "

            powered_by = "WeatherFlow"

            about_page_header = "About"

            home_page_header = "Weather Conditions"

Tom Keffer

unread,
May 12, 2020, 2:02:38 PM5/12/20
to weewx-user
Impossible to say without seeing the log. See Help! Posting to weewx-user.

--
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/7b73b2c5-7d4a-4b90-8543-32a823497dc8%40googlegroups.com.

Ron Sell

unread,
May 12, 2020, 2:15:28 PM5/12/20
to weewx...@googlegroups.com
log

Tom Keffer

unread,
May 12, 2020, 2:29:14 PM5/12/20
to weewx-user
I'm not sure what you're trying to do here, but any particular reason why you're running both weewxd and wee_reports? Usually, it's one or the other.

And, you're running both the Seasons report and the Belchertown report, albeit to different directories. Is that your intention?

Finally, when you say, "none of my changes take affect" what changes are you referring to? The change from the old system? Adding something to the new system?

Remote debugging is tough, so it helps to be very explicit about what you mean, and to supply lots of information.

-tk


Ron Sell

unread,
May 12, 2020, 2:52:46 PM5/12/20
to weewx...@googlegroups.com
I started with a fresh install.

My intention is to only use belchertown skin. How do I disable the others?

None of the changes i make in the weewx.conf for belchertown skin take affect.
IE: powered_by = "WeatherFlow"

this never shows on the skin:




Tom Keffer

unread,
May 12, 2020, 4:20:44 PM5/12/20
to weewx-user
See the documentation. Basically, you set option "enable" to false:

    [[SeasonsReport]]
        # The SeasonsReport uses the 'Seasons' skin, which contains the
        # images, templates and plots for the report.
        skin = Seasons
        enable = false

-tk

Ron Sell

unread,
May 12, 2020, 4:59:03 PM5/12/20
to weewx...@googlegroups.com
Thank You. Now i just cant find out why my updates to my weewx.conf wont change my belchertown skin

Tom Keffer

unread,
May 12, 2020, 5:14:48 PM5/12/20
to weewx-user
Sorry, but I don't know anything about the Belchertown skin.

G Hammer

unread,
May 13, 2020, 11:31:34 AM5/13/20
to weewx-user
Did you install the skin using wee_extension --install ?
Attached the log file

To unsubscribe from this group and stop receiving emails from it, send an email to weewx...@googlegroups.com.

--
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...@googlegroups.com.

--
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...@googlegroups.com.

--
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...@googlegroups.com.

--
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...@googlegroups.com.

--
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...@googlegroups.com.

Ron Sell

unread,
May 13, 2020, 1:54:50 PM5/13/20
to weewx...@googlegroups.com



Yes

This is 1.0 skin on my pi3


This is 1.2 skin on pi4 all the same settings and no errors in the log


Here is the 1.0 skin on the pi4 all same setting on weewx.conf


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/48536883-6f8b-45cf-88db-77dd08d509d5%40googlegroups.com.

G Hammer

unread,
May 13, 2020, 4:27:09 PM5/13/20
to weewx-user
I recall having that look once a while back.
I think I did this to correct it.
If it wasn't, no harm done if they are available for your Pi.
It looks like pyephem or if python3, python3-ephem aren't installed in the second screenshot.

Just wondering why you wish to return to v 1 though.

Anyway, give these a try.

sudo apt-get -y install libfreetype6-dev
sudo apt
-get -y install libjpeg-dev



William Burton

unread,
May 13, 2020, 5:52:15 PM5/13/20
to weewx-user
Hello Ron,

Did you follow the instructions at https://github.com/poblabs/weewx-belchertown/tree/development#belchertown-skin-as-default-skin?

You should view with the URL: http://10.0.0.181, not /var/www/html as some references to CSS or JavaScript might not resolve correctly.

Check the timestamp of index.html in /var/www/html which should be updated after each archive interval when reports are run:
$ ls -l /var/www/html/index.html


Also, check the document root location of your webserver Apache or Nginx.

Hope this helps,
-Bill

On Tuesday, May 12, 2020 at 4:59:03 PM UTC-4, Ron Sell wrote:
Attached the log file

To unsubscribe from this group and stop receiving emails from it, send an email to weewx...@googlegroups.com.

--
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...@googlegroups.com.

--
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...@googlegroups.com.

--
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...@googlegroups.com.

--
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...@googlegroups.com.

--
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...@googlegroups.com.

Ron Sell

unread,
May 13, 2020, 7:14:16 PM5/13/20
to weewx...@googlegroups.com
I don’t want 1.0. I just tried to install to try and troubleshoot things. 

--
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/7ea36df9-3f25-4d20-8db7-ffe2e02eed16%40googlegroups.com.

G Hammer

unread,
May 13, 2020, 7:29:39 PM5/13/20
to weewx...@googlegroups.com
Stick with the current version and troubleshoot it. It is different and the time spent will be useful.

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/AgqvlniDdLg/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/CABn15daaGpNsgD_%3Df-uuL%3D%2BLDhxfJ2c8hZ6UmFvizg6ZHYLQ1g%40mail.gmail.com.

Ron Sell

unread,
May 13, 2020, 7:53:02 PM5/13/20
to weewx...@googlegroups.com

Ron Sell

unread,
May 14, 2020, 12:29:54 PM5/14/20
to weewx-user
I got it to work. Had to reinstall PHP.

I extended my database to include :
schema_extended = schemas.wview.schema + [('appTemp', 'REAL'), ('windrun', 'REAL'), ('lightning_strikes', 'REAL'), ('avg_distance', 'REAL'), ('maxSolarRad', 'REAL'),('lightningYYY', 'REAL'), ('lightningZZZ', 'REAL')]

I followed all of the instructions here:

Now i get this error:

Any ideas?

Traceback (most recent call last):
  File "/usr/share/weewx/weewx/reportengine.py", line 197, in run
    obj.start()
  File "/usr/share/weewx/weewx/reportengine.py", line 280, in start
    self.run()
  File "/usr/share/weewx/weewx/cheetahgenerator.py", line 150, in run
    ngen = self.generate(gen_dict[section_name], self.gen_ts)
  File "/usr/share/weewx/weewx/cheetahgenerator.py", line 220, in generate
    ngen += self.generate(section[subsection], gen_ts)
  File "/usr/share/weewx/weewx/cheetahgenerator.py", line 220, in generate
    ngen += self.generate(section[subsection], gen_ts)
  File "/usr/share/weewx/weewx/cheetahgenerator.py", line 309, in generate
    default_binding)
  File "/usr/share/weewx/weewx/cheetahgenerator.py", line 376, in _getSearchList
    searchList += obj.get_extension_list(timespan, db_lookup)
  File "/usr/share/weewx/user/belchertown.py", line 836, in get_extension_list
    obs_output = getattr(current, obs)
  File "/usr/share/weewx/weewx/tags.py", line 457, in __getattr__
    vt = weewx.xtypes.get_scalar(obs_type, self.record, db_manager)
  File "/usr/share/weewx/weewx/xtypes.py", line 71, in get_scalar
    return xtype.get_scalar(obs_type, record, db_manager)
  File "/usr/share/weewx/weewx/wxservices.py", line 252, in get_scalar
    return getattr(self, method_name)(obs_type, record, db_manager)
  File "/usr/share/weewx/weewx/wxservices.py", line 274, in calc_cloudbase
    if 'outTemp' not in data or 'outHumidity' not in data:
TypeError: argument of type 'NoneType' is not iterable
Reply all
Reply to author
Forward
0 new messages