weewx and mysql

496 views
Skip to first unread message

radio...@gmail.com

unread,
Sep 30, 2015, 7:33:25 PM9/30/15
to weewx-user
hello.

i'm try to setup a smal home server for my weewx and my aprx. it has been on my raspberry but now i try another way.. it works fine and runs on debian.
buut.. when i try to get weewx into mysql db i get som problems.. and i have not the clue howto fix this... i have done allmost everything..  but now i'm stuck..  it maybe the rights for the mysql.. but i can't see the problem i'm missing



 /etc/init.d/weewx start
[ ok ] Starting weewx (via systemctl): weewx.service.
root@debian:/home/uno# /etc/init.d/weewx status
● weewx.service - LSB: weewx weather system
   Loaded: loaded (/etc/init.d/weewx)
   Active: active (exited) since to. 2015-10-01 01:28:12 CEST; 2s ago
  Process: 28058 ExecStop=/etc/init.d/weewx stop (code=exited, status=0/SUCCESS)
  Process: 10004 ExecReload=/etc/init.d/weewx reload (code=exited, status=0/SUCCESS)
  Process: 28213 ExecStart=/etc/init.d/weewx start (code=exited, status=0/SUCCESS)

okt. 01 01:28:13 debian weewx[28226]: ****    File "/usr/share/weewx/weewx/manager.py", line 975, in open_manager
okt. 01 01:28:13 debian weewx[28226]: ****      manager_dict['schema'])
okt. 01 01:28:13 debian weewx[28226]: ****    File "/usr/share/weewx/weewx/manager.py", line 124, in open_with_create
okt. 01 01:28:13 debian weewx[28226]: ****      connection = weedb.connect(database_dict)
okt. 01 01:28:13 debian weewx[28226]: ****    File "/usr/share/weewx/weedb/__init__.py", line 60, in connect
okt. 01 01:28:13 debian weewx[28226]: ****      __import__(db_dict['driver'])
okt. 01 01:28:13 debian weewx[28226]: ****    File "/usr/share/weewx/weedb/mysql.py", line 10, in <module>
okt. 01 01:28:13 debian weewx[28226]: ****      import MySQLdb
okt. 01 01:28:13 debian weewx[28226]: ****  ImportError: No module named MySQLdb
okt. 01 01:28:13 debian weewx[28226]: ****  Exiting.
root@debian:/home/uno#





 sudo tail -f /var/log/syslog
Oct  1 01:30:58 debian kernel: [ 3728.938993] ACPI Error: Method parse/execution failed [\_SB_.PCI0.VGA_.LCDD._BCM] (Node ffff88013f044158), AE_AML_BUFFER_LIMIT (20140424/psparse-536)
Oct  1 01:30:58 debian kernel: [ 3728.939002] ACPI Error: Evaluating _BCM failed (20140424/video-384)
Oct  1 01:30:58 debian kernel: [ 3728.941350] ACPI Exception: AE_AML_BUFFER_LIMIT, Index (0x000000015) is beyond end of object (length 0x10) (20140424/exoparg2-420)
Oct  1 01:30:58 debian kernel: [ 3728.941361] ACPI Error: Method parse/execution failed [\_SB_.PCI0.SBRG.EC0_.STBR] (Node ffff88013f04c1d0), AE_AML_BUFFER_LIMIT (20140424/psparse-536)
Oct  1 01:30:58 debian kernel: [ 3728.941371] ACPI Error: Method parse/execution failed [\_SB_.PCI0.VGA_.LCDD._BCM] (Node ffff88013f044158), AE_AML_BUFFER_LIMIT (20140424/psparse-536)
Oct  1 01:30:58 debian kernel: [ 3728.941381] ACPI Error: Evaluating _BCM failed (20140424/video-384)
Oct  1 01:30:58 debian kernel: [ 3728.942234] ACPI Exception: AE_AML_BUFFER_LIMIT, Index (0x000000015) is beyond end of object (length 0x10) (20140424/exoparg2-420)
Oct  1 01:30:58 debian kernel: [ 3728.942245] ACPI Error: Method parse/execution failed [\_SB_.PCI0.SBRG.EC0_.STBR] (Node ffff88013f04c1d0), AE_AML_BUFFER_LIMIT (20140424/psparse-536)
Oct  1 01:30:58 debian kernel: [ 3728.942254] ACPI Error: Method parse/execution failed [\_SB_.PCI0.VGA_.LCDD._BCM] (Node ffff88013f044158), AE_AML_BUFFER_LIMIT (20140424/psparse-536)
Oct  1 01:30:58 debian kernel: [ 3728.942263] ACPI Error: Evaluating _BCM failed (20140424/video-384)








Thomas Keffer

unread,
Sep 30, 2015, 8:15:51 PM9/30/15
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.
For more options, visit https://groups.google.com/d/optout.

radio...@gmail.com

unread,
Oct 1, 2015, 5:09:50 AM10/1/15
to weewx-user

yes i have.  anyways i only turn into here unnless i can't find anything. i did what tge disctr says that i should do. i tested to set root as user for the mysql whitout any luck. the wee user and the passwd is set in mysql db. for me its better to use phpmyadmin for this

gjr80

unread,
Oct 1, 2015, 5:49:11 AM10/1/15
to weewx-user
So you installed python-mysqldb (from the very first result from searching the forums) using the command:

sudo apt-get install python-mysqldb

Gary

radio...@gmail.com

unread,
Oct 1, 2015, 4:07:11 PM10/1/15
to weewx-user

should i add somthing here    



/usr/share/weewx/weedb/mysql.py  ?



my output says now



 sudo tail -f /var/log/syslog
Oct  1 21:54:47 debian weewx[1698]:     ****    File "/usr/share/weewx/weedb/mysql.py", line 35, in connect
Oct  1 21:54:47 debian weewx[1698]:     ****      return Connection(host=host, user=user, password=password, database_name=database_name, **kwargs)
Oct  1 21:54:47 debian weewx[1698]:     ****    File "/usr/share/weewx/weedb/mysql.py", line 95, in __init__
Oct  1 21:54:47 debian weewx[1698]:     ****      connection = MySQLdb.connect(host=host, user=user, passwd=password, db=database_name, **kwargs)
Oct  1 21:54:47 debian weewx[1698]:     ****    File "/usr/lib/python2.7/dist-packages/MySQLdb/__init__.py", line 81, in Connect
Oct  1 21:54:47 debian weewx[1698]:     ****      return Connection(*args, **kwargs)
Oct  1 21:54:47 debian weewx[1698]:     ****    File "/usr/lib/python2.7/dist-packages/MySQLdb/connections.py", line 187, in __init__
Oct  1 21:54:47 debian weewx[1698]:     ****      super(Connection, self).__init__(*args, **kwargs2)
Oct  1 21:54:47 debian weewx[1698]:     ****  TypeError: 'database' is an invalid keyword argument for this function
Oct  1 21:54:47 debian weewx[1698]:     ****  Exiting.

Thomas Keffer

unread,
Oct 1, 2015, 4:37:05 PM10/1/15
to weewx-user
You did not post very much of your log, but the problem is most likely in your weewx.conf configuration file. Remove any sensitive information then post it here.

-tk

Uno Mortensen

unread,
Oct 1, 2015, 4:44:32 PM10/1/15
to weewx...@googlegroups.com
# WEEWX CONFIGURATION FILE
#
# Copyright (c) 2009-2015 Tom Keffer <tke...@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 = 0

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

# 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.2.1

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

#   This section is for information about the station.

[Station]
   
    # Description of the station location
    location = KARPBUKT JARFJORD LOC KP59EP
   
    # # Latitude and longitude in decimal degrees
    latitude = 69.6611
    longitude = 030.3674    #Altitude of the station, with unit it is in. This is downloaded from
    # from the station if the hardware supports it.
    altitude = 20, meter
   
    # 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 = FineOffsetUSB
   
    # 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 = 6

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

[FineOffsetUSB]
    # This section is for the Fine Offset series of weather stations.
   
    # The station model, e.g., WH1080, WS1090, WS2080, WH3081
    model = Wh1080
   
    # How often to poll the station for data, in seconds
    polling_interval = 60
   
    # The driver to use:
    driver = weewx.drivers.fousb

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

#   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 = TRUE
   
    [[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.
        enable = false
        username = ****
        password = *****
   
    [[CWOP]]
        station = sa1cku-15
        post_interval = 300
        log_success = True
        log_failure = True
        server_list = rotate.aprs.net:14580, rotate.aprs2.net:14580, cwop.aprs.net:14580, cwop.aprs.net:23
        passcode = ******
    # This section is for configuring posts to CWOP
   
    # 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.
        enable = false
       # station = *****
       # password = ******
   
    [[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.
        enable = false
       # station = IFINNMAR24
      #  password =
   
    [[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.
        enable = TRUE
        station = IFINNMAR24
        password = ******
       
        # 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/weewx
   
    # The database binding indicates which data should be used in reports.
    data_binding = wx_binding
   
    # Each of the following subsections defines a report that will be run.
   
    [[StandardReport]]
        # 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.
       
        # The StandardReport uses the 'Standard' skin, which contains the
        # images, templates and plots for the report.
        skin = Standard
        [[[Units]]]
            [[[[Groups]]]]
                group_altitude = meter
                group_speed2 = meter_per_second2
                group_pressure = mbar
                group_rain = mm
                group_rainrate = mm_per_hour
                group_temperature = degree_C
                group_degree_day = degree_C_day
                group_speed = meter_per_second
   
    [[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, uncomment and fill out the next four lines.
        #user = replace with the ftp username
        #password = replace with the ftp password
        #server = replace with the ftp server name, e.g, www.threefools.org
        #path = replace with the ftp destination directory (e.g., /weather)
       
        # Set to True for a secure FTP (SFTP) 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/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 as to the user account on the remote machine where the files
        # will be copied.
        #
        # The following three lines determine where files will be sent.
        #server = replace with the rsync server name, e.g, www.threefools.org
        #path = replace with the rsync destination directory (e.g., /weather)
        #user = replace with the rsync username
       
        # 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

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

#   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 = 26, 32.5, inHg
        outTemp = -40, 120, degree_F
        inTemp = 10, 120, degree_F
        outHumidity = 0, 100
        inHumidity = 0, 100
        windSpeed = 0, 120, mile_per_hour

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

#   This section controls the origin of derived values.

[StdWXCalculate]
    # Derived quantities are calculated by this service. 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
   
    # How long to wait (in seconds) before processing new archive data. Must
    # be greater than zero.
    archive_delay = 15
   
    # 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 = hardware
   
    # 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_type = SQLite
        database_name = weewx.sdb
   
    # MySQL
    [[archive_mysql]]
        database_type = MySQL
        database_name = weewx

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

#   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 = weewx
        # The password for the user name
        password = weewx

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

#   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


--
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/k27MfzGMYg0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to weewx-user+...@googlegroups.com.

Thomas Keffer

unread,
Oct 1, 2015, 5:06:42 PM10/1/15
to weewx-user
Hello, Uno

Two questions:

1. Could you please double check that the weewx.conf you posted is the one that is causing the error? From the form of the error, I was expecting to see the keyword 'database' in the section [[MySQL]].

2. Did you install using a Debian package? If so, your weewx.conf has the wrong value for WEEWX_ROOT. It should be

WEEWX_ROOT = /

not

WEEWX_ROOT = /etc/weewx

-tk

gjr80

unread,
Oct 1, 2015, 5:15:06 PM10/1/15
to weewx-user
So might

database = archive_sqlite

in [[wx_binding]] be the culprit?

Gary

Uno Mortensen

unread,
Oct 1, 2015, 5:22:31 PM10/1/15
to weewx...@googlegroups.com
wooobs... i'm so sorry...  you was right... that was my configs from my rasberry...   here is the right one



# WEEWX CONFIGURATION FILE
#
# Copyright (c) 2009-2015 Tom Keffer <tke...@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 = /etc

# 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.2.1

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

#   This section is for information about the station.

[Station]
   
    # Description of the station location
    location = KARPBUKT JARFJORD LOC KP59EP
   
    # # Latitude and longitude in decimal degrees
    latitude = 69.6611
    longitude = 030.3674    #Altitude of the station, with unit it is in. This is downloaded from
    # from the station if the hardware supports it.
    altitude = 20, meter
   
    # 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 = Simulator

   
    # 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 = 6

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

[FineOffsetUSB]
    # This section is for the Fine Offset series of weather stations.
   
    # The station model, e.g., WH1080, WS1090, WS2080, WH3081
    model = Wh1080
   
    # How often to poll the station for data, in seconds
    polling_interval = 60
   
    # The driver to use:
    driver = weewx.drivers.fousb

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

[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. If not specified, the default is to use the present time.
    #start = 2011-01-01 00: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 = TRUE
   
    [[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.
        enable = false
        username = IFINNMAR24
        password = ****

   
    [[CWOP]]
        station = sa1cku-15
        post_interval = 300
        log_success = True
        log_failure = True
        server_list = rotate.aprs.net:14580, rotate.aprs2.net:14580, cwop.aprs.net:14580, cwop.aprs.net:23
        passcode =
    # This section is for configuring posts to CWOP
   
    # 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.
        enable = TRUE
        station = IFINNMAR24
        password = ***
   
    [[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.
        enable = TRUE
        station = IFINNMAR24
        password = ****
   
    [[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.
        enable = TRUE
        station = IFINNMAR24
        password = ***
       
        database = archive_mysql

        # 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]
    # MySQL databases require setting an appropriate 'user' and 'password'
    [[archive_mysql]]
        host = localhost
        user = weewx
        password = weewx
        database =  archive_mysql
        driver = weedb.mysql
   
    [[stats_mysql]]
        host = localhost
        user = weewx
        password = weewx
        database = stats
        driver = weedb.mysql

Thomas Keffer

unread,
Oct 1, 2015, 5:42:45 PM10/1/15
to weewx-user
This is more like what I expected. 

This is a garbled weewx.conf file. It includes part from a V2.X install (it has a stats file, not seen since V2.7.0)), as well as V3.2.1. Did you cut and paste between them?

Start with a fresh V3.2.1 configuration file and modify it as necessary. 

-tk

Uno Mortensen

unread,
Oct 1, 2015, 6:00:53 PM10/1/15
to weewx...@googlegroups.com
hmm wierd... how did i get an old config file?`hehe.. well i'm configure a new clean one as we speak.. i get back whit a new syslog shortly

Uno Mortensen

unread,
Oct 1, 2015, 6:08:29 PM10/1/15
to weewx...@googlegroups.com
new config file and i still have the same


 since fr. 2015-10-02 00:05:22 CEST; 56s ago
  Process: 466 ExecStart=/etc/init.d/weewx start (code=exited, status=0/SUCCESS)

okt. 02 00:05:22 debian weewx[943]: ****    File "/usr/share/weewx/weewx/engine.py", line 836, in main
okt. 02 00:05:22 debian weewx[943]: ****      engine = EngineClass(config_dict)
okt. 02 00:05:22 debian weewx[943]: ****    File "/usr/share/weewx/weewx/engine.py", line 69, in __init__
okt. 02 00:05:22 debian weewx[943]: ****      self.setupStation(config_dict)
okt. 02 00:05:22 debian weewx[943]: ****    File "/usr/share/weewx/weewx/engine.py", line 87, in setupStation
okt. 02 00:05:22 debian weewx[943]: ****      driver = config_dict[stationType]['driver']
okt. 02 00:05:22 debian weewx[943]: ****    File "/usr/lib/python2.7/dist-packages/configobj.py", line 554, in __getitem__
okt. 02 00:05:22 debian weewx[943]: ****      val = dict.__getitem__(self, key)
okt. 02 00:05:22 debian weewx[943]: ****  KeyError: 'FineOffsetUSB'
okt. 02 00:05:22 debian weewx[943]: ****  Exiting.




here is my weewx.conf



# WEEWX CONFIGURATION FILE
#
# Copyright (c) 2009-2015 Tom Keffer <tke...@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 = /

# 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.2.1

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

#   This section is for information about the station.

[Station]
   
    # Description of the station location
    location = karpbukt jarfjord

   
    # Latitude and longitude in decimal degrees
    latitude = 69.6611
    longitude = 030.3674
   
    # Altitude of the station, with unit it is in. This is downloaded from

    # from the station if the hardware supports it.
    altitude = 700, meter    # 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 = FineOffsetUSB
   
    # 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 = 6

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

#   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.
        enable = false
        username = replace_me
        password = replace_me

    [[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 = replace_me

 
        # 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.
        enable = false
        station  = replace_me
        password = replace_me


    [[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.
        enable = false
        station  = replace_me
        password = replace_me


    [[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.
        enable = false
        station  = replace_me
        password = replace_me

       
        # 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 = skins

   
    # Where the generated reports should go, relative to WEEWX_ROOT
    HTML_ROOT = public_html

   
    # The database binding indicates which data should be used in reports.
    data_binding = wx_binding
   
    # Each of the following subsections defines a report that will be run.
   
    [[StandardReport]]
        # 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.
       
        # The StandardReport uses the 'Standard' skin, which contains the
        # images, templates and plots for the report.
        skin = Standard
   
    [[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, uncomment and fill out the next four lines.
        #user = replace with the ftp username
        #password = replace with the ftp password
        #server = replace with the ftp server name, e.g, www.threefools.org
        #path = replace with the ftp destination directory (e.g., /weather)
       
        # Set to True for a secure FTP (SFTP) 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 = public_html
    # 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 = %(WEEWX_ROOT)s/archive

Thomas Keffer

unread,
Oct 1, 2015, 6:13:51 PM10/1/15
to weewx-user
​This is the raw weewx.conf file, without a section for the hardware you are using. 

Use the tool wee_config to add the section. In particular, see the section "Changing device drivers."​

-tk

Uno Mortensen

unread,
Oct 1, 2015, 6:21:07 PM10/1/15
to weewx...@googlegroups.com
thats better.. but still a few errors?





 /etc/init.d/weewx status
● weewx.service - LSB: weewx weather system
   Loaded: loaded (/etc/init.d/weewx)
   Active: active (running) since fr. 2015-10-02 00:19:20 CEST; 5s ago
  Process: 1887 ExecStop=/etc/init.d/weewx stop (code=exited, status=0/SUCCESS)
  Process: 1897 ExecStart=/etc/init.d/weewx start (code=exited, status=0/SUCCESS)
   CGroup: /system.slice/weewx.service
           └─1911 python /usr/bin/weewxd --daemon --pidfile=/var/run/weewx.pid /etc/weewx/weewx.conf

okt. 02 00:19:20 debian weewx[1911]: engine: Finished loading service weewx.engine.StdQC
okt. 02 00:19:20 debian weewx[1911]: engine: Loading service weewx.wxservices.StdWXCalculate
okt. 02 00:19:20 debian weewx[1911]: engine: Finished loading service weewx.wxservices.StdWXCalculate
okt. 02 00:19:20 debian weewx[1911]: engine: Loading service weewx.engine.StdArchive
okt. 02 00:19:20 debian weewx[1911]: engine: Archive will use data binding wx_binding
okt. 02 00:19:20 debian weewx[1911]: engine: Record generation will be attempted in 'hardware'
okt. 02 00:19:21 debian weewx[1911]: engine: The archive interval in the configuration file (300) does not match the station hardware interval (540).
okt. 02 00:19:21 debian weewx[1911]: engine: Using archive interval of 540 seconds
okt. 02 00:19:21 debian weewx[1911]: engine: Use LOOP data in hi/low calculations: 1
okt. 02 00:19:22 debian weewx[1911]: manager: Created and initialized table 'archive' in database 'weewx'


--
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/k27MfzGMYg0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to weewx-user+...@googlegroups.com.

Uno Mortensen

unread,
Oct 1, 2015, 6:22:56 PM10/1/15
to weewx...@googlegroups.com
thats better i guess


 manager: added record 2015-10-01 23:55:11 CEST (1443736511) to database 'weewx'
okt. 02 00:21:49 debian weewx[1911]: manager: added record 2015-10-01 23:55:11 CEST (1443736511) to daily summary in 'weewx'
okt. 02 00:21:49 debian weewx[1911]: fousb: returning archive record 1443737051
okt. 02 00:21:49 debian weewx[1911]: manager: added record 2015-10-02 00:04:11 CEST (1443737051) to database 'weewx'
okt. 02 00:21:49 debian weewx[1911]: manager: added record 2015-10-02 00:04:11 CEST (1443737051) to daily summary in 'weewx'
okt. 02 00:21:49 debian weewx[1911]: fousb: returning archive record 1443737591
okt. 02 00:21:49 debian weewx[1911]: manager: added record 2015-10-02 00:13:11 CEST (1443737591) to database 'weewx'
okt. 02 00:21:49 debian weewx[1911]: manager: added record 2015-10-02 00:13:11 CEST (1443737591) to daily summary in 'weewx'
okt. 02 00:21:50 debian weewx[1911]: engine: Starting main packet loop.
okt. 02 00:21:50 debian weewx[1911]: fousb: station status {'unknown': 0, 'lost_connection': 0, 'rain_overflow': 0} (0)

Uno Mortensen

unread,
Oct 1, 2015, 6:44:10 PM10/1/15
to weewx...@googlegroups.com
now finaly.. it seems to be okey.. mysql is ok and running as it should.. my apache isnt setup but i use my weewx only for aprs. so it dont matter for now.. unless there is a easy way to do this... anyways. tnx alot... i guess it's all done now

//Uno

la/sa1cku

Uno Mortensen

unread,
Oct 1, 2015, 7:32:40 PM10/1/15
to weewx...@googlegroups.com
guess i was litle to fast to say solved...  not much but...  it plots to many times at the same time...


okt. 02 01:26:28 debian weewx[2533]: restx: Wunderground-PWS: Published record 2015-10-01 23:55:23 CEST (1443736523)
okt. 02 01:26:28 debian weewx[2533]: restx: Wunderground-PWS: Published record 2015-10-02 00:04:23 CEST (1443737063)
okt. 02 01:26:29 debian weewx[2533]: restx: Wunderground-PWS: Published record 2015-10-02 00:13:23 CEST (1443737603)
okt. 02 01:26:29 debian weewx[2533]: restx: Wunderground-PWS: Published record 2015-10-02 00:22:23 CEST (1443738143)
okt. 02 01:26:30 debian weewx[2533]: restx: Wunderground-PWS: Published record 2015-10-02 00:31:23 CEST (1443738683)
okt. 02 01:26:31 debian weewx[2533]: restx: Wunderground-PWS: Published record 2015-10-02 00:40:23 CEST (1443739223)
okt. 02 01:26:31 debian weewx[2533]: restx: Wunderground-PWS: Published record 2015-10-02 00:49:23 CEST (1443739763)
okt. 02 01:26:32 debian weewx[2533]: restx: Wunderground-PWS: Published record 2015-10-02 00:58:23 CEST (1443740303)
okt. 02 01:26:32 debian weewx[2533]: restx: Wunderground-PWS: Published record 2015-10-02 01:07:23 CEST (1443740843)
okt. 02 01:26:33 debian weewx[2533]: restx: Wunderground-PWS: Published record 2015-10-02 01:16:23 CEST (1443741383)

Thomas Keffer

unread,
Oct 1, 2015, 7:50:13 PM10/1/15
to weewx-user
Perhaps it is doing a catch up?

-tk

Uno Mortensen

unread,
Oct 2, 2015, 6:31:27 AM10/2/15
to weewx...@googlegroups.com
after a 10 hour running  this is what i have.. seems to be only a skinn problem? shouldnt be to much.


Oct  2 12:22:20 debian weewx[2533]:         ****  Report ignored...
Oct  2 12:22:20 debian weewx[2533]: reportengine: Running report RSYNC
Oct  2 12:22:20 debian weewx[2533]: reportengine: Cannot read skin configuration file /skins/Rsync/skin.conf for report RSYNC: Config file not found: "/skins/Rsync/skin.conf".
Oct  2 12:22:20 debian weewx[2533]:         ****  Report ignored...
Oct  2 12:22:20 debian weewx[2533]: restx: CWOP: Connected to server rotate.aprs.net:14580
Oct  2 12:22:20 debian weewx[2533]: restx: CWOP: Published record 2015-10-02 12:13:16 CEST (1443780796)
Oct  2 12:22:20 debian weewx[2533]: restx: Wunderground-PWS: Published record 2015-10-02 12:13:16 CEST (1443780796)
Oct  2 12:22:21 debian weewx[2533]: restx: CWOP: Connected to server rotate.aprs.net:14580
Oct  2 12:22:21 debian weewx[2533]: restx: Wunderground-PWS: Published record 2015-10-02 12:22:16 CEST (1443781336)
Oct  2 12:22:41 debian weewx[2533]: restx: CWOP: Published record 2015-10-02 12:22:16 CEST (1443781336)
Oct  2 12:25:21 debian weewx[2533]: fousb: avoid 5.81806111336

Reply all
Reply to author
Forward
0 new messages