how to get run highcharts with weewx?

170 views
Skip to first unread message

Astrid

unread,
Mar 31, 2020, 6:52:10 AM3/31/20
to weewx-user
Hello!

I am using weewx 3.9.2 (installed via rpm) on
leap 15.1 and a a little bit modified version
from niculskin (installed manually).
I manually installed highcharts from git
https://github.com/gjr80/weewx-highcharts
and do my best to follow the instruction on
https://github.com/gjr80/weewx-highcharts/wiki/User's-Guide
to get it run.
But it does not run. :(

My local weewx is at /usr/share/weewx, config
is at /etc/weewx, local "www" is at /var/www/htdocsweewx.

To /usr/share/weewx/user I put
highcharts.py
highcharts.pyc

To /etc/weewx/skins/Highcharts I put
json-dir, js-dir and skin.conf.

json-dir I put to /etc/weewx/skins/niculskin too, I do
not know, of there necessay too?
Dito I put the two js-files to /etc/weewx/skins/niculskin/js

In /etc/weewx/weewx.conf I add the stanzalines
for highcharts at StdReport form UserGuide.
There are only the lines

[[[CheetahGenerator]]]
        [[[[ToDate]]]]
            [[[[[YearJSON]]]]]
                stale_age = 3600

no monthjson. Is it ok?

To /var/www/htdocs/weewx I put graphs.html
and check, that the relative path to js is ok.

I restart weewxd and with wee_reports I run
the reports.

If I check with journalctl -b | grep weewx
there is inside:

Mär 31 12:45:08 linux wee_reports[28082]: reportengine: Found configuration file /etc/weewx/skins/Highcharts/skin.conf for report 'Highcharts'
Mär 31 12:45:08 linux wee_reports[28082]: cheetahgenerator: using search list ['weewx.cheetahgenerator.Almanac', 'weewx.cheetahgenerator.Station', 'weewx.cheetahgenerator.Current', 'weewx.cheetahgenerator.Stats', 'weewx.cheetahgenerator.UnitInfo', 'weewx.cheetahgenerator.Extras', 'user.highchartsSearchX.highchartsMinRanges', 'user.highchartsSearchX.highchartsWeek', 'user.highchartsSearchX.highchartsYear', 'user.highchartsSearchX.highchartsWindRose']
Mär 31 12:45:10 linux wee_reports[28082]: cheetahgenerator: **** Ignoring template /etc/weewx/skins/Highcharts/json/week.json.tmpl
Mär 31 12:45:10 linux wee_reports[28082]: **** File "/usr/share/weewx/weewx/cheetahgenerator.py", line 332, in generate
Mär 31 12:45:10 linux wee_reports[28082]: **** File "_etc_weewx_skins_Highcharts_json_week_json_tmpl.py", line 371, in respond
Mär 31 12:45:11 linux wee_reports[28082]: cheetahgenerator: **** Ignoring template /etc/weewx/skins/Highcharts/json/year.json.tmpl
Mär 31 12:45:11 linux wee_reports[28082]: **** File "/usr/share/weewx/weewx/cheetahgenerator.py", line 332, in generate
Mär 31 12:45:11 linux wee_reports[28082]: **** File "_etc_weewx_skins_Highcharts_json_year_json_tmpl.py", line 363, in respond
Mär 31 12:45:11 linux wee_reports[28082]: reportengine: Found configuration file /etc/weewx/skins/niculskin/skin.conf for report 'StandardReport'
Mär 31 12:45:11 linux wee_reports[28082]: cheetahgenerator: using search list ['weewx.cheetahgenerator.Almanac', 'weewx.cheetahgenerator.Station', 'weewx.cheetahgenerator.Current', 'weewx.cheetahgenerator.Stats', 'weewx.cheetahgenerator.UnitInfo', 'weewx.cheetahgenerator.Extras', 'user.historygenerator.MyXSearch']
Mär 31 12:45:20 linux wee_reports[28082]: copygenerator: copied 11 files to /var/www/htdocs/weewx
Mär 31 12:45:20 linux wee_reports[28082]: reportengine: Found configuration file /etc/weewx/skins/Ftp/skin.conf for report 'FTP'
Mär 31 12:45:27 linux wee_reports[28082]: ftpupload: Uploaded file /RSS/weewx_rss.xml

But why does it ignore the json-files?

/var/www/htdocs/weewx/graphs.html

only shows the text from html. No plots.

How I can get it run?

Regards, Astrid

gjr80

unread,
Mar 31, 2020, 7:32:23 AM3/31/20
to weewx-user
I suspect the main issue you are encountering is running the highcharts report under wee_reports. Presently wee_reports does not load any user extensions (such as used by the highcharts extension) and consequently the report will fail. As an aside, when released WeeWX 4 will support user extensions under wee_reports.

Niculskin has nothing to do with the highcharts extension so any of the highcharts files you added to Niculskin can be removed, they will do nothing but confuse.

WeeWX extensions can be installed in one of two ways; they can be installed using the WeeWX utility wee_extension or they can be installed manually. wee_extension is the recommended option for novice users as wee_extension takes care of copying the right files to the right locations as well as making the necessary config settings/changes to enable basic operation of the extension.

Getting the highcharts extension to work is a two step process, first you need to get the extension generating the JSON data files used by Highcharts. Then you need to configure your web server to serve the pages with the plots. First we should concentrate on getting the necessary JSON files generated. It is not clear to me exactly what is in your [StdReport] stanza in weewx.conf. Could I suggest you post the output from the WeeWX utility wee_debug. Before posting the wee_debug output do check it for sensitive info such as user names, passwords, API keys etc; wee_debug is pretty good at obfuscating such sensitive info but it is not perfect.

Gary

Astrid

unread,
Mar 31, 2020, 8:26:16 AM3/31/20
to weewx-user
Hello!

Thank you very much for the infos.

>or they can be installed manually.
I preferr the manually installation.
In the past I had to completely resetup
my weewx, because one extension (not yours,
dont remember which it was), which
I installed with wee_extension made my
whole weewx craxy and damage, so
I started bey zero again and now
I preferr to do it manually.


>Niculskin has nothing to do with the highcharts extension so any of the highcharts files you added to >Niculskin can be removed, they will do nothing but confuse.
Ok, I did so now.


>It is not clear to me exactly what is in your [StdReport] stanza in weewx.conf.
I did as described in your Users Guide at 4. "edit weewx.conf and add to [StdReport]

Here is from wee_debug:

Using verbosity=1, displaying most info

wee_debug output will be sent to stdout(console)

Using configuration file /etc/weewx/weewx.conf
Using database binding 'wx_binding', which is bound to database 'archive_sqlite'

System info
  Platform:       Linux-4.12.14-lp151.28.40-default-x86_64-with-glibc2.2.5
  Python Version: 2.7.14

Load Information
  1 minute load average:  0.91
  5 minute load average:  1.48
  15 minute load average: 1.35

General Weewx info
  Weewx version 3.9.2 detected.

Station info
  Station type: FileParse
  Driver:       user.fileparse

Driver info
[FileParse]
    poll_interval = 60    # Sekunden
    path = /var/tmp/datafile
    driver = user.fileparse

Currently installed extensions
No extensions installed

Archive info
  Database name:        weewx.sdb
  Table name:           archive
  Version               2.0
  Unit system:          1 (US)
  First good timestamp: 2020-03-24 18:30:00 CET (1585071000)
  Last good timestamp:  2020-03-31 14:10:00 CEST (1585656600)
  Number of records:    1925
  weewx (weewx.conf) is set to use an archive interval of 300 seconds.
  The station hardware was not interrogated in determining archive interval.

Databases configured in weewx.conf
  Database name:        weewx.sdb
  Database driver:      weedb.sqlite

  Database name:        weewx
  Database driver:      weedb.mysql
  Database host:        localhost


Parsed and obfuscated weewx.conf
# WEEWX CONFIGURATION FILE
#
# Copyright (c) 2009-2019 Tom Keffer <tkeffer gmail.com>
# See the file LICENSE.txt for your rights.

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

# 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

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

#   This section is for information about the station.

[Station]
   
    # Description of the station location
    location = xxx
   
    # Latitude and longitude in decimal degrees
    latitude = xxx
    longitude = xxx
   
    # Altitude of the station, with unit it is in. This is downloaded from
    # from the station if the hardware supports it.
    altitude = 525, foot    # Choose 'foot' or 'meter' for unit
   
    # Set to type of station hardware. There must be a corresponding stanza
    # in this file with a 'driver' parameter indicating the driver to be used.
    station_type = FileParse    # WS23xx # FileParse
   
    # If you have a website, you may specify an URL
    #station_url = http://www.example.com
   
    # The start of the rain year (1=January; 10=October, etc.). This is
    # downloaded from the station if the hardware supports it.
    rain_year_start = 1
   
    # Start of week (0=Monday, 6=Sunday)
    week_start = 0

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

[WS23xx]
    # This section is for the La Crosse WS-2300 series of weather stations.
   
    # Serial port such as /dev/ttyS0, /dev/ttyUSB0, or /dev/cuaU0
    port = /dev/ttyS0
   
    # The station model, e.g., 'LaCrosse WS2317' or 'TFA Primus'
    model = LaCrosse WS23xx
   
    # The driver to use:
    driver = weewx.drivers.ws23xx

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

[FileParse]
    poll_interval = 60    # Sekunden
    path = /var/tmp/datafile
    driver = user.fileparse

#[[label_map]]
#    temp = outTemp
#    humi = outHumidity
#    in_temp = inTemp
#    in_humid = inHumidity

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

[Simulator]
    # This section is for the weewx weather station simulator
   
    # The time (in seconds) between LOOP packets.
    loop_interval = 2.5
   
    # The simulator mode can be either 'simulator' or 'generator'.
    # Real-time simulator. Sleep between each LOOP packet.
    mode = simulator
    # Generator.  Emit LOOP packets as fast as possible (useful for testing).
    #mode = generator
   
    # The start time. Format is YYYY-mm-ddTHH:MM. If not specified, the default
    # is to use the present time.
    #start = 2011-01-01T00:00
   
    # The driver to use:
    driver = weewx.drivers.simulator

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

#   This section is for uploading data to Internet sites

[StdRESTful]
   
    [[StationRegistry]]
        # To register this weather station with weewx, set this to true
        register_this_station = false
   
    [[AWEKAS]]
        # This section is for configuring posts to AWEKAS.
       
        # If you wish to do this, set the option 'enable' to true,
        # and specify a username and password.
        # To guard against parsing errors, put the password in quotes.
        enable = false
        username = XXX obfuscated by wee_debug XXX
        password = XXX obfuscated by wee_debug XXX
   
    [[CWOP]]
        # This section is for configuring posts to CWOP.
       
        # If you wish to do this, set the option 'enable' to true,
        # and specify the station ID (e.g., CW1234).
        enable = false
        station = XXX obfuscated by wee_debug XXX
   
    # If this is an APRS (radio amateur) station, uncomment
    # the following and replace with a passcode (e.g., 12345).
    #passcode = replace_me (APRS stations only)
   
    [[PWSweather]]
        # This section is for configuring posts to PWSweather.com.
       
        # If you wish to do this, set the option 'enable' to true,
        # and specify a station and password.
        # To guard against parsing errors, put the password in quotes.
        enable = false
        station = XXX obfuscated by wee_debug XXX
        password = XXX obfuscated by wee_debug XXX
   
    [[WOW]]
        # This section is for configuring posts to WOW.
       
        # If you wish to do this, set the option 'enable' to true,
        # and specify a station and password.
        # To guard against parsing errors, put the password in quotes.
        enable = false
        station = XXX obfuscated by wee_debug XXX
        password = XXX obfuscated by wee_debug XXX
   
    [[Wunderground]]
        # This section is for configuring posts to the Weather Underground.
       
        # If you wish to do this, set the option 'enable' to true,
        # and specify a station (e.g., 'KORHOODR3') and password.
        # To guard against parsing errors, put the password in quotes.
        enable = false
        station = XXX obfuscated by wee_debug XXX
        password = XXX obfuscated by wee_debug XXX
       
        # Set the following to True to have weewx use the WU "Rapidfire"
        # protocol. Not all hardware can support it. See the User's Guide.
        rapidfire = False

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

#   This section specifies what reports, using which skins, to generate.

[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/htdocs/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.
   
    [[Highcharts]]
        skin = Highcharts
       
        [[[Extras]]]
            [[[[MinRange]]]]
                barometer = "20, hPa"
                outTemp = "10, degree_C"
                radiation = 500
                rain = "5, mm"
                UV = 16
                windchill = "10, degree_C"
                windSpeed = 10
            [[[[WindRose]]]]
                bullseye_percent = True
                band_percent = True
                aggregate_type = ""
                petal_colors = "aqua, 0x0099FF, 0x0033FF, 0x009900, 0x00CC00, 0x33FF33, 0xCCFF00"
                period = "86400, 604800, month, year"
                bullseye_size = 20
                precision = 1
                petals = 16
                aggregate_interval = ""
                speedfactor = "0.0, 0.1, 0.2, 0.3, 0.5, 0.7, 1.0"
                title = Wind Rose
                legend_title = True
                calm_limit = 0.5
                source = windSpeed
                bullseye_color = 0xFFFACD
        [[[Units]]]
            [[[[StringFormats]]]]
                centibar = %.0f
                cm = %.2f
                cm_per_hour = %.2f
                degree_compass = %.0f
                degree_C = %.1f
                degree_F = %.1f
                foot = %.0f
                inch = %.2f
                inch_per_hour = %.2f
                hPa = %.1f
                inHg = %.3f
                km_per_hour = %.0f
                km_per_hour2 = %.1f
                knot = %.0f
                knot2 = %.1f
                mbar = %.1f
                meter = %.0f
                meter_per_second = %.1f
                meter_per_second2 = %.1f
                mile_per_hour = %.0f
                mile_per_hour2 = %.1f
                mm = %.1f
                mm_per_hour = %.1f
                mmHg = %.1f
                percent = %.0f
                uv_index = %.1f
                volt = %.1f
                watt_per_meter_squared = %.0f
                NONE = N/A
            [[[[Labels]]]]
                centibar = cb
                cm = cm
                cm_per_hour = cm/hr
                degree_compass = \u00B0
                degree_C = \u00B0 C
                degree_F = \u00B0 F
                foot = feet
                hPa = hPa
                inch = in
                inch_per_hour = in/hr
                inHg = inHg
                km_per_hour = km/hr
                km_per_hour2 = km/hr
                knot = knots
                knot2 = knots
                mbar = mbar
                meter = meters
                meter_per_second = m/s
                meter_per_second2 = m/s
                mile_per_hour = mph
                mile_per_hour2 = mph
                mm = mm
                mm_per_hour = mm/hr
                mmHg = mmHg
                percent = %
                uv_index = Index
                volt = V
                watt_per_meter_squared = W/m\u00B2
                NONE = ""
            [[[[Groups]]]]
                group_altitude = meter
                group_degree_day = degree_C_day
                group_pressure = hPa
                group_rain = mm
                group_rainrate = mm_per_hour
                group_speed = km_per_hour
                group_speed2 = km_per_hour2
                group_temperature = degree_C

        [[[CheetahGenerator]]]
            [[[[ToDate]]]]
                [[[[[YearJSON]]]]]
                    stale_age = 3600
   
    [[SeasonsReport]]
        # The SeasonsReport uses the 'Seasons' skin, which contains the
        # images, templates and plots for the report.
        skin = Seasons
        enable = false
   
    [[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/htdocs/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/htdocs/weewx/mobile
   
    [[StandardReport]]
        # This is the old "Standard" skin. By default, it is not enabled.
        skin = niculskin    # Standard
        enable = true
   
    [[FTP]]
        # FTP'ing the results to a webserver is treated as just another report,
        # albeit one with an unusual report generator!
        skin = Ftp
       
        # If you wish to use FTP, set "enable" to "true", then
        # fill out the next four lines.
        # Use quotes around passwords to guard against parsing errors.
        enable = true
        user = xxx
        password = xxx
        server = xxx
        path = /    # The destination directory, e.g., /weather
       
        # Set to True for an FTP over TLS (FTPS) connection. Not all servers
        # support this.
        secure_ftp = False
       
        # To upload files from something other than what HTML_ROOT is set
        # to above, specify a different HTML_ROOT here.
        HTML_ROOT = /var/www/htdocs/weewx
       
        # Most FTP servers use port 21
        port = 21
       
        # Set to 1 to use passive mode, zero for active mode
        passive = 1
   
    [[RSYNC]]
        # rsync'ing to a webserver is treated as just another report
        skin = Rsync
       
        # If you wish to use rsync, you must configure passwordless ssh using
        # public/private key authentication from the user account that weewx
        # runs to the user account on the remote machine where the files
        # will be copied.
        #
        # If you wish to use rsync, set "enable" to "true", then
        # fill out server, user, and path.
        # The server should appear in your .ssh/config file.
        # The user is the username used in the identity file.
        # The path is the destination directory, such as /var/www/html/weather.
        # Be sure that the user has write permissions on the destination!
        enable = false
        server = replace_me
        user = XXX obfuscated by wee_debug XXX
        path = replace_me
       
        # To upload files from something other than what HTML_ROOT is set
        # to above, specify a different HTML_ROOT here.
        #HTML_ROOT = /var/www/htdocs/weewx
       
        # Rsync can be configured to remove files from the remote server if
        # they don't exist under HTML_ROOT locally. USE WITH CAUTION: if you
        # make a mistake in the remote path, you could could unintentionally
        # cause unrelated files to be deleted. Set to 1 to enable remote file
        # deletion, zero to allow files to accumulate remotely.
        delete = 0
   
    ####
   
    # Various options for customizing your reports.
   
    [[Defaults]]
       
        [[[Units]]]
           
            # The following section sets what unit to use for each unit group.
            # NB: The unit is always in the singular. I.e., 'mile_per_hour',
            # NOT 'miles_per_hour'
            [[[[Groups]]]]
               
                group_altitude = meter    # Options are 'foot' or 'meter'
                group_degree_day = degree_C_day    # Options are 'degree_F_day' or 'degree_C_day'
                group_pressure = hPa    # Options are 'inHg', 'mmHg', 'mbar', or 'hPa'
                group_rain = mm    # Options are 'inch', 'cm', or 'mm'
                group_rainrate = mm_per_hour    # Options are 'inch_per_hour', 'cm_per_hour', or 'mm_per_hour'
                group_speed = km_per_hour    # Options are 'mile_per_hour', 'km_per_hour', 'knot', or 'meter_per_second'
                group_speed2 = km_per_hour2    # Options are 'mile_per_hour2', 'km_per_hour2', 'knot2', or 'meter_per_second2'
                group_temperature = degree_C    # Options are 'degree_F' or 'degree_C'
           
            # The following section sets the formatting for each type of unit.
            [[[[StringFormats]]]]
               
                centibar = %.0f
                cm = %.2f
                cm_per_hour = %.2f
                degree_C = %.1f
                degree_F = %.1f
                degree_compass = %.0f
                foot = %.0f
                hPa = %.1f
                hour = %.1f
                inHg = %.3f
                inch = %.2f
                inch_per_hour = %.2f
                km_per_hour = %.0f
                km_per_hour2 = %.1f
                knot = %.0f
                knot2 = %.1f
                mbar = %.1f
                meter = %.0f
                meter_per_second = %.1f
                meter_per_second2 = %.1f
                mile_per_hour = %.0f
                mile_per_hour2 = %.1f
                mm = %.1f
                mmHg = %.1f
                mm_per_hour = %.1f
                percent = %.0f
                second = %.0f
                uv_index = %.1f
                volt = %.1f
                watt_per_meter_squared = %.0f
                NONE = "   N/A"
           
            # The following section sets the label for each type of unit
            [[[[Labels]]]]
               
                centibar = " cb"
                cm = " cm"
                cm_per_hour = " cm/h"
                degree_C = " °C"
                degree_F = " °F"
                degree_compass = °
                foot = " feet"
                hPa = " hPa"
                inHg = " inHg"
                inch = " in"
                inch_per_hour = " in/h"
                km_per_hour = " km/h"
                km_per_hour2 = " km/h"
                knot = " knoten"
                knot2 = " knoten"
                mbar = " mbar"
                meter = " meter"
                meter_per_second = " m/s"
                meter_per_second2 = " m/s"
                mile_per_hour = " mph"
                mile_per_hour2 = " mph"
                mm = " mm"
                mmHg = " mmHg"
                mm_per_hour = " mm/h"
                percent = " %"
                volt = " V"
                watt_per_meter_squared = " W/m²"
                day = " Tag", " Tage"
                hour = " Stunde", " Stunden"
                minute = " Minute", " Minuten"
                second = " Sekunde", " Sekunden"
                NONE = ""
           
            # The following section sets the format for each time scale.
            # The values below will work in every locale, but they may not look
            # particularly attractive.
            [[[[TimeFormats]]]]
               
                hour = %H:%M
                day = %X
                week = %X (%A)
                month = %x %X
                year = %x %X
                rainyear = %x %X
                current = %x %X
                ephem_day = %X
                ephem_year = %x %X
           
            [[[[Ordinates]]]]
               
                # Ordinal directions. The last one is for no wind direction
                directions = N, NNO, NO, ONO, O, OSO, SO, SSO, S, SSW, SW, WSW, W, WNW, NW, NNW, N/A
               
                # The following section sets the base temperatures used for the
                #  calculation of heating and cooling degree-days.
                [[[[[DegreeDays]]]]]
                   
                    # Base temperature for heating days, with unit:
                    heating_base = 18, degree_C
                    # Base temperature for cooling days, with unit:
                    cooling_base = 18, degree_C
               
                # A trend takes a difference across a time period. The following
                # section sets the time period, and how big an error is allowed to
                # still be counted as the start or end of a period.
                [[[[[Trend]]]]]
                   
                    time_delta = 10800    # 3 hours
                    time_grace = 300    # 5 minutes
       
        # The labels to be used for each observation type
        [[[Labels]]]
           
            # Set to hemisphere abbreviations suitable for your location:
            hemispheres = N, S, O, W
           
            # Formats to be used for latitude whole degrees, longitude whole
            # degrees, and minutes:
            latlon_formats = %02d, %03d, %05.2f
           
            # Generic labels, keyed by an observation type.
            [[[[Generic]]]]
                barometer = Luftdruck
                dewpoint = Taupunkt
                ET = ET
                heatindex = Hitze-Index
                inHumidity = Inside Humidity
                inTemp = Inside Temperature
                outHumidity = Luftfeuchte
                outTemp = Temperatur
                radiation = Radiation
                rain = Rain
                rainRate = Rain Rate
                UV = UV Index
                windDir = Windrichtung
                windGust = Böen
                windGustDir = Gust Direction
                windSpeed = Wind
                windchill = Windchill
                windgustvec = Gust Vector
                windvec = Wind-Vektor
                extraTemp1 = Temperature1
                extraTemp2 = Temperature2
                extraTemp3 = Temperature3
               
                # Sensor status indicators
               
                rxCheckPercent = Signal Quality
                txBatteryStatus = Transmitter Battery
                windBatteryStatus = Wind Battery
                rainBatteryStatus = Rain Battery
                outTempBatteryStatus = Outside Temperature Battery
                inTempBatteryStatus = Inside Temperature Battery
                consBatteryVoltage = Console Battery
                heatingVoltage = Heating Battery
                supplyVoltage = Supply Voltage
                referenceVoltage = Reference Voltage
       
        [[[Almanac]]]
           
            # The labels to be used for the phases of the moon:
            # moon_phases = New, Waxing crescent, First quarter, Waxing gibbous, Full, Waning gibbous, Last quarter, Waning crescent
            moon_phases = Neumond, zunehmender Sichelmond, zunehmender Halbmond, zunehmender Dreiviertelmond, Vollmond, abnehmender Dreiviertelmond, abnehmender Halbmond, abnehmender Sichelmond

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

#   This service acts as a filter, converting the unit system coming from
#   the hardware to a unit system in the database.

[StdConvert]
   
    # The target_unit affects only the unit system in the database. Once
    # chosen it cannot be changed without converting the entire database.
    # Modification of target_unit after starting weewx will result in
    # corrupt data - the database will contain a mix of US and METRIC data.
    #
    # The value of target_unit does not affect the unit system for
    # reporting - reports can display US, Metric, or any combination of units.
    #
    # In most cases, target_unit should be left as the default: US
    #
    # In particular, those migrating from a standard wview installation
    # should use US since that is what the wview database contains.
   
    # DO NOT MODIFY THIS VALUE UNLESS YOU KNOW WHAT YOU ARE DOING!
    target_unit = US    # Options are 'US', 'METRICWX', or 'METRIC'

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

#   This section can adjust data using calibration expressions.

[StdCalibrate]
   
    [[Corrections]]
        # For each type, an arbitrary calibration expression can be given.
        # It should be in the units defined in the StdConvert section.
        # Example:
        foo = foo + 0.2

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

#   This section is for quality control checks. If units are not specified,
#   values must be in the units defined in the StdConvert section.

[StdQC]
   
    [[MinMax]]
        barometer = 800, 1200, hPa
        pressure = 800, 1200, hPa
        outTemp = -40, 60, degree_C
        inTemp = -10, 60, degree_C
        outHumidity = 0, 100
        inHumidity = 0, 100
        windSpeed = 0, 120, knot
        rain = 0, 10, inch

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

#   This section controls the origin of derived values.

[StdWXCalculate]
   
    [[Calculations]]
        # How to calculate derived quantities.  Possible values are:
        #  hardware        - use the value provided by hardware
        #  software        - use the value calculated by weewx
        #  prefer_hardware - use value provide by hardware if available,
        #                      otherwise use value calculated by weewx
       
        pressure = prefer_hardware
        barometer = prefer_hardware
        altimeter = prefer_hardware
        windchill = prefer_hardware
        heatindex = prefer_hardware
        dewpoint = prefer_hardware
        inDewpoint = prefer_hardware
        rainRate = prefer_hardware

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

#   For hardware that supports it, this section controls how often the
#   onboard clock gets updated.

[StdTimeSynch]
   
    # How often to check the weather station clock for drift (in seconds)
    clock_check = 14400
   
    # How much it can drift before we will correct it (in seconds)
    max_drift = 5

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

#   This section is for configuring the archive service.

[StdArchive]
   
    # If the station hardware supports data logging then the archive interval
    # will be downloaded from the station. Otherwise, specify it (in seconds).
    archive_interval = 300
   
    # If possible, new archive records are downloaded from the station
    # hardware. If the hardware does not support this, then new archive
    # records will be generated in software.
    # Set the following to "software" to force software record generation.
    record_generation = software
   
    # Whether to include LOOP data in hi/low statistics
    loop_hilo = True
   
    # The data binding used to save archive records
    data_binding = wx_binding

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

#   This section binds a data store to a database.

[DataBindings]
   
    [[wx_binding]]
        # The database must match one of the sections in [Databases].
        # This is likely to be the only option you would want to change.
        database = archive_sqlite
        # The name of the table within the database
        table_name = archive
        # The manager handles aggregation of data for historical summaries
        manager = weewx.wxmanager.WXDaySummaryManager
        # The schema defines the structure of the database.
        # It is *only* used when the database is created.
        schema = schemas.wview.schema

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

#   This section defines various databases.

[Databases]
   
    # A SQLite database is simply a single file
    [[archive_sqlite]]
        database_name = weewx.sdb
        database_type = SQLite
   
    # MySQL
    [[archive_mysql]]
        database_name = weewx
        database_type = MySQL

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

#   This section defines defaults for the different types of databases.

[DatabaseTypes]
   
    # Defaults for SQLite databases
    [[SQLite]]
        driver = weedb.sqlite
        # Directory in which the database files are located
        SQLITE_ROOT = /var/lib/weewx
   
    # Defaults for MySQL databases
    [[MySQL]]
        driver = weedb.mysql
        # The host where the database is located
        host = localhost
        # The user name for logging in to the host
        user = XXX obfuscated by wee_debug XXX
        # The password for the user name (quotes guard against parsing errors)
        password = XXX obfuscated by wee_debug XXX

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

#   This section configures the internal weewx engine.

[Engine]
   
    [[Services]]
        # This section specifies the services that should be run. They are
        # grouped by type, and the order of services within each group
        # determines the order in which the services will be run.
        prep_services = weewx.engine.StdTimeSynch
        data_services = ,
        process_services = weewx.engine.StdConvert, weewx.engine.StdCalibrate, weewx.engine.StdQC, weewx.wxservices.StdWXCalculate
        archive_services = weewx.engine.StdArchive
        # restful_services = weewx.restx.StdStationRegistry, weewx.restx.StdWunderground, weewx.restx.StdPWSweather, weewx.restx.StdCWOP, weewx.restx.StdWOW, weewx.restx.StdAWEKAS
        report_services = weewx.engine.StdPrint, weewx.engine.StdReport

wee_debug report successfully generated


Regards, Astrid

gjr80

unread,
Mar 31, 2020, 9:17:59 PM3/31/20
to weewx-user
On Tuesday, 31 March 2020 22:26:16 UTC+10, Astrid wrote:
Hello!

Thank you very much for the infos.
>or they can be installed manually.
I preferr the manually installation.
In the past I had to completely resetup
my weewx, because one extension (not yours,
dont remember which it was), which
I installed with wee_extension made my
whole weewx craxy and damage, so
I started bey zero again and now
I preferr to do it manually.

I think this is the exception rather than the rule and my advice to new users remains to use wee_extension.
 
>It is not clear to me exactly what is in your [StdReport] stanza in weewx.conf.
I did as described in your Users Guide at 4. "edit weewx.conf and add to [StdReport]

OK, looking at the wee_debug report you provided the [StdReport] stanza looks fine. I suggest the following:

1. edit weewx.conf and locate the following lines under [StdReport]:

        [[[CheetahGenerator]]]
           
[[[[ToDate]]]]
               
[[[[[YearJSON]]]]]
                    stale_age
= 3600

place a # before the stale_age =  line to comment out that line. The result should look something like:

        [[[CheetahGenerator]]]
           
[[[[ToDate]]]]
               
[[[[[YearJSON]]]]]
#                    stale_age = 3600

This will force the year JSON file to be generated every report cycle rather than every one hour.

2. still in weewx.conf confirm that debug = 1 is still set.

3. save weewx.conf and restart WeeWX

4. if the JSON files are not being generated let WeeWX run for 15 minutes then take a copy of the log covering the period from when you restarted WeeWX until the 15 minutes has elapsed. Make sure you capture the entire WeeWX startup sequence and do not edit or otherwise alter the log extract.

Gary

Astrid

unread,
Apr 1, 2020, 8:50:23 AM4/1/20
to weewx-user
Hello!

Thanx. I did so, here it is.

Regards, Astrid

Apr 01 13:30:20 linux systemd[1]: Started weewx weather system.
Apr 01 13:30:21 linux weewx[28854]: engine: Initializing weewx version 3.9.2
Apr 01 13:30:21 linux weewx[28854]: engine: Using Python 2.7.14 (default, Oct 12 2017, 15:50:02) [GCC]
Apr 01 13:30:21 linux weewx[28854]: engine: Platform Linux-4.12.14-lp151.28.40-default-x86_64-with-glibc2.2.5
Apr 01 13:30:21 linux weewx[28854]: engine: Locale is 'de_DE.UTF-8'
Apr 01 13:30:21 linux weewx[28854]: engine: pid file is /var/run/weewx.pid
Apr 01 13:30:21 linux systemd[1]: weewx.service: Supervising process 28858 which is not our child. We'll most likely not notice when it exits.
Apr 01 13:30:21 linux weewx[28858]: engine: Using configuration file /etc/weewx/weewx.conf
Apr 01 13:30:21 linux weewx[28858]: engine: Debug is 1
Apr 01 13:30:21 linux weewx[28858]: engine: Initializing engine
Apr 01 13:30:21 linux weewx[28858]: engine: Loading station type FileParse (user.fileparse)
Apr 01 13:30:21 linux weewx[28858]: fileparse: data file is /var/tmp/datafile
Apr 01 13:30:21 linux weewx[28858]: fileparse: polling interval is 60.0
Apr 01 13:30:21 linux weewx[28858]: fileparse: label map is {}
Apr 01 13:30:21 linux weewx[28858]: engine: Loading service weewx.engine.StdTimeSynch
Apr 01 13:30:21 linux weewx[28858]: engine: Finished loading service weewx.engine.StdTimeSynch
Apr 01 13:30:21 linux weewx[28858]: engine: Loading service weewx.engine.StdConvert
Apr 01 13:30:21 linux weewx[28858]: engine: StdConvert target unit is 0x1
Apr 01 13:30:21 linux weewx[28858]: engine: Finished loading service weewx.engine.StdConvert
Apr 01 13:30:21 linux weewx[28858]: engine: Loading service weewx.engine.StdCalibrate
Apr 01 13:30:21 linux weewx[28858]: engine: Finished loading service weewx.engine.StdCalibrate
Apr 01 13:30:21 linux weewx[28858]: engine: Loading service weewx.engine.StdQC
Apr 01 13:30:21 linux weewx[28858]: engine: Finished loading service weewx.engine.StdQC
Apr 01 13:30:21 linux weewx[28858]: engine: Loading service weewx.wxservices.StdWXCalculate
Apr 01 13:30:21 linux weewx[28858]: wxcalculate: The following values will be calculated: barometer=prefer_hardware, windchill=prefer_hardware, dewpoint=prefer_hardware, appTemp=prefer_hardware, rainRate=prefer_hardware, windrun=prefer_hardware, heatindex=prefer_hardware, maxSolarRad=prefer_hardware, humidex=prefer_hardware, pressure=prefer_hardware, inDewpoint=prefer_hardware, ET=prefer_hardware, altimeter=prefer_hardware, cloudbase=prefer_hardware
Apr 01 13:30:21 linux weewx[28858]: wxcalculate: The following algorithms will be used for calculations: altimeter=aaNOAA, maxSolarRad=RS
Apr 01 13:30:21 linux weewx[28858]: engine: Finished loading service weewx.wxservices.StdWXCalculate
Apr 01 13:30:21 linux weewx[28858]: engine: Loading service weewx.engine.StdArchive
Apr 01 13:30:21 linux weewx[28858]: engine: Archive will use data binding wx_binding
Apr 01 13:30:21 linux weewx[28858]: engine: Record generation will be attempted in 'software'
Apr 01 13:30:21 linux weewx[28858]: engine: Using archive interval of 300 seconds (software record generation)
Apr 01 13:30:21 linux weewx[28858]: engine: Use LOOP data in hi/low calculations: 1
Apr 01 13:30:21 linux weewx[28858]: manager: Daily summary version is 2.0
Apr 01 13:30:21 linux weewx[28858]: engine: Using binding 'wx_binding' to database 'weewx.sdb'
Apr 01 13:30:21 linux weewx[28858]: manager: Starting backfill of daily summaries
Apr 01 13:30:21 linux weewx[28858]: engine: Finished loading service weewx.engine.StdArchive
Apr 01 13:30:21 linux weewx[28858]: engine: Loading service weewx.engine.StdPrint
Apr 01 13:30:21 linux weewx[28858]: engine: Finished loading service weewx.engine.StdPrint
Apr 01 13:30:21 linux weewx[28858]: engine: Loading service weewx.engine.StdReport
Apr 01 13:30:21 linux weewx[28858]: engine: Finished loading service weewx.engine.StdReport
Apr 01 13:30:21 linux weewx[28858]: engine: Starting up weewx version 3.9.2
Apr 01 13:30:21 linux weewx[28858]: engine: Station does not support reading the time
Apr 01 13:30:21 linux weewx[28858]: engine: Starting main packet loop.
Apr 01 13:35:21 linux weewx[28858]: manager: Added record 2020-04-01 13:35:00 CEST (1585740900) to database 'weewx.sdb'
Apr 01 13:35:21 linux weewx[28858]: manager: Added record 2020-04-01 13:35:00 CEST (1585740900) to daily summary in 'weewx.sdb'
Apr 01 13:35:21 linux weewx[28858]: reportengine: Running reports for latest time in the database.
Apr 01 13:35:21 linux weewx[28858]: reportengine: Running report 'Highcharts'
Apr 01 13:35:21 linux weewx[28858]: reportengine: Found configuration file /etc/weewx/skins/Highcharts/skin.conf for report 'Highcharts'
Apr 01 13:35:21 linux weewx[28858]: cheetahgenerator: using search list ['weewx.cheetahgenerator.Almanac', 'weewx.cheetahgenerator.Station', 'weewx.cheetahgenerator.Current', 'weewx.cheetahgenerator.Stats', 'weewx.cheetahgenerator.UnitInfo', 'weewx.cheetahgenerator.Extras', 'user.highchartsSearchX.highchartsMinRanges', 'user.highchartsSearchX.highchartsWeek', 'user.highchartsSearchX.highchartsYear', 'user.highchartsSearchX.highchartsWindRose']
Apr 01 13:35:22 linux weewx[28858]: manager: Daily summary version is 2.0
Apr 01 13:35:23 linux weewx[28858]: cheetahgenerator: Generate failed with exception '<class 'NameMapper.NotFound'>'
Apr 01 13:35:23 linux weewx[28858]: cheetahgenerator: **** Ignoring template /etc/weewx/skins/Highcharts/json/week.json.tmpl
Apr 01 13:35:23 linux weewx[28858]: cheetahgenerator: **** Reason: cannot find 'wr86400'
Apr 01 13:35:23 linux weewx[28858]: ****  Traceback (most recent call last):
Apr 01 13:35:23 linux weewx[28858]: ****    File "/usr/share/weewx/weewx/cheetahgenerator.py", line 332, in generate
Apr 01 13:35:23 linux weewx[28858]: ****      fd.write(str(compiled_template))
Apr 01 13:35:23 linux weewx[28858]: ****    File "/usr/lib64/python2.7/site-packages/Cheetah/Template.py", line 1005, in __str__
Apr 01 13:35:23 linux weewx[28858]: ****      rc = getattr(self, mainMethName)()
Apr 01 13:35:23 linux weewx[28858]: ****    File "_etc_weewx_skins_Highcharts_json_week_json_tmpl.py", line 371, in respond
Apr 01 13:35:23 linux weewx[28858]: ****  NotFound: cannot find 'wr86400'
Apr 01 13:35:24 linux weewx[28858]: cheetahgenerator: Generate failed with exception '<class 'NameMapper.NotFound'>'
Apr 01 13:35:24 linux weewx[28858]: cheetahgenerator: **** Ignoring template /etc/weewx/skins/Highcharts/json/year.json.tmpl
Apr 01 13:35:24 linux weewx[28858]: cheetahgenerator: **** Reason: cannot find 'wrmonth'
Apr 01 13:35:24 linux weewx[28858]: ****  Traceback (most recent call last):
Apr 01 13:35:24 linux weewx[28858]: ****    File "/usr/share/weewx/weewx/cheetahgenerator.py", line 332, in generate
Apr 01 13:35:24 linux weewx[28858]: ****      fd.write(str(compiled_template))
Apr 01 13:35:24 linux weewx[28858]: ****    File "/usr/lib64/python2.7/site-packages/Cheetah/Template.py", line 1005, in __str__
Apr 01 13:35:24 linux weewx[28858]: ****      rc = getattr(self, mainMethName)()
Apr 01 13:35:24 linux weewx[28858]: ****    File "_etc_weewx_skins_Highcharts_json_year_json_tmpl.py", line 363, in respond
Apr 01 13:35:24 linux weewx[28858]: ****  NotFound: cannot find 'wrmonth'
Apr 01 13:35:24 linux weewx[28858]: cheetahgenerator: Generated 0 files for report Highcharts in 2.13 seconds
Apr 01 13:35:24 linux weewx[28858]: reportengine: Report 'SeasonsReport' not enabled. Skipping.
Apr 01 13:35:24 linux weewx[28858]: reportengine: Report 'SmartphoneReport' not enabled. Skipping.
Apr 01 13:35:24 linux weewx[28858]: reportengine: Report 'MobileReport' not enabled. Skipping.
Apr 01 13:35:24 linux weewx[28858]: reportengine: Running report 'StandardReport'
Apr 01 13:35:24 linux weewx[28858]: reportengine: Found configuration file /etc/weewx/skins/niculskin/skin.conf for report 'StandardReport'
Apr 01 13:35:24 linux weewx[28858]: translategenerator.pyc: Language is german
Apr 01 13:35:24 linux weewx[28858]: cheetahgenerator: using search list ['weewx.cheetahgenerator.Almanac', 'weewx.cheetahgenerator.Station', 'weewx.cheetahgenerator.Current', 'weewx.cheetahgenerator.Stats', 'weewx.cheetahgenerator.UnitInfo', 'weewx.cheetahgenerator.Extras', 'user.historygenerator.MyXSearch']
Apr 01 13:35:24 linux weewx[28858]: manager: Daily summary version is 2.0
Apr 01 13:35:24 linux weewx[28858]: historygenerator.pyc: Generated 5 tables in 0.08 seconds
Apr 01 13:35:28 linux weewx[28858]: cheetahgenerator: Generated 9 files for report StandardReport in 4.31 seconds
Apr 01 13:35:28 linux weewx[28858]: manager: Daily summary version is 2.0
Apr 01 13:35:29 linux weewx[28858]: imagegenerator: Generated 7 images for StandardReport in 1.18 seconds
Apr 01 13:35:29 linux weewx[28858]: copygenerator: copied 11 files to /var/www/htdocs/weewx
Apr 01 13:35:29 linux weewx[28858]: reportengine: Running report 'FTP'
Apr 01 13:35:29 linux weewx[28858]: reportengine: Found configuration file /etc/weewx/skins/Ftp/skin.conf for report 'FTP'
Apr 01 13:35:29 linux weewx[28858]: ftpupload: Attempting connection to ul-vettweiss.de
Apr 01 13:35:30 linux weewx[28858]: ftpupload: Connected to ul-vettweiss.de
Apr 01 13:35:30 linux weewx[28858]: ftpupload: Uploaded file /month.html
Apr 01 13:35:30 linux weewx[28858]: ftpupload: Uploaded file /daywindvec.png
Apr 01 13:35:30 linux weewx[28858]: ftpupload: Uploaded file /daytempdew.png
Apr 01 13:35:30 linux weewx[28858]: ftpupload: Uploaded file /almanac.html
Apr 01 13:35:31 linux weewx[28858]: ftpupload: Uploaded file /daywind.png
Apr 01 13:35:31 linux weewx[28858]: ftpupload: Uploaded file /404.html
Apr 01 13:35:31 linux weewx[28858]: ftpupload: Uploaded file /dayhumidity.png
Apr 01 13:35:31 linux weewx[28858]: ftpupload: Uploaded file /robots.txt
Apr 01 13:35:31 linux weewx[28858]: ftpupload: Uploaded file /index.html
Apr 01 13:35:32 linux weewx[28858]: ftpupload: Uploaded file /touch-icon.png
Apr 01 13:35:32 linux weewx[28858]: ftpupload: Uploaded file /daybarometer.png
Apr 01 13:35:32 linux weewx[28858]: ftpupload: Uploaded file /year.html
Apr 01 13:35:32 linux weewx[28858]: ftpupload: Uploaded file /week.html
Apr 01 13:35:32 linux weewx[28858]: ftpupload: Uploaded file /history.html
Apr 01 13:35:33 linux weewx[28858]: ftpupload: Uploaded file /daywinddir.png
Apr 01 13:35:33 linux weewx[28858]: ftpupload: Uploaded file /daytempchill.png
Apr 01 13:35:33 linux weewx[28858]: ftpupload: Uploaded file /NOAA/NOAA-2020.txt
Apr 01 13:35:33 linux weewx[28858]: ftpupload: Uploaded file /NOAA/NOAA-2020-04.txt
Apr 01 13:35:34 linux weewx[28858]: ftpupload: Uploaded file /css/main.css
Apr 01 13:35:34 linux weewx[28858]: ftpupload: Uploaded file /css/scss/_site.scss
Apr 01 13:35:34 linux weewx[28858]: ftpupload: Uploaded file /css/scss/main.scss
Apr 01 13:35:34 linux weewx[28858]: ftpupload: Uploaded file /css/scss/_mixins.scss
Apr 01 13:35:34 linux weewx[28858]: ftpupload: Uploaded file /css/scss/_variables.scss
Apr 01 13:35:35 linux weewx[28858]: ftpupload: Uploaded file /css/scss/_dry.scss
Apr 01 13:35:35 linux weewx[28858]: ftpupload: Uploaded file /css/scss/_normalize.scss
Apr 01 13:35:35 linux weewx[28858]: ftpupload: Uploaded file /js/modernizr-2.6.2.min.js
Apr 01 13:35:35 linux weewx[28858]: ftpupload: Uploaded file /RSS/weewx_rss.xml
Apr 01 13:35:35 linux weewx[28858]: ftpgenerator: ftp'd 27 files in 5.98 seconds
Apr 01 13:35:35 linux weewx[28858]: reportengine: Report 'RSYNC' not enabled. Skipping.
Apr 01 13:40:22 linux weewx[28858]: manager: Added record 2020-04-01 13:40:00 CEST (1585741200) to database 'weewx.sdb'
Apr 01 13:40:22 linux weewx[28858]: manager: Added record 2020-04-01 13:40:00 CEST (1585741200) to daily summary in 'weewx.sdb'
Apr 01 13:40:22 linux weewx[28858]: reportengine: Running reports for latest time in the database.
Apr 01 13:40:22 linux weewx[28858]: reportengine: Running report 'Highcharts'
Apr 01 13:40:22 linux weewx[28858]: reportengine: Found configuration file /etc/weewx/skins/Highcharts/skin.conf for report 'Highcharts'
Apr 01 13:40:22 linux weewx[28858]: cheetahgenerator: using search list ['weewx.cheetahgenerator.Almanac', 'weewx.cheetahgenerator.Station', 'weewx.cheetahgenerator.Current', 'weewx.cheetahgenerator.Stats', 'weewx.cheetahgenerator.UnitInfo', 'weewx.cheetahgenerator.Extras', 'user.highchartsSearchX.highchartsMinRanges', 'user.highchartsSearchX.highchartsWeek', 'user.highchartsSearchX.highchartsYear', 'user.highchartsSearchX.highchartsWindRose']
Apr 01 13:40:22 linux weewx[28858]: manager: Daily summary version is 2.0
Apr 01 13:40:23 linux weewx[28858]: cheetahgenerator: Generate failed with exception '<class 'NameMapper.NotFound'>'
Apr 01 13:40:23 linux weewx[28858]: cheetahgenerator: **** Ignoring template /etc/weewx/skins/Highcharts/json/week.json.tmpl
Apr 01 13:40:23 linux weewx[28858]: cheetahgenerator: **** Reason: cannot find 'wr86400'
Apr 01 13:40:23 linux weewx[28858]: ****  Traceback (most recent call last):
Apr 01 13:40:23 linux weewx[28858]: ****    File "/usr/share/weewx/weewx/cheetahgenerator.py", line 332, in generate
Apr 01 13:40:23 linux weewx[28858]: ****      fd.write(str(compiled_template))
Apr 01 13:40:23 linux weewx[28858]: ****    File "/usr/lib64/python2.7/site-packages/Cheetah/Template.py", line 1005, in __str__
Apr 01 13:40:23 linux weewx[28858]: ****      rc = getattr(self, mainMethName)()
Apr 01 13:40:23 linux weewx[28858]: ****    File "_etc_weewx_skins_Highcharts_json_week_json_tmpl.py", line 371, in respond
Apr 01 13:40:23 linux weewx[28858]: ****  NotFound: cannot find 'wr86400'
Apr 01 13:40:24 linux weewx[28858]: cheetahgenerator: Generate failed with exception '<class 'NameMapper.NotFound'>'
Apr 01 13:40:24 linux weewx[28858]: cheetahgenerator: **** Ignoring template /etc/weewx/skins/Highcharts/json/year.json.tmpl
Apr 01 13:40:24 linux weewx[28858]: cheetahgenerator: **** Reason: cannot find 'wrmonth'
Apr 01 13:40:24 linux weewx[28858]: ****  Traceback (most recent call last):
Apr 01 13:40:24 linux weewx[28858]: ****    File "/usr/share/weewx/weewx/cheetahgenerator.py", line 332, in generate
Apr 01 13:40:24 linux weewx[28858]: ****      fd.write(str(compiled_template))
Apr 01 13:40:24 linux weewx[28858]: ****    File "/usr/lib64/python2.7/site-packages/Cheetah/Template.py", line 1005, in __str__
Apr 01 13:40:24 linux weewx[28858]: ****      rc = getattr(self, mainMethName)()
Apr 01 13:40:24 linux weewx[28858]: ****    File "_etc_weewx_skins_Highcharts_json_year_json_tmpl.py", line 363, in respond
Apr 01 13:40:24 linux weewx[28858]: ****  NotFound: cannot find 'wrmonth'
Apr 01 13:40:24 linux weewx[28858]: cheetahgenerator: Generated 0 files for report Highcharts in 2.07 seconds
Apr 01 13:40:24 linux weewx[28858]: reportengine: Report 'SeasonsReport' not enabled. Skipping.
Apr 01 13:40:24 linux weewx[28858]: reportengine: Report 'SmartphoneReport' not enabled. Skipping.
Apr 01 13:40:24 linux weewx[28858]: reportengine: Report 'MobileReport' not enabled. Skipping.
Apr 01 13:40:24 linux weewx[28858]: reportengine: Running report 'StandardReport'
Apr 01 13:40:24 linux weewx[28858]: reportengine: Found configuration file /etc/weewx/skins/niculskin/skin.conf for report 'StandardReport'
Apr 01 13:40:24 linux weewx[28858]: translategenerator.pyc: Language is german
Apr 01 13:40:24 linux weewx[28858]: cheetahgenerator: using search list ['weewx.cheetahgenerator.Almanac', 'weewx.cheetahgenerator.Station', 'weewx.cheetahgenerator.Current', 'weewx.cheetahgenerator.Stats', 'weewx.cheetahgenerator.UnitInfo', 'weewx.cheetahgenerator.Extras', 'user.historygenerator.MyXSearch']
Apr 01 13:40:24 linux weewx[28858]: manager: Daily summary version is 2.0
Apr 01 13:40:24 linux weewx[28858]: historygenerator.pyc: Generated 5 tables in 0.09 seconds
Apr 01 13:40:26 linux weewx[28858]: cheetahgenerator: Generated 9 files for report StandardReport in 2.04 seconds
Apr 01 13:40:26 linux weewx[28858]: manager: Daily summary version is 2.0
Apr 01 13:40:27 linux weewx[28858]: imagegenerator: Generated 7 images for StandardReport in 1.06 seconds
Apr 01 13:40:27 linux weewx[28858]: copygenerator: copied 0 files to /var/www/htdocs/weewx
Apr 01 13:40:27 linux weewx[28858]: reportengine: Running report 'FTP'
Apr 01 13:40:27 linux weewx[28858]: reportengine: Found configuration file /etc/weewx/skins/Ftp/skin.conf for report 'FTP'
Apr 01 13:40:27 linux weewx[28858]: ftpupload: Attempting connection to ul-vettweiss.de
Apr 01 13:40:27 linux weewx[28858]: ftpupload: Connected to ul-vettweiss.de
Apr 01 13:40:28 linux weewx[28858]: ftpupload: Uploaded file /month.html
Apr 01 13:40:28 linux weewx[28858]: ftpupload: Uploaded file /daywindvec.png
Apr 01 13:40:28 linux weewx[28858]: ftpupload: Uploaded file /daytempdew.png
Apr 01 13:40:28 linux weewx[28858]: ftpupload: Uploaded file /almanac.html
Apr 01 13:40:28 linux weewx[28858]: ftpupload: Uploaded file /daywind.png
Apr 01 13:40:29 linux weewx[28858]: ftpupload: Uploaded file /dayhumidity.png
Apr 01 13:40:29 linux weewx[28858]: ftpupload: Uploaded file /index.html
Apr 01 13:40:29 linux weewx[28858]: ftpupload: Uploaded file /daybarometer.png
Apr 01 13:40:29 linux weewx[28858]: ftpupload: Uploaded file /year.html
Apr 01 13:40:29 linux weewx[28858]: ftpupload: Uploaded file /week.html
Apr 01 13:40:30 linux weewx[28858]: ftpupload: Uploaded file /history.html
Apr 01 13:40:30 linux weewx[28858]: ftpupload: Uploaded file /daywinddir.png
Apr 01 13:40:30 linux weewx[28858]: ftpupload: Uploaded file /daytempchill.png
Apr 01 13:40:30 linux weewx[28858]: ftpupload: Uploaded file /NOAA/NOAA-2020.txt
Apr 01 13:40:30 linux weewx[28858]: ftpupload: Uploaded file /NOAA/NOAA-2020-04.txt
Apr 01 13:40:31 linux weewx[28858]: ftpupload: Uploaded file /RSS/weewx_rss.xml
Apr 01 13:40:31 linux weewx[28858]: ftpgenerator: ftp'd 16 files in 3.75 seconds
Apr 01 13:40:31 linux weewx[28858]: reportengine: Report 'RSYNC' not enabled. Skipping.
Apr 01 13:45:22 linux weewx[28858]: manager: Added record 2020-04-01 13:45:00 CEST (1585741500) to database 'weewx.sdb'
Apr 01 13:45:22 linux weewx[28858]: manager: Added record 2020-04-01 13:45:00 CEST (1585741500) to daily summary in 'weewx.sdb'
Apr 01 13:45:22 linux weewx[28858]: reportengine: Running reports for latest time in the database.
Apr 01 13:45:22 linux weewx[28858]: reportengine: Running report 'Highcharts'
Apr 01 13:45:22 linux weewx[28858]: reportengine: Found configuration file /etc/weewx/skins/Highcharts/skin.conf for report 'Highcharts'
Apr 01 13:45:22 linux weewx[28858]: cheetahgenerator: using search list ['weewx.cheetahgenerator.Almanac', 'weewx.cheetahgenerator.Station', 'weewx.cheetahgenerator.Current', 'weewx.cheetahgenerator.Stats', 'weewx.cheetahgenerator.UnitInfo', 'weewx.cheetahgenerator.Extras', 'user.highchartsSearchX.highchartsMinRanges', 'user.highchartsSearchX.highchartsWeek', 'user.highchartsSearchX.highchartsYear', 'user.highchartsSearchX.highchartsWindRose']
Apr 01 13:45:22 linux weewx[28858]: manager: Daily summary version is 2.0
Apr 01 13:45:23 linux weewx[28858]: cheetahgenerator: Generate failed with exception '<class 'NameMapper.NotFound'>'
Apr 01 13:45:23 linux weewx[28858]: cheetahgenerator: **** Ignoring template /etc/weewx/skins/Highcharts/json/week.json.tmpl
Apr 01 13:45:23 linux weewx[28858]: cheetahgenerator: **** Reason: cannot find 'wr86400'
Apr 01 13:45:23 linux weewx[28858]: ****  Traceback (most recent call last):
Apr 01 13:45:23 linux weewx[28858]: ****    File "/usr/share/weewx/weewx/cheetahgenerator.py", line 332, in generate
Apr 01 13:45:23 linux weewx[28858]: ****      fd.write(str(compiled_template))
Apr 01 13:45:23 linux weewx[28858]: ****    File "/usr/lib64/python2.7/site-packages/Cheetah/Template.py", line 1005, in __str__
Apr 01 13:45:23 linux weewx[28858]: ****      rc = getattr(self, mainMethName)()
Apr 01 13:45:23 linux weewx[28858]: ****    File "_etc_weewx_skins_Highcharts_json_week_json_tmpl.py", line 371, in respond
Apr 01 13:45:23 linux weewx[28858]: ****  NotFound: cannot find 'wr86400'
Apr 01 13:45:25 linux weewx[28858]: cheetahgenerator: Generate failed with exception '<class 'NameMapper.NotFound'>'
Apr 01 13:45:25 linux weewx[28858]: cheetahgenerator: **** Ignoring template /etc/weewx/skins/Highcharts/json/year.json.tmpl
Apr 01 13:45:25 linux weewx[28858]: cheetahgenerator: **** Reason: cannot find 'wrmonth'
Apr 01 13:45:25 linux weewx[28858]: ****  Traceback (most recent call last):
Apr 01 13:45:25 linux weewx[28858]: ****    File "/usr/share/weewx/weewx/cheetahgenerator.py", line 332, in generate
Apr 01 13:45:25 linux weewx[28858]: ****      fd.write(str(compiled_template))
Apr 01 13:45:25 linux weewx[28858]: ****    File "/usr/lib64/python2.7/site-packages/Cheetah/Template.py", line 1005, in __str__
Apr 01 13:45:25 linux weewx[28858]: ****      rc = getattr(self, mainMethName)()
Apr 01 13:45:25 linux weewx[28858]: ****    File "_etc_weewx_skins_Highcharts_json_year_json_tmpl.py", line 363, in respond
Apr 01 13:45:25 linux weewx[28858]: ****  NotFound: cannot find 'wrmonth'
Apr 01 13:45:25 linux weewx[28858]: cheetahgenerator: Generated 0 files for report Highcharts in 2.37 seconds
Apr 01 13:45:25 linux weewx[28858]: reportengine: Report 'SeasonsReport' not enabled. Skipping.
Apr 01 13:45:25 linux weewx[28858]: reportengine: Report 'SmartphoneReport' not enabled. Skipping.
Apr 01 13:45:25 linux weewx[28858]: reportengine: Report 'MobileReport' not enabled. Skipping.
Apr 01 13:45:25 linux weewx[28858]: reportengine: Running report 'StandardReport'
Apr 01 13:45:25 linux weewx[28858]: reportengine: Found configuration file /etc/weewx/skins/niculskin/skin.conf for report 'StandardReport'
Apr 01 13:45:25 linux weewx[28858]: translategenerator.pyc: Language is german
Apr 01 13:45:25 linux weewx[28858]: cheetahgenerator: using search list ['weewx.cheetahgenerator.Almanac', 'weewx.cheetahgenerator.Station', 'weewx.cheetahgenerator.Current', 'weewx.cheetahgenerator.Stats', 'weewx.cheetahgenerator.UnitInfo', 'weewx.cheetahgenerator.Extras', 'user.historygenerator.MyXSearch']
Apr 01 13:45:25 linux weewx[28858]: manager: Daily summary version is 2.0
Apr 01 13:45:25 linux weewx[28858]: historygenerator.pyc: Generated 5 tables in 0.19 seconds
Apr 01 13:45:28 linux weewx[28858]: cheetahgenerator: Generated 9 files for report StandardReport in 2.97 seconds
Apr 01 13:45:28 linux weewx[28858]: manager: Daily summary version is 2.0
Apr 01 13:45:29 linux weewx[28858]: imagegenerator: Generated 7 images for StandardReport in 1.15 seconds
Apr 01 13:45:29 linux weewx[28858]: copygenerator: copied 0 files to /var/www/htdocs/weewx
Apr 01 13:45:29 linux weewx[28858]: reportengine: Running report 'FTP'
Apr 01 13:45:29 linux weewx[28858]: reportengine: Found configuration file /etc/weewx/skins/Ftp/skin.conf for report 'FTP'
Apr 01 13:45:29 linux weewx[28858]: ftpupload: Attempting connection to ul-vettweiss.de
Apr 01 13:45:29 linux weewx[28858]: ftpupload: Connected to ul-vettweiss.de
Apr 01 13:45:29 linux weewx[28858]: ftpupload: Uploaded file /month.html
Apr 01 13:45:30 linux weewx[28858]: ftpupload: Uploaded file /daywindvec.png
Apr 01 13:45:30 linux weewx[28858]: ftpupload: Uploaded file /daytempdew.png
Apr 01 13:45:30 linux weewx[28858]: ftpupload: Uploaded file /almanac.html
Apr 01 13:45:30 linux weewx[28858]: ftpupload: Uploaded file /daywind.png
Apr 01 13:45:30 linux weewx[28858]: ftpupload: Uploaded file /dayhumidity.png
Apr 01 13:45:31 linux weewx[28858]: ftpupload: Uploaded file /index.html
Apr 01 13:45:31 linux weewx[28858]: ftpupload: Uploaded file /daybarometer.png
Apr 01 13:45:31 linux weewx[28858]: ftpupload: Uploaded file /year.html
Apr 01 13:45:31 linux weewx[28858]: ftpupload: Uploaded file /week.html
Apr 01 13:45:31 linux weewx[28858]: ftpupload: Uploaded file /history.html
Apr 01 13:45:32 linux weewx[28858]: ftpupload: Uploaded file /daywinddir.png
Apr 01 13:45:32 linux weewx[28858]: ftpupload: Uploaded file /daytempchill.png
Apr 01 13:45:32 linux weewx[28858]: ftpupload: Uploaded file /NOAA/NOAA-2020.txt
Apr 01 13:45:32 linux weewx[28858]: ftpupload: Uploaded file /NOAA/NOAA-2020-04.txt
Apr 01 13:45:33 linux weewx[28858]: ftpupload: Uploaded file /RSS/weewx_rss.xml
Apr 01 13:45:33 linux weewx[28858]: ftpgenerator: ftp'd 16 files in 3.80 seconds
Apr 01 13:45:33 linux weewx[28858]: reportengine: Report 'RSYNC' not enabled. Skipping.

gjr80

unread,
Apr 1, 2020, 3:25:15 PM4/1/20
to weewx-user
Thank you. I suspect the extension has issue with the wind data being provided by the fileparse driver. Could you provide me with details of what info/fields are included in the data file (/var/tmp/datafile) used by the fileparse driver?

Gary

Astrid

unread,
Apr 2, 2020, 9:59:27 AM4/2/20
to weewx-user
Hello!

My failure was, that I the whole time
was loocking on my local www at
/var/www/htdocs/weewx/graphs.html
and there I found no graphics.
But on real www at external server
I now found them. :)
Is it possible, to preview the charts
on local /var/www/htdocs/weewx too?

Regards, Astrid

gjr80

unread,
Apr 2, 2020, 6:57:37 PM4/2/20
to weewx-user
In theory there is no reason why graphs.html in /var/www/htdocs/weewx cannot be viewed correctly. However, the page (or more correctly your browser) needs to able to find all of the components to correctly display the page. Firstly there is the actual page, graphs.html, that is the easy one. Then there is the highcharts javascript code (a number of .js files), the JSON data files, the jquery javascript code, the highcharts extension javascript code and the highcharts theme file. All but the theme file are essential. These all come together on your web server either via upload from your WeeWX machine or via manual install. Unfortunately these are unlikely to be on your WeeWX machine in the correct (relative) locations.

Gary

Astrid

unread,
Apr 3, 2020, 6:38:04 AM4/3/20
to weewx-user
Hello!

Thanx, I do not understand this too..
But no matter longer more, now I know, that
I have to look at http://www and not in /var/www.

Thank you very much.

Regards, Astrid

Reply all
Reply to author
Forward
0 new messages