Hi Gary,
thanks for your patience.
This is not normal operation. Because something it triggering an archive
> record to be saved every few seconds the NEW_ARCHIVE_RECORD event is also
> triggered which causes your service to fire as well. The issue here is not
> your service but whatever is causing this archive record to be written
> every few seconds. I suggest we step back a bit and get a clear picture of
> how your system is configured and what it is running.
>
I was wondering where these errors where coming from and I already tried to
get more information about it. I found somewhere a statement that is not
too bad and might happen if a very narrow saving interval is used. But now
I increasingly understand...
Now I have attached the output of wee_debug --info an excerpt of the syslog
with debug option disabled and the lastest version of my
WeatherDuino_Logger_plugin.
Regards,
engolling
Am Montag, 18. März 2019 01:48:39 UTC+1 schrieb gjr80:
>
> On Monday, 18 March 2019 08:36:24 UTC+10, engolling wrote:
>>
>> Hi Gary,
>>
>> maybe I have found my problem after looking at my code and your advices
>> again.
>> Because it seems that I have bound my additional signals to the archive
>> record and not to the LOOP packet
>>
>
> There is nothing wrong with augmenting archive records. As I pointed out
> in my first post there are two ways to add additional sensor data to WeeWX.
> One approach is to augment the archive record and to do this your would
> bind to NEW_ARCHIVE_RECORD. If you augment archive records you will not see
> any of your data in loop packets, this is normal expected behaviour. The
> other approach is to augment loop packets, to do this you must bind to
> NEW_LOOP_PACKET. If you augment loop packets your should see your data in
> loop packets and archive records. Note that if augmenting loop packets you
> may not necessarily see your data in every loop packet, it depends on how
> you implement your service. Neither approach is right or wrong, the
> approach you use is what best suits you or your setup.
>
>
>> class WeeWxService(StdService):
>> def __init__(self, engine, config_dict):
>> super(WeeWxService, self).__init__(engine, config_dict)
>> d = config_dict.get('WeatherDuino_logger_service', {})
>> self.filename = d.get('filename',
>> '/home/pi/WeatherDuino/WeeWx_Exp.txt')
>> syslog.syslog(syslog.LOG_INFO, "WeatherDuino: using %s" % self.
>> filename)
>> self.bind(weewx.NEW_ARCHIVE_RECORD, self.read_file)
>> self.last_rain = []
>>
>>
>>
>> But the logfile tells me my plugin is executed in a frequency like the
>> loop packets:
>> Mar 17 23:22:19 WeatherDuinoPi weewx[7972]: WeatherDuino: Valid values
>> found
>> Mar 17 23:22:23 WeatherDuinoPi weewx[7972]: manager: Added record
>> 2019-03-17 23:21:00 CET (1552861260) to database 'weewx.sdb'
>> Mar 17 23:22:23 WeatherDuinoPi weewx[7972]: manager: Added record
>> 2019-03-17 23:21:00 CET (1552861260) to daily summary in 'weewx.sdb'
>> Mar 17 23:22:24 WeatherDuinoPi weewx[7972]: WeatherDuino: Valid values
>> found
>> Mar 17 23:22:27 WeatherDuinoPi weewx[7972]: manager: Unable to add record
>> 2019-03-17 23:17:00 CET (1552861020) to database 'weewx.sdb': UNIQUE
>> constraint failed: archive.dateTime
>> Mar 17 23:22:27 WeatherDuinoPi weewx[7972]: WeatherDuino: Valid values
>> found
>> Mar 17 23:22:30 WeatherDuinoPi weewx[7972]: manager: Unable to add record
>> 2019-03-17 23:18:00 CET (1552861080) to database 'weewx.sdb': UNIQUE
>> constraint failed: archive.dateTime
>> Mar 17 23:22:30 WeatherDuinoPi weewx[7972]: WeatherDuino: Valid values
>> found
>> Mar 17 23:22:33 WeatherDuinoPi weewx[7972]: manager: Unable to add record
>> 2019-03-17 23:19:00 CET (1552861140) to database 'weewx.sdb': UNIQUE
>> constraint failed: archive.dateTime
>> Mar 17 23:22:33 WeatherDuinoPi weewx[7972]: WeatherDuino: Valid values
>> found
>>
>> According to your answers this should be the problem because in this case
>> I have to take care that the rain is only augmented once each minute, right?
>>
>
> I am not sure what is going on with your system but the log extract above
> shows that WeeWX is attempting to save an archive record every few seconds
> - refer to the following entries:
>
> Mar 17 23:22:27 WeatherDuinoPi weewx[7972]: manager: Unable to add record
> 2019-03-17 23:17:00 CET (1552861020) to database 'weewx.sdb': UNIQUE
> constraint failed: archive.dateTime
> Mar 17 23:22:30 WeatherDuinoPi weewx[7972]: manager: Unable to add record
> 2019-03-17 23:18:00 CET (1552861080) to database 'weewx.sdb': UNIQUE
> constraint failed: archive.dateTime
> Mar 17 23:22:33 WeatherDuinoPi weewx[7972]: manager: Unable to add record
> 2019-03-17 23:19:00 CET (1552861140) to database 'weewx.sdb': UNIQUE
> constraint failed: archive.dateTime
>
> This is not normal operation. Because something it triggering an archive
> record to be saved every few seconds the NEW_ARCHIVE_RECORD event is also
> triggered which causes your service to fire as well. The issue here is not
> your service but whatever is causing this archive record to be written
> every few seconds. I suggest we step back a bit and get a clear picture of
> how your system is configured and what it is running. I suggest you:
>
> 1. stop WeeWX
> 2. run the wee_debug utility
> <http://weewx.com/docs/utilities.htm#wee_debug_utility> and post a copy
> of the wee_debug output. Make sure any sensitive info is obscured before
> posting the wee_debug output, wee_debug will obscure most sensitive info
> but it is not perfect.
> 3. post a copy of your service file
> (bin/user/WeeWx_WeatherDuino_Logger_plugin.py ?) from your RPi, it is
> important we know exactly what software you are running rather than looking
> at a github repo that may or may not be the same as on your machine.
>
>
>>
>> Should I change the binding to
>> self.bind(weewx.NEW_LOOP_PACKET, self.read_file)
>>
>>
>> ?
>>
>> Moreover I try to simplify my code as you have proposed, so I added the
>> last line in the init function (is it a function ?) of the class.
>> My idea was to make a empty list, which I can expand as I want because
>> there can be up to 4 rain values - is this a reasonable solution or do I
>> have to make a list with 4 entries at the beginning?
>>
>
> I would suggest not doing too much else as until the issue with the
> frequent archive records is solved your service will not operate correctly
> irrespective.
>
> Gary
>
>
--
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.
Using configuration file /etc/weewx/weewx.conf
Using database binding 'wx_binding', which is bound to database 'archive_sqlite'
System info
Platform: Linux-4.14.71+-armv6l-with-debian-9.8
Python Version: 2.7.13
Load Information
1 minute load average: 0.25
5 minute load average: 0.16
15 minute load average: 0.33
General Weewx info
Weewx version 3.8.2 detected.
Station info
Station type: Vantage
Driver: weewx.drivers.vantage
Driver info
[Vantage]
# This section is for the Davis Vantage series of weather stations.
# Connection type: serial or ethernet
# serial (the classic VantagePro)
# ethernet (the WeatherLinkIP or Serial-Ethernet bridge)
type = serial
# If the connection type is serial, a port must be specified:
# Debian, Ubuntu, Redhat, Fedora, and SuSE:
# /dev/ttyUSB0 is a common USB port name
# /dev/ttyS0 is a common serial port name
# BSD:
# /dev/cuaU0 is a common serial port name
port = /dev/ttyACM0
# If the connection type is ethernet, an IP Address/hostname is required:
host = 1.2.3.4
######################################################
# The rest of this section rarely needs any attention.
# You can safely leave it "as is."
######################################################
# Serial baud rate (usually 19200)
baudrate = 19200
# TCP port (when using the WeatherLinkIP)
tcp_port = 22222
# TCP send delay (when using the WeatherLinkIP):
tcp_send_delay = 0.5
# The id of your ISS station (usually 1). If you use a wind meter connected
# to a anemometer transmitter kit, use its id
iss_id = 1
# How long to wait for a response from the station before giving up (in
# seconds; must be greater than 2)
timeout = 4
# How long to wait before trying again (in seconds)
wait_before_retry = 10
# How many times to try before giving up:
max_tries = 100
# Vantage model Type: 1 = Vantage Pro; 2 = Vantage Pro2
model_type = 2
# The driver to use:
driver = weewx.drivers.vantage
Currently installed extensions
Extension Name Version Description
neowx 1.0 The most advanced weewx skin.
Archive info
Database name: weewx.sdb
Table name: archive
Unit system: 16 (METRIC)
First good timestamp: 2019-01-12 21:20:00 CET (1547324400)
Last good timestamp: 2019-03-18 18:57:00 CET (1552931820)
Number of records: 91692
weewx (weewx.conf) is set to use an archive interval of 60 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:
Database driver: weedb.mysql
Database host:
Parsed and obfuscated weewx.conf
# WEEWX CONFIGURATION FILE
#
# Copyright (c) 2009-2015 Tom Keffer <[email protected]>
# 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
loop_on_init = True
# 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.8.2
##############################################################################
# This section is for information about the station.
[Station]
# Description of the station location
location = Wetterstation Engolling
# Latitude and longitude in decimal degrees
latitude = 48.796
longitude = 13.104
# Altitude of the station, with unit it is in. This is downloaded from
# from the station if the hardware supports it.
altitude = 411, 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 = Vantage
# 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
##############################################################################
[Vantage]
# This section is for the Davis Vantage series of weather stations.
# Connection type: serial or ethernet
# serial (the classic VantagePro)
# ethernet (the WeatherLinkIP or Serial-Ethernet bridge)
type = serial
# If the connection type is serial, a port must be specified:
# Debian, Ubuntu, Redhat, Fedora, and SuSE:
# /dev/ttyUSB0 is a common USB port name
# /dev/ttyS0 is a common serial port name
# BSD:
# /dev/cuaU0 is a common serial port name
port = /dev/ttyACM0
# If the connection type is ethernet, an IP Address/hostname is required:
host = 1.2.3.4
######################################################
# The rest of this section rarely needs any attention.
# You can safely leave it "as is."
######################################################
# Serial baud rate (usually 19200)
baudrate = 19200
# TCP port (when using the WeatherLinkIP)
tcp_port = 22222
# TCP send delay (when using the WeatherLinkIP):
tcp_send_delay = 0.5
# The id of your ISS station (usually 1). If you use a wind meter connected
# to a anemometer transmitter kit, use its id
iss_id = 1
# How long to wait for a response from the station before giving up (in
# seconds; must be greater than 2)
timeout = 4
# How long to wait before trying again (in seconds)
wait_before_retry = 10
# How many times to try before giving up:
max_tries = 100
# Vantage model Type: 1 = Vantage Pro; 2 = Vantage Pro2
model_type = 2
# The driver to use:
driver = weewx.drivers.vantage
##############################################################################
# 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/html/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 = neowx
[[[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.
# Use quotes around passwords to guard against parsing errors.
user = XXX obfuscated by wee_debug XXX
password = XXX obfuscated by wee_debug XXX
server = XXX by engolling XXX
path = /
# Set to True for an FTP over TLS (FTPS) connection. Not all servers
# support this.
secure_ftp = true
# To upload files from something other than what HTML_ROOT is set
# to above, specify a different HTML_ROOT here.
#HTML_ROOT = /var/www/html/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 server, user, and path determine where files will be sent.
# The server is the server name, such as www.threefools.org
# The user is the username, such as weewx
# The path is the destination directory, such as /var/www/html/weather
# Be sure that the user has write permissions on the destination!
#server = replace_me
#user = replace_me
#path = replace_me
# 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 = METRIC # 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
pressure = 24, 34.5, inHg
##############################################################################
# This section controls the origin of derived values.
[StdWXCalculate]
[[Calculations]]
# 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 = 60
# 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
#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
schema = user.WeeWx_WeatherDuino_Logger_plugin.schema_WeatherDuino
##############################################################################
# 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 = ""
##############################################################################
# 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 = ""
# 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 = user.WeeWx_WeatherDuino_Logger_plugin.WeeWxService,
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
import syslog
import weewx
from datetime import datetime
from time import strptime
from time import mktime
from weewx.wxengine import StdService
import weewx.units
#First read units from unit line of the export file
filename = '/home/pi/WeatherDuino/WeeWx_Exp.txt'
with open(filename) as f:
for line,row in enumerate(f.readlines()):
if line == 0:
names = row.strip().split(";")
if line == 1:
unit_groups = row.strip().split(";")
#Add variable names to unit groups
for n in range(len(names)-1):
if str(unit_groups[n+1]) != 'none':
weewx.units.obs_group_dict[str(names[n+1])] = str(unit_groups[n+1])
weewx.units.USUnits['group_gas_concentration'] = 'ppm'
weewx.units.MetricUnits['group_gas_concentration'] = 'ppm'
weewx.units.MetricWXUnits['group_gas_concentration'] = 'ppm'
weewx.units.default_unit_format_dict['ppm'] = '%.0f'
weewx.units.default_unit_label_dict['ppm'] = ' ppm'
weewx.units.USUnits['group_dust'] = 'microgramm_per_meter_cubic'
weewx.units.MetricUnits['group_dust'] = 'microgramm_per_meter_cubic'
weewx.units.MetricWXUnits['group_dust'] = 'microgramm_per_meter_cubic'
weewx.units.default_unit_format_dict['microgramm_per_meter_cubic'] = '%.1f'
weewx.units.default_unit_label_dict['microgramm_per_meter_cubic'] = ' \xce\xbcg/m\xc2\xb3'
####################################################################################
class WeeWxService(StdService):
def __init__(self, engine, config_dict):
super(WeeWxService, self).__init__(engine, config_dict)
d = config_dict.get('WeatherDuino_logger_service', {})
self.filename = d.get('filename', '/home/pi/WeatherDuino/WeeWx_Exp.txt')
syslog.syslog(syslog.LOG_INFO, "WeatherDuino: using %s" % self.filename)
self.bind(weewx.NEW_ARCHIVE_RECORD, self.read_file)
self.last_rain = [None, None, None, None]
def read_file(self, event):
try:
#Read data from WeatherDuino Logger output txt file
with open(self.filename) as f:
for line,row in enumerate(f.readlines()):
if line == 0:
names = row.strip().split(";")
if line == 1:
units = row.strip().split(";")
if line == 2:
values = row.strip().split(";")
#Define path of safefile
#safefile = '/home/pi/WeatherDuino/Rain_tmp.txt'
#try:
# with open(safefile,'r') as tmp:
# for line,row in enumerate(tmp.readlines()):
# if line == 0:
# tmprain = row.strip().split(";")
# else:
# tmprain=[]
# #print "Safefile file opened and read " + str(len(tmprain)) + " entries."
#except:
# tmprain=[]
#Read timestamp of data and convert it
timestamp = strptime(values[0], '%Y-%m-%d %H:%M:%S')
dt = datetime.fromtimestamp(mktime(timestamp))
#Check if read data is not older than 3 minutes
if (datetime.now()-dt).total_seconds() < 180:
syslog.syslog(syslog.LOG_DEBUG, "WeatherDuino: Valid values found")
#Create index pointer for last_rain buffer list and error handling
rainind=0
error_ind = 0
for n in range(len(values)-1):
error_ind = n
#Convert transmitted total rain value to rain delta since last WeeWx import
if units[n+1] == 'group_rain':
#Check if the safe file contains enough entries
if rainind < len(self.last_rain):
#if yes calculate the rain difference and store the new rain value into the buffer
try:
deltarain = float(values[n+1]) - float(self.last_rain[rainind])
self.last_rain[rainind] = float(values[n+1])
except:
deltarain = None
#If there are not enough entries - for which reason ever - write None to WeeWx and add a entry to the buffer
else:
deltarain = None
#Check the integrity of the data maybe the rain counter of the WeatherDuino has run over or other strange things happened causing ghost rain
if deltarain < 0 or deltarain > 30:
deltarain = None
#Add the value to the WeeWx database
#syslog.syslog(syslog.LOG_DEBUG, "WeatherDuino: " + str(names[n+1]) + ": " + str(deltarain))
event.record[str(names[n+1])] = deltarain
#event.record[str(names[n+1])] = 0.1
#Shift rain index to handle more rain signals
rainind = rainind + 1
#Handle all other signals
else:
event.record[str(names[n+1])] = float(values[n+1])
#syslog.syslog(syslog.LOG_DEBUG, "WeatherDuino: " + str(names[n+1]) + ": " + str(values[n+1]))
#Write actual rain values to buffer file
#with open(safefile, 'w') as tmp:
# for i in range (len(tmprain)):
# if i == len(tmprain)-1:
# tmp.write(str(tmprain[i]) + '\n')
# else:
# tmp.write(str(tmprain[i]) + ';')
#Else throw an exception
else:
syslog.syslog(syslog.LOG_ERR, "WeatherDuino: Data is too old. Check logging addon!")
except Exception, e:
syslog.syslog(syslog.LOG_ERR, "WeatherDuino: Processing error at positon " + str(names[error_ind+1]))
#################################################################################
import schemas.wview
filename = '/home/pi/WeatherDuino/WeeWx_Exp.txt'
with open(filename) as f:
for line,row in enumerate(f.readlines()):
if line == 0:
names = row.strip().split(";")
schema_WeatherDuino = schemas.wview.schema
for n in range(len(names)-1):
schema_WeatherDuino = schema_WeatherDuino + [(str(names[n+1]), 'REAL')]
Mar 18 22:35:11 WeatherDuinoPi weewx[12216]: engine: Initializing weewx version
3.8.2
Mar 18 22:35:11 WeatherDuinoPi weewx[12216]: engine: Using Python 2.7.13
(default, Sep 26 2018, 18:42:22) #012[GCC 6.3.0 20170516]
Mar 18 22:35:11 WeatherDuinoPi weewx[12216]: engine: Platform
Linux-4.14.71+-armv6l-with-debian-9.8
Mar 18 22:35:11 WeatherDuinoPi weewx[12216]: engine: Locale is 'en_GB.UTF-8'
Mar 18 22:35:11 WeatherDuinoPi weewx[12216]: engine: pid file is
/var/run/weewx.pid
Mar 18 22:35:11 WeatherDuinoPi weewx[12205]: Starting weewx weather system:
weewx.
Mar 18 22:35:12 WeatherDuinoPi weewx[12220]: engine: Using configuration file
/etc/weewx/weewx.conf
Mar 18 22:35:12 WeatherDuinoPi weewx[12220]: engine: Loading station type
Vantage (weewx.drivers.vantage)
Mar 18 22:35:12 WeatherDuinoPi weewx[12220]: WeatherDuino: using
/home/pi/WeatherDuino/WeeWx_Exp.txt
Mar 18 22:35:12 WeatherDuinoPi weewx[12220]: engine: StdConvert target unit is
0x10
Mar 18 22:35:12 WeatherDuinoPi weewx[12220]: 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
Mar 18 22:35:12 WeatherDuinoPi weewx[12220]: wxcalculate: The following
algorithms will be used for calculations: altimeter=aaNOAA, maxSolarRad=RS
Mar 18 22:35:12 WeatherDuinoPi weewx[12220]: engine: Archive will use data
binding wx_binding
Mar 18 22:35:12 WeatherDuinoPi weewx[12220]: engine: Record generation will be
attempted in 'hardware'
Mar 18 22:35:12 WeatherDuinoPi weewx[12220]: engine: Using archive interval of
60 seconds (specified by hardware)
Mar 18 22:35:12 WeatherDuinoPi weewx[12220]: engine: Using binding 'wx_binding'
to database 'weewx.sdb'
Mar 18 22:35:12 WeatherDuinoPi weewx[12220]: manager: Starting backfill of
daily summaries
Mar 18 22:35:12 WeatherDuinoPi weewx[12220]: restx: StationRegistry:
Registration not requested.
Mar 18 22:35:12 WeatherDuinoPi weewx[12220]: restx: Wunderground: Posting not
enabled.
Mar 18 22:35:12 WeatherDuinoPi weewx[12220]: restx: PWSweather: Posting not
enabled.
Mar 18 22:35:12 WeatherDuinoPi weewx[12220]: restx: CWOP: Posting not enabled.
Mar 18 22:35:12 WeatherDuinoPi weewx[12220]: restx: WOW: Posting not enabled.
Mar 18 22:35:12 WeatherDuinoPi weewx[12220]: restx: AWEKAS: Posting not enabled.
Mar 18 22:35:12 WeatherDuinoPi weewx[12220]: engine: Starting up weewx version
3.8.2
Mar 18 22:35:12 WeatherDuinoPi weewx[12220]: engine: Clock error is -0.79
seconds (positive is fast)
Mar 18 22:35:15 WeatherDuinoPi weewx[12220]: manager: Unable to add record
2019-03-18 22:32:00 CET (1552944720) to database 'weewx.sdb': UNIQUE constraint
failed: archive.dateTime
Mar 18 22:35:16 WeatherDuinoPi weewx[12220]: manager: Added record 2019-03-18
22:33:00 CET (1552944780) to database 'weewx.sdb'
Mar 18 22:35:17 WeatherDuinoPi weewx[12220]: manager: Added record 2019-03-18
22:33:00 CET (1552944780) to daily summary in 'weewx.sdb'
Mar 18 22:35:19 WeatherDuinoPi weewx[12220]: manager: Added record 2019-03-18
22:34:00 CET (1552944840) to database 'weewx.sdb'
Mar 18 22:35:19 WeatherDuinoPi weewx[12220]: manager: Added record 2019-03-18
22:34:00 CET (1552944840) to daily summary in 'weewx.sdb'
Mar 18 22:35:21 WeatherDuinoPi weewx[12220]: manager: Unable to add record
2019-03-18 22:30:00 CET (1552944600) to database 'weewx.sdb': UNIQUE constraint
failed: archive.dateTime
Mar 18 22:35:23 WeatherDuinoPi weewx[12220]: manager: Unable to add record
2019-03-18 22:31:00 CET (1552944660) to database 'weewx.sdb': UNIQUE constraint
failed: archive.dateTime
Mar 18 22:35:24 WeatherDuinoPi weewx[12220]: manager: Unable to add record
2019-03-18 22:32:00 CET (1552944720) to database 'weewx.sdb': UNIQUE constraint
failed: archive.dateTime
Mar 18 22:35:24 WeatherDuinoPi weewx[12220]: engine: Starting main packet loop.
Mar 18 22:36:18 WeatherDuinoPi weewx[12220]: manager: Unable to add record
2019-03-18 22:34:00 CET (1552944840) to database 'weewx.sdb': UNIQUE constraint
failed: archive.dateTime
Mar 18 22:36:20 WeatherDuinoPi weewx[12220]: manager: Added record 2019-03-18
22:35:00 CET (1552944900) to database 'weewx.sdb'
Mar 18 22:36:20 WeatherDuinoPi weewx[12220]: manager: Added record 2019-03-18
22:35:00 CET (1552944900) to daily summary in 'weewx.sdb'
Mar 18 22:36:22 WeatherDuinoPi weewx[12220]: manager: Unable to add record
2019-03-18 22:31:00 CET (1552944660) to database 'weewx.sdb': UNIQUE constraint
failed: archive.dateTime
Mar 18 22:36:24 WeatherDuinoPi weewx[12220]: manager: Unable to add record
2019-03-18 22:32:00 CET (1552944720) to database 'weewx.sdb': UNIQUE constraint
failed: archive.dateTime
Mar 18 22:37:04 WeatherDuinoPi weewx[12220]: cheetahgenerator: Generated 9
files for report StandardReport in 39.12 seconds
Mar 18 22:37:20 WeatherDuinoPi weewx[12220]: manager: Unable to add record
2019-03-18 22:35:00 CET (1552944900) to database 'weewx.sdb': UNIQUE constraint
failed: archive.dateTime
Mar 18 22:37:23 WeatherDuinoPi weewx[12220]: manager: Added record 2019-03-18
22:36:00 CET (1552944960) to database 'weewx.sdb'
Mar 18 22:37:23 WeatherDuinoPi weewx[12220]: manager: Added record 2019-03-18
22:36:00 CET (1552944960) to daily summary in 'weewx.sdb'
Mar 18 22:37:27 WeatherDuinoPi weewx[12220]: manager: Unable to add record
2019-03-18 22:32:00 CET (1552944720) to database 'weewx.sdb': UNIQUE constraint
failed: archive.dateTime
Mar 18 22:37:27 WeatherDuinoPi weewx[12220]: engine: Launch of report thread
aborted: existing report thread still running
Mar 18 22:38:20 WeatherDuinoPi weewx[12220]: manager: Unable to add record
2019-03-18 22:36:00 CET (1552944960) to database 'weewx.sdb': UNIQUE constraint
failed: archive.dateTime
Mar 18 22:38:24 WeatherDuinoPi weewx[12220]: manager: Added record 2019-03-18
22:37:00 CET (1552945020) to database 'weewx.sdb'
Mar 18 22:38:24 WeatherDuinoPi weewx[12220]: manager: Added record 2019-03-18
22:37:00 CET (1552945020) to daily summary in 'weewx.sdb'
Mar 18 22:38:25 WeatherDuinoPi weewx[12220]: engine: Launch of report thread
aborted: existing report thread still running
Mar 18 22:38:38 WeatherDuinoPi weewx[12220]: imagegenerator: Generated 15
images for StandardReport in 93.86 seconds
Mar 18 22:38:38 WeatherDuinoPi weewx[12220]: copygenerator: copied 34 files to
/var/www/html/weewx
Mar 18 22:38:49 WeatherDuinoPi weewx[12220]: ftpgenerator: ftp'd 41 files in
10.73 seconds
Mar 18 22:39:19 WeatherDuinoPi weewx[12220]: manager: Unable to add record
2019-03-18 22:37:00 CET (1552945020) to database 'weewx.sdb': UNIQUE constraint
failed: archive.dateTime
Mar 18 22:39:20 WeatherDuinoPi weewx[12220]: manager: Added record 2019-03-18
22:38:00 CET (1552945080) to database 'weewx.sdb'
Mar 18 22:39:21 WeatherDuinoPi weewx[12220]: manager: Added record 2019-03-18
22:38:00 CET (1552945080) to daily summary in 'weewx.sdb'
Mar 18 22:39:23 WeatherDuinoPi weewx[12220]: manager: Unable to add record
2019-03-18 22:34:00 CET (1552944840) to database 'weewx.sdb': UNIQUE constraint
failed: archive.dateTime
Mar 18 22:39:24 WeatherDuinoPi weewx[12220]: manager: Unable to add record
2019-03-18 22:35:00 CET (1552944900) to database 'weewx.sdb': UNIQUE constraint
failed: archive.dateTime
Mar 18 22:39:26 WeatherDuinoPi weewx[12220]: manager: Unable to add record
2019-03-18 22:36:00 CET (1552944960) to database 'weewx.sdb': UNIQUE constraint
failed: archive.dateTime
Mar 18 22:39:27 WeatherDuinoPi weewx[12220]: manager: Unable to add record
2019-03-18 22:37:00 CET (1552945020) to database 'weewx.sdb': UNIQUE constraint
failed: archive.dateTime
Mar 18 22:39:38 WeatherDuinoPi weewx[12220]: cheetahgenerator: Generated 9
files for report StandardReport in 10.08 seconds
Mar 18 22:40:21 WeatherDuinoPi weewx[12220]: manager: Unable to add record
2019-03-18 22:38:00 CET (1552945080) to database 'weewx.sdb': UNIQUE constraint
failed: archive.dateTime
Mar 18 22:40:24 WeatherDuinoPi weewx[12220]: manager: Added record 2019-03-18
22:39:00 CET (1552945140) to database 'weewx.sdb'
Mar 18 22:40:25 WeatherDuinoPi weewx[12220]: manager: Added record 2019-03-18
22:39:00 CET (1552945140) to daily summary in 'weewx.sdb'
Mar 18 22:40:28 WeatherDuinoPi weewx[12220]: manager: Unable to add record
2019-03-18 22:35:00 CET (1552944900) to database 'weewx.sdb': UNIQUE constraint
failed: archive.dateTime
Mar 18 22:40:32 WeatherDuinoPi weewx[12220]: manager: Unable to add record
2019-03-18 22:36:00 CET (1552944960) to database 'weewx.sdb': UNIQUE constraint
failed: archive.dateTime
Mar 18 22:40:36 WeatherDuinoPi weewx[12220]: manager: Unable to add record
2019-03-18 22:37:00 CET (1552945020) to database 'weewx.sdb': UNIQUE constraint
failed: archive.dateTime
Mar 18 22:40:36 WeatherDuinoPi weewx[12220]: engine: Launch of report thread
aborted: existing report thread still running
Mar 18 22:41:12 WeatherDuinoPi weewx[12220]: imagegenerator: Generated 15
images for StandardReport in 94.28 seconds
Mar 18 22:41:12 WeatherDuinoPi weewx[12220]: copygenerator: copied 17 files to
/var/www/html/weewx
Mar 18 22:41:18 WeatherDuinoPi weewx[12220]: manager: Unable to add record
2019-03-18 22:39:00 CET (1552945140) to database 'weewx.sdb': UNIQUE constraint
failed: archive.dateTime
Mar 18 22:41:21 WeatherDuinoPi weewx[12220]: manager: Added record 2019-03-18
22:40:00 CET (1552945200) to database 'weewx.sdb'
Mar 18 22:41:21 WeatherDuinoPi weewx[12220]: manager: Added record 2019-03-18
22:40:00 CET (1552945200) to daily summary in 'weewx.sdb'
Mar 18 22:41:23 WeatherDuinoPi weewx[12220]: ftpgenerator: ftp'd 41 files in
10.43 seconds
Mar 18 22:41:23 WeatherDuinoPi weewx[12220]: manager: Unable to add record
2019-03-18 22:36:00 CET (1552944960) to database 'weewx.sdb': UNIQUE constraint
failed: archive.dateTime
Mar 18 22:41:25 WeatherDuinoPi weewx[12220]: manager: Unable to add record
2019-03-18 22:37:00 CET (1552945020) to database 'weewx.sdb': UNIQUE constraint
failed: archive.dateTime
Mar 18 22:41:35 WeatherDuinoPi weewx[12220]: cheetahgenerator: Generated 9
files for report StandardReport in 9.88 seconds
Mar 18 22:42:20 WeatherDuinoPi weewx[12220]: manager: Unable to add record
2019-03-18 22:40:00 CET (1552945200) to database 'weewx.sdb': UNIQUE constraint
failed: archive.dateTime
Mar 18 22:42:24 WeatherDuinoPi weewx[12220]: manager: Added record 2019-03-18
22:41:00 CET (1552945260) to database 'weewx.sdb'
Mar 18 22:42:24 WeatherDuinoPi weewx[12220]: manager: Added record 2019-03-18
22:41:00 CET (1552945260) to daily summary in 'weewx.sdb'
Mar 18 22:42:28 WeatherDuinoPi weewx[12220]: manager: Unable to add record
2019-03-18 22:37:00 CET (1552945020) to database 'weewx.sdb': UNIQUE constraint
failed: archive.dateTime
Mar 18 22:42:28 WeatherDuinoPi weewx[12220]: engine: Launch of report thread
aborted: existing report thread still running
Mar 18 22:43:05 WeatherDuinoPi weewx[12220]: imagegenerator: Generated 15
images for StandardReport in 89.82 seconds
Mar 18 22:43:05 WeatherDuinoPi weewx[12220]: copygenerator: copied 17 files to
/var/www/html/weewx
Mar 18 22:43:15 WeatherDuinoPi weewx[12220]: ftpgenerator: ftp'd 41 files in
10.09 seconds
Mar 18 22:43:17 WeatherDuinoPi weewx[12220]: manager: Unable to add record
2019-03-18 22:41:00 CET (1552945260) to database 'weewx.sdb': UNIQUE constraint
failed: archive.dateTime
Mar 18 22:43:19 WeatherDuinoPi weewx[12220]: manager: Added record 2019-03-18
22:42:00 CET (1552945320) to database 'weewx.sdb'
Mar 18 22:43:19 WeatherDuinoPi weewx[12220]: manager: Added record 2019-03-18
22:42:00 CET (1552945320) to daily summary in 'weewx.sdb'
Mar 18 22:43:28 WeatherDuinoPi weewx[12220]: cheetahgenerator: Generated 9
files for report StandardReport in 8.47 seconds
Mar 18 22:44:20 WeatherDuinoPi weewx[12220]: manager: Unable to add record
2019-03-18 22:42:00 CET (1552945320) to database 'weewx.sdb': UNIQUE constraint
failed: archive.dateTime
Mar 18 22:44:24 WeatherDuinoPi weewx[12220]: manager: Added record 2019-03-18
22:43:00 CET (1552945380) to database 'weewx.sdb'
Mar 18 22:44:24 WeatherDuinoPi weewx[12220]: manager: Added record 2019-03-18
22:43:00 CET (1552945380) to daily summary in 'weewx.sdb'
Mar 18 22:44:28 WeatherDuinoPi weewx[12220]: manager: Unable to add record
2019-03-18 22:39:00 CET (1552945140) to database 'weewx.sdb': UNIQUE constraint
failed: archive.dateTime
Mar 18 22:44:32 WeatherDuinoPi weewx[12220]: manager: Unable to add record
2019-03-18 22:40:00 CET (1552945200) to database 'weewx.sdb': UNIQUE constraint
failed: archive.dateTime
Mar 18 22:44:36 WeatherDuinoPi weewx[12220]: manager: Unable to add record
2019-03-18 22:41:00 CET (1552945260) to database 'weewx.sdb': UNIQUE constraint
failed: archive.dateTime
Mar 18 22:44:39 WeatherDuinoPi weewx[12220]: manager: Unable to add record
2019-03-18 22:42:00 CET (1552945320) to database 'weewx.sdb': UNIQUE constraint
failed: archive.dateTime
Mar 18 22:44:39 WeatherDuinoPi weewx[12220]: engine: Launch of report thread
aborted: existing report thread still running
Mar 18 22:45:04 WeatherDuinoPi weewx[12220]: imagegenerator: Generated 15
images for StandardReport in 96.01 seconds
Mar 18 22:45:04 WeatherDuinoPi weewx[12220]: copygenerator: copied 17 files to
/var/www/html/weewx
Mar 18 22:45:15 WeatherDuinoPi weewx[12220]: ftpgenerator: ftp'd 41 files in
10.39 seconds
Mar 18 22:45:18 WeatherDuinoPi weewx[12220]: manager: Unable to add record
2019-03-18 22:43:00 CET (1552945380) to database 'weewx.sdb': UNIQUE constraint
failed: archive.dateTime
Mar 18 22:45:20 WeatherDuinoPi weewx[12220]: manager: Added record 2019-03-18
22:44:00 CET (1552945440) to database 'weewx.sdb'
Mar 18 22:45:20 WeatherDuinoPi weewx[12220]: manager: Added record 2019-03-18
22:44:00 CET (1552945440) to daily summary in 'weewx.sdb'
Mar 18 22:45:22 WeatherDuinoPi weewx[12220]: manager: Unable to add record
2019-03-18 22:40:00 CET (1552945200) to database 'weewx.sdb': UNIQUE constraint
failed: archive.dateTime
Mar 18 22:45:24 WeatherDuinoPi weewx[12220]: manager: Unable to add record
2019-03-18 22:41:00 CET (1552945260) to database 'weewx.sdb': UNIQUE constraint
failed: archive.dateTime
Mar 18 22:45:25 WeatherDuinoPi weewx[12220]: manager: Unable to add record
2019-03-18 22:42:00 CET (1552945320) to database 'weewx.sdb': UNIQUE constraint
failed: archive.dateTime
Mar 18 22:45:35 WeatherDuinoPi weewx[12220]: cheetahgenerator: Generated 9
files for report StandardReport in 9.65 seconds
Mar 18 22:46:19 WeatherDuinoPi weewx[12220]: manager: Unable to add record
2019-03-18 22:44:00 CET (1552945440) to database 'weewx.sdb': UNIQUE constraint
failed: archive.dateTime
Mar 18 22:46:22 WeatherDuinoPi weewx[12220]: manager: Added record 2019-03-18
22:45:00 CET (1552945500) to database 'weewx.sdb'
Mar 18 22:46:22 WeatherDuinoPi weewx[12220]: manager: Added record 2019-03-18
22:45:00 CET (1552945500) to daily summary in 'weewx.sdb'
Mar 18 22:46:26 WeatherDuinoPi weewx[12220]: manager: Unable to add record
2019-03-18 22:41:00 CET (1552945260) to database 'weewx.sdb': UNIQUE constraint
failed: archive.dateTime
Mar 18 22:46:30 WeatherDuinoPi weewx[12220]: manager: Unable to add record
2019-03-18 22:42:00 CET (1552945320) to database 'weewx.sdb': UNIQUE constraint
failed: archive.dateTime
Mar 18 22:46:30 WeatherDuinoPi weewx[12220]: engine: Launch of report thread
aborted: existing report thread still running
Mar 18 22:47:06 WeatherDuinoPi weewx[12220]: imagegenerator: Generated 15
images for StandardReport in 90.63 seconds
Mar 18 22:47:06 WeatherDuinoPi weewx[12220]: copygenerator: copied 17 files to
/var/www/html/weewx
Mar 18 22:47:17 WeatherDuinoPi weewx[12220]: ftpgenerator: ftp'd 41 files in
10.57 seconds
Mar 18 22:47:19 WeatherDuinoPi weewx[12220]: manager: Unable to add record
2019-03-18 22:45:00 CET (1552945500) to database 'weewx.sdb': UNIQUE constraint
failed: archive.dateTime
Mar 18 22:47:20 WeatherDuinoPi weewx[12220]: manager: Added record 2019-03-18
22:46:00 CET (1552945560) to database 'weewx.sdb'
Mar 18 22:47:20 WeatherDuinoPi weewx[12220]: manager: Added record 2019-03-18
22:46:00 CET (1552945560) to daily summary in 'weewx.sdb'
Mar 18 22:47:22 WeatherDuinoPi weewx[12220]: manager: Unable to add record
2019-03-18 22:42:00 CET (1552945320) to database 'weewx.sdb': UNIQUE constraint
failed: archive.dateTime
Mar 18 22:47:31 WeatherDuinoPi weewx[12220]: cheetahgenerator: Generated 9
files for report StandardReport in 8.64 seconds
Mar 18 22:48:18 WeatherDuinoPi weewx[12220]: manager: Unable to add record
2019-03-18 22:46:00 CET (1552945560) to database 'weewx.sdb': UNIQUE constraint
failed: archive.dateTime
Mar 18 22:48:22 WeatherDuinoPi weewx[12220]: manager: Added record 2019-03-18
22:47:00 CET (1552945620) to database 'weewx.sdb'
Mar 18 22:48:22 WeatherDuinoPi weewx[12220]: manager: Added record 2019-03-18
22:47:00 CET (1552945620) to daily summary in 'weewx.sdb'
Mar 18 22:48:23 WeatherDuinoPi weewx[12220]: engine: Launch of report thread
aborted: existing report thread still running
Mar 18 22:49:01 WeatherDuinoPi weewx[12220]: imagegenerator: Generated 15
images for StandardReport in 89.76 seconds
Mar 18 22:49:01 WeatherDuinoPi weewx[12220]: copygenerator: copied 17 files to
/var/www/html/weewx
Mar 18 22:49:12 WeatherDuinoPi weewx[12220]: ftpgenerator: ftp'd 41 files in
10.95 seconds
Mar 18 22:49:17 WeatherDuinoPi weewx[12220]: manager: Unable to add record
2019-03-18 22:47:00 CET (1552945620) to database 'weewx.sdb': UNIQUE constraint
failed: archive.dateTime
Mar 18 22:49:19 WeatherDuinoPi weewx[12220]: manager: Added record 2019-03-18
22:48:00 CET (1552945680) to database 'weewx.sdb'
Mar 18 22:49:19 WeatherDuinoPi weewx[12220]: manager: Added record 2019-03-18
22:48:00 CET (1552945680) to daily summary in 'weewx.sdb'
Mar 18 22:49:21 WeatherDuinoPi weewx[12220]: manager: Unable to add record
2019-03-18 22:44:00 CET (1552945440) to database 'weewx.sdb': UNIQUE constraint
failed: archive.dateTime
Mar 18 22:49:22 WeatherDuinoPi weewx[12220]: manager: Unable to add record
2019-03-18 22:45:00 CET (1552945500) to database 'weewx.sdb': UNIQUE constraint
failed: archive.dateTime
Mar 18 22:49:24 WeatherDuinoPi weewx[12220]: manager: Unable to add record
2019-03-18 22:46:00 CET (1552945560) to database 'weewx.sdb': UNIQUE constraint
failed: archive.dateTime
Mar 18 22:49:26 WeatherDuinoPi weewx[12220]: manager: Unable to add record
2019-03-18 22:47:00 CET (1552945620) to database 'weewx.sdb': UNIQUE constraint
failed: archive.dateTime
Mar 18 22:49:36 WeatherDuinoPi weewx[12220]: cheetahgenerator: Generated 9
files for report StandardReport in 9.81 seconds
Mar 18 22:50:19 WeatherDuinoPi weewx[12220]: manager: Unable to add record
2019-03-18 22:48:00 CET (1552945680) to database 'weewx.sdb': UNIQUE constraint
failed: archive.dateTime
Mar 18 22:50:22 WeatherDuinoPi weewx[12220]: manager: Added record 2019-03-18
22:49:00 CET (1552945740) to database 'weewx.sdb'
Mar 18 22:50:23 WeatherDuinoPi weewx[12220]: manager: Added record 2019-03-18
22:49:00 CET (1552945740) to daily summary in 'weewx.sdb'
Mar 18 22:50:26 WeatherDuinoPi weewx[12220]: manager: Unable to add record
2019-03-18 22:45:00 CET (1552945500) to database 'weewx.sdb': UNIQUE constraint
failed: archive.dateTime
Mar 18 22:50:30 WeatherDuinoPi weewx[12220]: manager: Unable to add record
2019-03-18 22:46:00 CET (1552945560) to database 'weewx.sdb': UNIQUE constraint
failed: archive.dateTime
Mar 18 22:50:34 WeatherDuinoPi weewx[12220]: manager: Unable to add record
2019-03-18 22:47:00 CET (1552945620) to database 'weewx.sdb': UNIQUE constraint
failed: archive.dateTime
Mar 18 22:50:34 WeatherDuinoPi weewx[12220]: engine: Launch of report thread
aborted: existing report thread still running
Mar 18 22:51:10 WeatherDuinoPi weewx[12220]: imagegenerator: Generated 15
images for StandardReport in 94.02 seconds
Mar 18 22:51:10 WeatherDuinoPi weewx[12220]: copygenerator: copied 17 files to
/var/www/html/weewx
Mar 18 22:51:18 WeatherDuinoPi weewx[12220]: manager: Unable to add record
2019-03-18 22:49:00 CET (1552945740) to database 'weewx.sdb': UNIQUE constraint
failed: archive.dateTime
Mar 18 22:51:20 WeatherDuinoPi weewx[12220]: ftpgenerator: ftp'd 41 files in
10.55 seconds
Mar 18 22:51:21 WeatherDuinoPi weewx[12220]: manager: Added record 2019-03-18
22:50:00 CET (1552945800) to database 'weewx.sdb'
Mar 18 22:51:21 WeatherDuinoPi weewx[12220]: manager: Added record 2019-03-18
22:50:00 CET (1552945800) to daily summary in 'weewx.sdb'
Mar 18 22:51:23 WeatherDuinoPi weewx[12220]: manager: Unable to add record
2019-03-18 22:46:00 CET (1552945560) to database 'weewx.sdb': UNIQUE constraint
failed: archive.dateTime
Mar 18 22:51:25 WeatherDuinoPi weewx[12220]: manager: Unable to add record
2019-03-18 22:47:00 CET (1552945620) to database 'weewx.sdb': UNIQUE constraint
failed: archive.dateTime
Mar 18 22:51:35 WeatherDuinoPi weewx[12220]: cheetahgenerator: Generated 9
files for report StandardReport in 9.75 seconds
Mar 18 22:52:20 WeatherDuinoPi weewx[12220]: manager: Unable to add record
2019-03-18 22:50:00 CET (1552945800) to database 'weewx.sdb': UNIQUE constraint
failed: archive.dateTime
Mar 18 22:52:24 WeatherDuinoPi weewx[12220]: manager: Added record 2019-03-18
22:51:00 CET (1552945860) to database 'weewx.sdb'
Mar 18 22:52:24 WeatherDuinoPi weewx[12220]: manager: Added record 2019-03-18
22:51:00 CET (1552945860) to daily summary in 'weewx.sdb'
Mar 18 22:52:28 WeatherDuinoPi weewx[12220]: manager: Unable to add record
2019-03-18 22:47:00 CET (1552945620) to database 'weewx.sdb': UNIQUE constraint
failed: archive.dateTime
Mar 18 22:52:28 WeatherDuinoPi weewx[12220]: engine: Launch of report thread
aborted: existing report thread still running
Mar 18 22:53:05 WeatherDuinoPi weewx[12220]: imagegenerator: Generated 15
images for StandardReport in 89.83 seconds
Mar 18 22:53:05 WeatherDuinoPi weewx[12220]: copygenerator: copied 17 files to
/var/www/html/weewx
Mar 18 22:53:16 WeatherDuinoPi weewx[12220]: ftpgenerator: ftp'd 41 files in
10.63 seconds
Mar 18 22:53:17 WeatherDuinoPi weewx[12220]: manager: Unable to add record
2019-03-18 22:51:00 CET (1552945860) to database 'weewx.sdb': UNIQUE constraint
failed: archive.dateTime
Mar 18 22:53:19 WeatherDuinoPi weewx[12220]: manager: Added record 2019-03-18
22:52:00 CET (1552945920) to database 'weewx.sdb'
Mar 18 22:53:19 WeatherDuinoPi weewx[12220]: manager: Added record 2019-03-18
22:52:00 CET (1552945920) to daily summary in 'weewx.sdb'
Mar 18 22:53:28 WeatherDuinoPi weewx[12220]: cheetahgenerator: Generated 9
files for report StandardReport in 8.48 seconds