Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

data not send to influx #13

Open
CFidder opened this issue Jan 6, 2018 · 6 comments
Open

data not send to influx #13

CFidder opened this issue Jan 6, 2018 · 6 comments

Comments

@CFidder
Copy link

CFidder commented Jan 6, 2018

Hello Matthew,

It seems that the module is not sending data to the influx database. During the start of the weewx service I can see in the log that it creates a database so the connection is working but actual metered data is not being send to the database. Here is the log, maybe you can make something out of it that I'm missing:

Jan 6 20:11:38 daedalus systemd[1]: Starting LSB: weewx weather system...
Jan 6 20:11:38 daedalus weewx[4886]: engine: Initializing weewx version 3.8.0
Jan 6 20:11:38 daedalus weewx[4886]: engine: Using Python 2.7.13 (default, Nov 24 2017, 17:33:09) #12[GCC 6.3.0 20170516]
Jan 6 20:11:38 daedalus weewx[4886]: engine: Platform Linux-4.9.59-v7+-armv7l-with-debian-9.3
Jan 6 20:11:38 daedalus weewx[4886]: engine: Locale is 'en_GB.UTF-8'
Jan 6 20:11:38 daedalus weewx[4886]: engine: pid file is /var/run/weewx.pid
Jan 6 20:11:38 daedalus weewx[4890]: engine: Using configuration file /etc/weewx/weewx.conf
Jan 6 20:11:38 daedalus weewx[4890]: engine: debug is 1
Jan 6 20:11:38 daedalus weewx[4890]: engine: Initializing engine
Jan 6 20:11:38 daedalus weewx[4890]: engine: Loading station type KlimaLogg (user.kl)
Jan 6 20:11:38 daedalus weewx[4875]: Starting weewx weather system: weewx.
Jan 6 20:11:38 daedalus systemd[1]: Started LSB: weewx weather system.
Jan 6 20:11:38 daedalus weewx[4890]: KlimaLogg: MainThread: driver version is 1.3.6
Jan 6 20:11:38 daedalus weewx[4890]: KlimaLogg: MainThread: channel is 1
Jan 6 20:11:38 daedalus weewx[4890]: KlimaLogg: MainThread: frequency is EU
Jan 6 20:11:38 daedalus weewx[4890]: KlimaLogg: MainThread: using sensor map for kl schema
Jan 6 20:11:38 daedalus weewx[4890]: KlimaLogg: MainThread: sensor map is: {'temp3': 'Temp3', 'temp2': 'Temp2', 'temp1': 'Temp1', 'temp0': 'Temp0', 'temp7': 'Temp7', 'temp6': 'Temp6', 'temp5': 'Temp5', 'temp4': 'Temp4', 'temp8': 'Temp8', 'batteryStatus8': 'BatteryStatus8', 'batteryStatus1': 'BatteryStatus1', 'batteryStatus0': 'BatteryStatus0', 'batteryStatus3': 'BatteryStatus3', 'batteryStatus2': 'BatteryStatus2', 'batteryStatus5': 'BatteryStatus5', 'batteryStatus4': 'BatteryStatus4', 'batteryStatus7': 'BatteryStatus7', 'batteryStatus6': 'BatteryStatus6', 'humidity8': 'Humidity8', 'humidity4': 'Humidity4', 'humidity5': 'Humidity5', 'humidity6': 'Humidity6', 'humidity7': 'Humidity7', 'humidity0': 'Humidity0', 'humidity1': 'Humidity1', 'humidity2': 'Humidity2', 'humidity3': 'Humidity3', 'rxCheckPercent': 'SignalQuality'}
Jan 6 20:11:38 daedalus weewx[4890]: KlimaLogg: MainThread: catchup limited to 51200 records
Jan 6 20:11:38 daedalus weewx[4890]: KlimaLogg: MainThread: timing is 300 ms (0.300 s)
Jan 6 20:11:38 daedalus weewx[4890]: KlimaLogg: MainThread: CommunicationService.init
Jan 6 20:11:38 daedalus weewx[4890]: KlimaLogg: MainThread: comm_interval is 8
Jan 6 20:11:38 daedalus weewx[4890]: KlimaLogg: MainThread: logger_channel is 1
Jan 6 20:11:38 daedalus weewx[4890]: KlimaLogg: MainThread: found transceiver at bus= device=
Jan 6 20:11:38 daedalus weewx[4890]: KlimaLogg: MainThread: manufacturer: LA CROSSE TECHNOLOGY
Jan 6 20:11:38 daedalus weewx[4890]: KlimaLogg: MainThread: product: Weather Direct Light Wireless Device
Jan 6 20:11:38 daedalus weewx[4890]: KlimaLogg: MainThread: interface: 0
Jan 6 20:11:38 daedalus weewx[4890]: KlimaLogg: MainThread: claiming USB interface 0
Jan 6 20:11:39 daedalus weewx[4890]: KlimaLogg: MainThread: frequency standard: EU
Jan 6 20:11:39 daedalus weewx[4890]: KlimaLogg: MainThread: base frequency: 868300000
Jan 6 20:11:39 daedalus weewx[4890]: KlimaLogg: MainThread: frequency correction: 94320 (0x17070)
Jan 6 20:11:39 daedalus weewx[4890]: KlimaLogg: MainThread: adjusted frequency: 910572861 (0x36463d3d)
Jan 6 20:11:39 daedalus weewx[4890]: KlimaLogg: MainThread: frequency registers: 36 46 3d 3d
Jan 6 20:11:39 daedalus weewx[4890]: KlimaLogg: MainThread: transceiver identifier: 243 (0x00f3)
Jan 6 20:11:39 daedalus weewx[4890]: KlimaLogg: MainThread: transceiver serial: 010115020600243
Jan 6 20:11:39 daedalus weewx[4890]: KlimaLogg: MainThread: startRFThread: spawning RF thread
Jan 6 20:11:39 daedalus weewx[4890]: KlimaLogg: RFComm: setting up rf communication
Jan 6 20:11:39 daedalus weewx[4890]: engine: Loading service weewx.engine.StdTimeSynch
Jan 6 20:11:39 daedalus weewx[4890]: engine: Finished loading service weewx.engine.StdTimeSynch
Jan 6 20:11:39 daedalus weewx[4890]: engine: Loading service weewx.engine.StdConvert
Jan 6 20:11:39 daedalus weewx[4890]: engine: StdConvert target unit is 0x1
Jan 6 20:11:39 daedalus weewx[4890]: engine: Finished loading service weewx.engine.StdConvert
Jan 6 20:11:39 daedalus weewx[4890]: engine: Loading service weewx.engine.StdCalibrate
Jan 6 20:11:39 daedalus weewx[4890]: engine: Finished loading service weewx.engine.StdCalibrate
Jan 6 20:11:39 daedalus weewx[4890]: engine: Loading service weewx.engine.StdQC
Jan 6 20:11:39 daedalus weewx[4890]: engine: Finished loading service weewx.engine.StdQC
Jan 6 20:11:39 daedalus weewx[4890]: engine: Loading service weewx.wxservices.StdWXCalculate
Jan 6 20:11:39 daedalus weewx[4890]: 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
Jan 6 20:11:39 daedalus weewx[4890]: wxcalculate: The following algorithms will be used for calculations: altimeter=aaNOAA, maxSolarRad=RS
Jan 6 20:11:39 daedalus weewx[4890]: engine: Finished loading service weewx.wxservices.StdWXCalculate
Jan 6 20:11:39 daedalus weewx[4890]: engine: Loading service weewx.engine.StdArchive
Jan 6 20:11:39 daedalus weewx[4890]: engine: Archive will use data binding kl_binding
Jan 6 20:11:39 daedalus weewx[4890]: engine: Record generation will be attempted in 'hardware'
Jan 6 20:11:39 daedalus weewx[4890]: engine: Using archive interval of 300 seconds (specified in weewx configuration)
Jan 6 20:11:39 daedalus weewx[4890]: engine: Use LOOP data in hi/low calculations: 1
Jan 6 20:11:39 daedalus weewx[4890]: manager: Daily summary version is 2.0
Jan 6 20:11:39 daedalus weewx[4890]: engine: Using binding 'kl_binding' to database 'weewx-kl.sdb'
Jan 6 20:11:39 daedalus weewx[4890]: manager: Starting backfill of daily summaries
Jan 6 20:11:39 daedalus weewx[4890]: engine: Finished loading service weewx.engine.StdArchive
Jan 6 20:11:39 daedalus weewx[4890]: engine: Loading service weewx.restx.StdStationRegistry
Jan 6 20:11:39 daedalus weewx[4890]: restx: StationRegistry: Registration not requested.
Jan 6 20:11:39 daedalus weewx[4890]: engine: Finished loading service weewx.restx.StdStationRegistry
Jan 6 20:11:39 daedalus weewx[4890]: engine: Loading service weewx.restx.StdWunderground
Jan 6 20:11:39 daedalus weewx[4890]: restx: Wunderground: Posting not enabled.
Jan 6 20:11:39 daedalus weewx[4890]: engine: Finished loading service weewx.restx.StdWunderground
Jan 6 20:11:39 daedalus weewx[4890]: engine: Loading service weewx.restx.StdPWSweather
Jan 6 20:11:39 daedalus weewx[4890]: restx: PWSweather: Posting not enabled.
Jan 6 20:11:39 daedalus weewx[4890]: engine: Finished loading service weewx.restx.StdPWSweather
Jan 6 20:11:39 daedalus weewx[4890]: engine: Loading service weewx.restx.StdCWOP
Jan 6 20:11:39 daedalus weewx[4890]: restx: CWOP: Posting not enabled.
Jan 6 20:11:39 daedalus weewx[4890]: engine: Finished loading service weewx.restx.StdCWOP
Jan 6 20:11:39 daedalus weewx[4890]: engine: Loading service weewx.restx.StdWOW
Jan 6 20:11:39 daedalus weewx[4890]: restx: WOW: Posting not enabled.
Jan 6 20:11:39 daedalus weewx[4890]: engine: Finished loading service weewx.restx.StdWOW
Jan 6 20:11:39 daedalus weewx[4890]: engine: Loading service weewx.restx.StdAWEKAS
Jan 6 20:11:39 daedalus weewx[4890]: restx: AWEKAS: Posting not enabled.
Jan 6 20:11:39 daedalus weewx[4890]: engine: Finished loading service weewx.restx.StdAWEKAS
Jan 6 20:11:39 daedalus weewx[4890]: engine: Loading service user.influx.Influx
Jan 6 20:11:39 daedalus weewx[4890]: restx: Influx: service version is 0.9
Jan 6 20:11:39 daedalus weewx[4890]: restx: Influx: desired unit system is METRIC
Jan 6 20:11:39 daedalus weewx[4890]: restx: Influx: tags None
Jan 6 20:11:39 daedalus weewx[4890]: restx: Influx: database is weather
Jan 6 20:11:39 daedalus weewx[4890]: restx: Influx: binding is archive
Jan 6 20:11:39 daedalus influxd[464]: [query] 2018/01/06 20:11:39 CREATE DATABASE weather
Jan 6 20:11:39 daedalus influxd[464]: [httpd] ::1 - weather [06/Jan/2018:20:11:39 +0100] "GET /query?q=CREATE+DATABASE+weather HTTP/1.1" 200 160 "-" "weewx/3.8.0" 6c48a1e4-f315-11e7-803f-000000000000 5099
Jan 6 20:11:39 daedalus weewx[4890]: restx: Influx: Data will be uploaded to http://localhost:8086
Jan 6 20:11:39 daedalus weewx[4890]: engine: Finished loading service user.influx.Influx
Jan 6 20:11:39 daedalus weewx[4890]: engine: Loading service weewx.engine.StdPrint
Jan 6 20:11:39 daedalus weewx[4890]: engine: Finished loading service weewx.engine.StdPrint
Jan 6 20:11:39 daedalus weewx[4890]: engine: Loading service weewx.engine.StdReport
Jan 6 20:11:39 daedalus weewx[4890]: engine: Finished loading service weewx.engine.StdReport
Jan 6 20:11:39 daedalus weewx[4890]: engine: Starting up weewx version 3.8.0
Jan 6 20:11:39 daedalus weewx[4890]: engine: Station does not support reading the time
Jan 6 20:11:39 daedalus weewx[4890]: KlimaLogg: MainThread: Scanning historical records
Jan 6 20:11:41 daedalus weewx[4890]: KlimaLogg: RFComm: starting rf communication
Jan 6 20:11:49 daedalus weewx[4890]: KlimaLogg: RFComm: console is paired to device with ID 00f3 and logger channel 1
Jan 6 20:11:49 daedalus weewx[4890]: KlimaLogg: RFComm: handleCurrentData: inBufCS of station does not match
Jan 6 20:11:49 daedalus weewx[4890]: KlimaLogg: RFComm: buildACKFrame: no known haddr; preset with 0xffffff
Jan 6 20:11:49 daedalus weewx[4890]: KlimaLogg: RFComm: handleConfig: sleep=0.3 first=0.3 next=0.01 count=1
Jan 6 20:11:49 daedalus weewx[4890]: KlimaLogg: RFComm: buildACKFrame: no known haddr; preset with 0xffffff
Jan 6 20:11:49 daedalus weewx[4890]: KlimaLogg: RFComm: ToDateTime: bogus date for HistoryData1: error status in buffer
Jan 6 20:11:49 daedalus weewx[4890]: KlimaLogg: RFComm: handleHistoryData: time=1900-01-01 00:00:00 this=1 (0x700c0) latest=50875 (0x1fd760) nrec=50874
Jan 6 20:11:49 daedalus weewx[4890]: KlimaLogg: RFComm: handleHistoryData: request records since 2018-01-06 20:10:00 CET (1515265800)
Jan 6 20:11:49 daedalus weewx[4890]: KlimaLogg: RFComm: handleHistoryData: nreq=5
Jan 6 20:11:49 daedalus weewx[4890]: KlimaLogg: RFComm: handleHistoryData: start_index=50870 num_outstanding_records=5
Jan 6 20:11:49 daedalus weewx[4890]: KlimaLogg: RFComm: handleHistoryData: records cached=0, records skipped=0, next=50870
Jan 6 20:11:50 daedalus weewx[4890]: KlimaLogg: RFComm: handleHistoryData: time=2018-01-06 19:50:00 this=50875 (0x1fd760) latest=50875 (0x1fd760) nrec=0
Jan 6 20:11:50 daedalus weewx[4890]: KlimaLogg: RFComm: handleHistoryData: skipped record at Pos1 tsCurrentRec=2018-01-06 19:50:00 CET (1515264600) < 2018-01-06 20:10:00 CET (1515265800)
Jan 6 20:11:50 daedalus weewx[4890]: KlimaLogg: RFComm: handleHistoryData: skipped record at Pos2 tsCurrentRec=2018-01-06 19:55:00 CET (1515264900) < 2018-01-06 20:10:00 CET (1515265800)
Jan 6 20:11:50 daedalus weewx[4890]: KlimaLogg: RFComm: handleHistoryData: skipped record at Pos3 tsCurrentRec=2018-01-06 20:00:00 CET (1515265200) < 2018-01-06 20:10:00 CET (1515265800)
Jan 6 20:11:50 daedalus weewx[4890]: KlimaLogg: RFComm: handleHistoryData: skipped record at Pos4 tsCurrentRec=2018-01-06 20:05:00 CET (1515265500) < 2018-01-06 20:10:00 CET (1515265800)
Jan 6 20:11:50 daedalus weewx[4890]: KlimaLogg: RFComm: handleHistoryData: append record at Pos5 tsCurrentRec=2018-01-06 20:10:00 CET (1515265800)
Jan 6 20:11:50 daedalus weewx[4890]: KlimaLogg: RFComm: handleHistoryData: records cached=1, records skipped=5, next=50875
Jan 6 20:11:50 daedalus weewx[4890]: KlimaLogg: RFComm: handleHistoryData: time=2018-01-06 19:50:00 this=50875 (0x1fd760) latest=50875 (0x1fd760) nrec=0
Jan 6 20:11:50 daedalus weewx[4890]: KlimaLogg: RFComm: handleHistoryData: records cached=1, records skipped=5, next=50875
Jan 6 20:11:54 daedalus weewx[4890]: KlimaLogg: MainThread: Records scanned: 1
Jan 6 20:11:54 daedalus weewx[4890]: KlimaLogg: MainThread: Found 0 historical records
Jan 6 20:11:54 daedalus weewx[4890]: KlimaLogg: MainThread: Handle record 1: 2018-01-06 20:10:00 CET (1515265800)
Jan 6 20:11:54 daedalus weewx[4890]: KlimaLogg: MainThread: Saved 0 historical records; ts last saved record 2018-01-06 20:10:00 CET (1515265800)
Jan 6 20:11:54 daedalus weewx[4890]: engine: Starting main packet loop.
Jan 6 20:15:02 daedalus weewx[4890]: KlimaLogg: RFComm: handleHistoryData: time=2018-01-06 20:15:00 this=50876 (0x1fd780) latest=50876 (0x1fd780) nrec=0
Jan 6 20:15:25 daedalus weewx[4890]: manager: Added record 2018-01-06 20:15:00 CET (1515266100) to database 'weewx-kl.sdb'
Jan 6 20:15:25 daedalus weewx[4890]: manager: Added record 2018-01-06 20:15:00 CET (1515266100) to daily summary in 'weewx-kl.sdb'
Jan 6 20:15:25 daedalus weewx[4890]: reportengine: Running reports for latest time in the database.
Jan 6 20:15:25 daedalus weewx[4890]: reportengine: Running report kl
Jan 6 20:15:25 daedalus weewx[4890]: reportengine: Found configuration file /etc/weewx/skins/kl/skin.conf for report kl
Jan 6 20:15:25 daedalus weewx[4890]: cheetahgenerator: using search list ['weewx.cheetahgenerator.Almanac', 'weewx.cheetahgenerator.Station', 'weewx.cheetahgenerator.Current', 'weewx.cheetahgenerator.Stats', 'weewx.cheetahgenerator.UnitInfo', 'weewx.cheetahgenerator.Extras']
Jan 6 20:15:25 daedalus weewx[4890]: manager: Daily summary version is 2.0
Jan 6 20:15:27 daedalus weewx[4890]: cheetahgenerator: Generated 1 files for report kl in 1.40 seconds
Jan 6 20:15:27 daedalus weewx[4890]: manager: Daily summary version is 2.0
Jan 6 20:15:27 daedalus weewx[4890]: imagegenerator: Generated 3 images for kl in 0.77 seconds
Jan 6 20:15:27 daedalus weewx[4890]: reportengine: Running report FTP
Jan 6 20:15:27 daedalus weewx[4890]: reportengine: Found configuration file /etc/weewx/skins/Ftp/skin.conf for report FTP
Jan 6 20:15:27 daedalus weewx[4890]: ftpgenerator: FTP upload not requested. Skipped.
Jan 6 20:15:27 daedalus weewx[4890]: reportengine: Running report RSYNC
Jan 6 20:15:27 daedalus weewx[4890]: reportengine: Found configuration file /etc/weewx/skins/Rsync/skin.conf for report RSYNC
Jan 6 20:15:27 daedalus weewx[4890]: rsyncgenerator: rsync upload not requested. Skipped.

thanks in advance,

Casper

@DaveDavenport
Copy link

I have the same issue.

@alexruetz
Copy link

Influx.py defaults to the standard wx_binding. You are using the klimalog drivers from matthew which change the binding to kl_binding
So you need to replace wx_binding with kl_binding in influx.py

@DaveDavenport
Copy link

DaveDavenport commented May 12, 2020

edit: wrong problem. mixed up 2 issues.

@lrosser2103
Copy link

Did you guys find a solution for this? My log shows everything running, per the config, but no data making it to influx. I have tried a co-located influx install in addition to my influx docker on another machine. I can provide logs and config details to help.

@DaveDavenport
Copy link

I realized I mixed up issues. I switched to mqtt with telegraf to put it in influx.
there I had problem with json being invalid.

@hbdcgaf
Copy link

hbdcgaf commented Oct 28, 2023

Did this ever get fixed? I am having the same issue. Weewx created the database successfully but is not writing weather data to it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants