Le mardi 30 mai 2017 05:30:35 UTC+2, Kenneth Dixon a écrit :
>
> So I have the SDR driver configured and it looks to be running, but some 
> values in the DB archive table are missing or very wrong.
> Here my config:
> [SDR]
>     # This section is for the software-defined radio driver.
>
>     # The driver to use
>     driver = user.sdr
>     cmd = rtl_433 -q -U -F json -G
>     path = /usr/local/bin
>     ld_library_path = /usr/local/lib
>     log_unknown_sensors = True
>     log_unmapped_sensors = True
>     [[sensor_map]]
>         battery = battery.12.FOWH1080Packet
>         rain = rain_total.12.FOWH1080Packet
>         speed = wind_speed.12.FOWH1080Packet
>         gust  = wind_gust.12.FOWH1080Packet
>         direction_deg = wind_dir.12.FOWH1080Packet
>         humidity = humidity.12.FOWH1080Packet
>         temperature_C = temperature.12.FOWH1080Packet
>
> And some logging output AFAIK it seems fine:
> May 30 14:25:14 weatherpi weewx[14454]: sdr: MainThread: lines=[]
> May 30 14:25:20 weatherpi weewx[14454]: sdr: MainThread: lines=['{"time" : 
> "2017-05-30 02:25:17", "model" : "Fine Offset Electronics WH1080/WH3080 
> Weather Station", "msg_type" : 0, "id" : 12, "temperature_C" : 14.700, 
> "humidity" : 84, "direction_str" : "N", "direction_deg" : "0", "speed" : 
> 6.120, "gust" : 8.568, "rain" : 85.800, "battery" : "OK"}\n', '{"time" : 
> "2017-05-30 02:25:17", "model" : "Fine Offset Electronics WH1080/WH3080 
> Weather Station", "msg_type" : 0, "id" : 12, "temperature_C" : 14.700, 
> "humidity" : 84, "direction_str" : "N", "direction_deg" : "0", "speed" : 
> 6.120, "gust" : 8.568, "rain" : 85.800, "battery" : "OK"}\n']
> May 30 14:25:20 weatherpi weewx[14454]: sdr: MainThread: 
> packet={'battery': 0, 'gust': 8.568, 'rain': 85.8, 'humidity': 84.0, 
> 'temperature_C': 14.7, 'direction_deg': 0.0, 'dateTime': 1496111117, 
> 'speed': 6.12, 'usUnits': 16}
> May 30 14:25:20 weatherpi weewx[14454]: manager: Added record 2017-05-30 
> 14:25:00 NZST (1496111100) to database 'weewx.sdb'
> May 30 14:25:20 weatherpi weewx[14454]: manager: Added record 2017-05-30 
> 14:25:00 NZST (1496111100) to daily summary in 'weewx.sdb'
> May 30 14:25:22 weatherpi weewx[14454]: reportengine: Running reports for 
> latest time in the database.
> May 30 14:25:22 weatherpi weewx[14454]: reportengine: Running report 
> StandardReport
> May 30 14:25:22 weatherpi weewx[14454]: reportengine: Found configuration 
> file /etc/weewx/skins/Standard/skin.conf for report StandardReport
> May 30 14:25:22 weatherpi weewx[14454]: cheetahgenerator: using search 
> list ['weewx.cheetahgenerator.Almanac', 'weewx.cheetahgenerator.Station', 
> 'weewx.cheetahgenerator.Current', 'weewx.cheetahgenerator.Stats', 
> 'weewx.cheetahgenerator.UnitInfo', 'weewx.cheetahgenerator.Extras']
> May 30 14:25:22 weatherpi weewx[14454]: manager: Daily summary version is 
> 2.0
> May 30 14:25:23 weatherpi weewx[14454]: cheetahgenerator: Generated 14 
> files for report StandardReport in 1.74 seconds
> May 30 14:25:23 weatherpi weewx[14454]: manager: Daily summary version is 
> 2.0
> May 30 14:25:24 weatherpi weewx[14454]: imagegenerator: Generated 12 
> images for StandardReport in 0.82 seconds
> May 30 14:25:24 weatherpi weewx[14454]: copygenerator: copied 0 files to 
> /var/www/html/weewx
> May 30 14:25:24 weatherpi weewx[14454]: reportengine: Running report FTP
> May 30 14:25:24 weatherpi weewx[14454]: reportengine: Found configuration 
> file /etc/weewx/skins/Ftp/skin.conf for report FTP
> May 30 14:25:24 weatherpi weewx[14454]: ftpgenerator: FTP upload not 
> requested. Skipped.
> May 30 14:25:24 weatherpi weewx[14454]: reportengine: Running report RSYNC
> May 30 14:25:24 weatherpi weewx[14454]: reportengine: Found configuration 
> file /etc/weewx/skins/Rsync/skin.conf for report RSYNC
> May 30 14:25:24 weatherpi weewx[14454]: rsyncgenerator: rsync upload not 
> requested. Skipped.
>
> However in the DB it looks like:
> sqlite> select * from archive;
>
> 1496109900|17|5||||||||||||3431.99999649936|858.0||||||||||||||||||||||||||||||||||||
>
> 1496110200|17|5||||||||||||15443.9999842471|5148.0||||||||||||||||||||||||||||||||||||
>
> 1496110500|17|5||||||||||||37751.999961493|6006.0||||||||||||||||||||||||||||||||||||
>
> 1496110800|17|5||||||||||||59487.9999393222|5148.0||||||||||||||||||||||||||||||||||||
>
> 1496111100|17|5||||||||||||65698.2856472735|6006.0||||||||||||||||||||||||||||||||||||
>
> 1496111400|17|5||||||||||||68639.9999299872|5148.0||||||||||||||||||||||||||||||||||||
>
> 1496111700|17|5||||||||||||68639.9999299872|6006.0||||||||||||||||||||||||||||||||||||
>
> 1496112000|17|5||||||||||||68067.9999305706|5148.0||||||||||||||||||||||||||||||||||||
>
> 1496112300|17|5||||||||||||65207.9999334879|5148.0||||||||||||||||||||||||||||||||||||
>
> 1496112600|17|5||||||||||||65207.9999334879|5148.0||||||||||||||||||||||||||||||||||||
>
> Looks like the timestamp, unit and interval are legit, but the rainRate 
> and rain are way off and many values are missing.
>
> Anyone have any ideas?
>
> Thanks, Ken
>
>
>
>
Hi all,

I think i have the same problem with my own driver (Rfxcom Tranceiver)
I have something like this in my terminal window

REC:    2017-05-30 09:50:00 CEST (1496130600) altimeter: None, appTemp: 
None, barometer: None, battery.1500.Rain: 9.0, battery.5501.TempHumid: 9.0, 
cloudbase:None, dateTime: 1496130600.0, dewpoint: None, ET: None, 
heatindex: None, humidex: None, humidity.5501.TempHumid: 57.8, inDewpoint: 
None, interval: 5, maxSolarRad: 272.887013424, pressure: None, 
rain.1500.Rain: 0.0, rain_total.1500.Rain: 423.6, rainRate: 0.0, 
rate.1500.Rain: 0.0, signal.1500.Rain: 7.0, signal.5501.TempHumid: 7.0, 
temperature.5501.TempHumid: 18.72, usUnits: 17, windchill: None, windrun: 
0.0
REC:    2017-05-30 09:55:00 CEST (1496130900) altimeter: None, appTemp: 
None, barometer: None, battery.1500.Rain: 9.0, battery.5501.TempHumid: 9.0, 
cloudbase: None, dateTime: 1496130900.0, dewpoint: None, ET: None, 
heatindex: None, humidex: None, humidity.5501.TempHumid: 57.0, inDewpoint: 
None, interval: 5, maxSolarRad: 272.897054509, pressure: None, 
rain.1500.Rain: 0.0, rain_total.1500.Rain: 423.6, rainRate: 0.0, 
rate.1500.Rain: 0.0, signal.1500.Rain: 7.0, signal.5501.TempHumid: 7.0, 
temperature.5501.TempHumid: 18.8, usUnits: 17, windchill: None, windrun: 0.0

But in my SQL Database, only 4 fields have data (dateTime, usUnits, 
interval & rainRate), the staying fields belong to NULL

-- 
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