Belchertown / Graphs

303 views
Skip to first unread message

Parsoli 69

unread,
Apr 2, 2023, 2:40:16 PM4/2/23
to weewx-user
Hello Folks,

Long time v 1.0.1 Belchertown user.  Woke up yesterday to Darksky forecasts gone and for whatever reason, a Current Temp that was not updating.  So....Time to Upgrade!

Went thru the upgrade to 1.3.  Aeris forecasting working and all looks super.  Except, no graphs showing up on main page and empty in /graphs

Been reading all day long and deleted my graphs.conf, renamed the example file to graphs.conf.  Ran sudo weereports a zillion times, nothing.  Is there another process that will spawn these later in the day or should I be looking elsewhere?  Syslog gives the below.  Any thoughts on where to start digging?

copygenerator: copied 3 files to /var/www/html/

Apr  2 13:35:18 weather weewx[971]: reportengine: Caught unrecoverable exception in generator 'user.belchertown.HighchartsJsonGenerator'

Apr  2 13:35:18 weather weewx[971]:         ****  Error trying to use database binding wx_binding to graph observation outTemp. Error was: 'module' object has no attribute 'xtypes'.

Apr  2 13:35:18 weather weewx[971]:         ****  Traceback (most recent call last):

Apr  2 13:35:18 weather weewx[971]:         ****    File "/usr/share/weewx/weewx/reportengine.py", line 204, in run

Apr  2 13:35:18 weather weewx[971]:         ****      obj.start()

Apr  2 13:35:18 weather weewx[971]:         ****    File "/usr/share/weewx/weewx/reportengine.py", line 300, in start

Apr  2 13:35:18 weather weewx[971]:         ****      self.run()

Apr  2 13:35:18 weather weewx[971]:         ****    File "/usr/share/weewx/user/belchertown.py", line 2771, in run

Apr  2 13:35:18 weather weewx[971]:         ****      special_target_unit

Apr  2 13:35:18 weather weewx[971]:         ****    File "/usr/share/weewx/user/belchertown.py", line 3737, in get_observation_data

Apr  2 13:35:18 weather weewx[971]:         ****      % (binding, obs_lookup, e)

Apr  2 13:35:18 weather weewx[971]:         ****  Warning: Error trying to use database binding wx_binding to graph observation outTemp. Error was: 'module' object has no attribute 'xtypes'.

Apr  2 13:35:18 weather weewx[971]:         ****  Generator terminated



Parsoli 69

unread,
Apr 4, 2023, 8:28:00 AM4/4/23
to weewx-user
Since I've received no replies, figured I'd paste my weewx.conf data below to see if that gives someone a thought on where I should go with this.
My main content is at /var/www/html
There is a /var/www/html/weewx folder as well



# WEEWX CONFIGURATION FILE
#
# Copyright (c) 2009-2019 Tom Keffer <tke...@gmail.com>
# See the file LICENSE.txt for your rights.

##############################################################################

#<meta name="twitter:card" content="summary_large_image">
#<meta name="twitter:site" content="@Parsoli">
#<meta name="twitter:creator" content="@Parsoli">
#<meta name="twitter:title" content="Elburn Weather">
#<meta name="twitter:image" content="https://www.elburn.il.us/wp-content/uploads/2018/04/EburnFooterLogo-e1525036460870.png">

# This section is for general configuration information.

# Set to 1 for extra debug info, otherwise comment it out or set to zero
#debug = 1

# Root directory of the weewx data file hierarchy for this station
WEEWX_ROOT = /

# Whether to log successful operations
log_success = True

# Whether to log unsuccessful operations
log_failure = True

# How long to wait before timing out a socket (FTP, HTTP) connection
socket_timeout = 20

# Do not modify this. It is used when installing and updating weewx.
version = 3.9.2
loop_on_init = True

##############################################################################

[StdReport]

    # Where the skins reside, relative to WEEWX_ROOT
    SKIN_ROOT = /etc/weewx/skins

    # Where the generated reports should go, relative to WEEWX_ROOT
    HTML_ROOT = /var/www/html/weewx
    # The database binding indicates which data should be used in reports.
    data_binding = wx_binding

    # Whether to log a successful operation
    log_success = True

    # Whether to log an unsuccessful operation
    log_failure = False

    # Each of the following subsections defines a report that will be run.
    # See the customizing guide to change the units, plot types and line
    # colors, modify the fonts, display additional sensor data, and other
    # customizations. Many of those changes can be made here by overriding
    # parameters, or by modifying templates within the skin itself.

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

    [[SmartphoneReport]]
        # The SmartphoneReport uses the 'Smartphone' skin, and the images and
        # files are placed in a dedicated subdirectory.
        skin = Smartphone
        enable = false
        HTML_ROOT = /var/www/html/weewx/smartphone

    [[MobileReport]]
        # The MobileReport uses the 'Mobile' skin, and the images and files
        # are placed in a dedicated subdirectory.
        skin = Mobile
        enable = false
        HTML_ROOT = /var/www/html/weewx/mobile

    [[StandardReport]]
        # This is the old "Standard" skin. By default, it is not enabled.
        skin = Standard
        enable = false

    [[Belchertown]]
        HTML_ROOT = /var/www/html/
        belchertown_debug = 1
        skin = Belchertown
enable = true

        [[[Extras]]]
            logo_image = "https://www.elburn.il.us/wp-content/uploads/2018/04/EburnFooterLogo-e1525036460870.png"
            earthquake_enabled = 1
            twitter_enabled = 1
            belchertown_locale = auto
            #darksky_secret_key = "REDACTED"
            forecast_alert_enabled = 1
            #STEVE ADDED FORECAST DATA APR 23#
            forecast_enabled = 1
            forecast_provider = aeris
            forecast_api_id = REDACTED
            forecast_api_secret = REDACTED
            forecast_units = us
            forecast_lang = en
            forecast_stale = 3540
            forecast_aeris_use_metar = 1
            forecast_interval_hours = 24
            aqi_enabled = 1
            site_title = "Elburn Weather"
            belchertown_root_url = https://elburnweather.org
            # default = auto
            theme = auto
            theme_toggle_enabled = 1
            station_observations = barometer, dewpoint, outHumidity, rainWithRainRate
            show_apptemp = 1
highcharts_enabled = 1
            graph_page_show_all_button = 1
            graph_page_default_graphgroup = "day"
            highcharts_homepage_graphgroup = "day"
            highcharts_decimal = "auto"
            highcharts_thousands = "auto"
            webpage_autorefresh = 60000
            footer_copyright_text = "Elburn Weather"

#    [[Highcharts_Belchertown]]
#        HTML_ROOT = /var/www/html/weewx/belchertown
#        skin = Highcharts_Belchertown
#        #site_title = Elburn Weather

            # For help refer to the docs at https://github.com/poblabs/weewx-belchertown
            # and consult skin.conf for the configurable elements and their hierarchy

            #--- General Options ---
            # belchertown_debug = 0
            # belchertown_locale = "auto"
            # theme = light
            # theme_toggle_enabled = 1
            # logo_image = ""
            # logo_image_dark = ""
            # site_title = "My Weather Website"
            # station_observations = "barometer","dewpoint","outHumidity","rainWithRainRate"
            # beaufort_category = 0
            # manifest_name = "My Weather Website"
            # manifest_short_name = "MWW"
            # aeris_map = 0
            # radar_html = ''   #  (default seems to center on your lat/lon)
            # radar_html_dark = None
            # radar_zoom = 8
            # radar_marker = 0
            # almanac_extras = 1
            # highcharts_enabled = 1
            # graph_page_show_all_button = 1
            # graph_page_default_graphgroup = "day"
            # highcharts_homepage_graphgroup = "day"
            # highcharts_decimal = "auto"
            # highcharts_thousands = "auto"
            # googleAnalyticsId = ""
            # pi_kiosk_bold = "false"
            # pi_theme = "auto"
            # webpage_autorefresh = 0
            # reload_hook_images = 0
            # reload_images_radar = 300
            # reload_images_hook_asi = -1
            # reload_images_hook_af = -1
            # reload_images_hook_as = -1
            # reload_images_hook_ac = -1
            # show_last_updated_alert = 0
            # last_updated_alert_threshold = 1800


Parsoli 69

unread,
Apr 4, 2023, 8:54:46 AM4/4/23
to weewx-user
FYI, I am getting updated graph data at https://elburnweather.org/weewx in the native weewx skin.  However my Belchertown skin is accessed via https://elburnweather.org/
Is the skin supposed to grab the .png data at /weewx and pull that into the Graphs folder at the root of /var/www/html ?  Or some symobolic link to it?

jterr...@gmail.com

unread,
Apr 5, 2023, 12:59:44 PM4/5/23
to weewx-user
It appears that you are running weewx 3.9.2.  
The error you have shows that the new  belchertown.py (v1.3) script want to access to functions in  weewx.xtypes , which does not exists in version 3.9.2

You will need to install weewx 4.0 or higher to avoid this error.

Parsoli 69

unread,
Apr 5, 2023, 6:00:31 PM4/5/23
to weewx-user
Thank you Sir.  Instructions I was following said to be on at least 3.9.  I'll perform the upgrade and see how she goes!  Again thank you

jiaqi Yan

unread,
Apr 8, 2023, 5:02:14 PM4/8/23
to weewx...@googlegroups.com


Parsoli 69 <pars...@gmail.com> 於 2023年4月6日 06:00 寫道:

Thank you Sir.  Instructions I was following said to be on at least 3.9.  I'll perform the upgrade and see how she goes!  Again thank you
--
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/910f2225-9109-4e75-9ec6-c3776937007bn%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages