Steve, I don't know if any of this will be helpful, but here is the setup 
on my Pi:

First, I did not modify wview.py. Instead I made a copy called 
customschema.py and placed it in: /home/weewx/bin/user

In the same directory, I have: as3935.py    and extensions.py 

My extensions.py is:   

#
#    Copyright (c) 2009-2015 Tom Keffer <[email protected]>
#
#    See the file LICENSE.txt for your full rights.
#

"""User extensions module

This module is imported from the main executable, so anything put here will 
be
executed before anything else happens. This makes it a good place to put 
user
extensions.
"""

import locale
# This will use the locale specified by the environment variable 'LANG'
# Other options are possible. See:
# http://docs.python.org/2/library/locale.html#locale.setlocale
locale.setlocale(locale.LC_ALL, '')


My weewx.conf has the following: 


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

#   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 = user.customschema.schema

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


and at the end of weewx.conf:


# Options for extension 'as3935'
[AS3935]
    bus = 1
    calibration = 6
    pin = 17
    address = 3

I will say this: I am using the detector on a "test bed" Pi running 
"Simulator" so I don't have to worry about saving my archives. I did a 
complete reinstall of Weewx, then followed the most recent Wiki directions 
to install the AS3935 extensions.
I still get random events that don't appear to coincide with anything, but 
have not yet been home during a real lightning storm to see what happens. I 
may have to change the "calibration" parameter.


Steve





-- 
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to