Ah much better, that sorted it. Thanks Andrew.

On Tuesday, 30 May 2017 16:05:24 UTC+12, Andrew Milner wrote:
>
> I think from reading the driver instructions, but may be wrong, that the 
> mapping should be more like
>
> [[sensor_map]]
>         battery = battery.12.FOWH1080Packet
>         rain_total = rain_total.12.FOWH1080Packet
>         windSpeed = wind_speed.12.FOWH1080Packet
>         windGust  = wind_gust.12.FOWH1080Packet
>         windDir = wind_dir.12.FOWH1080Packet
>         outHumidity = humidity.12.FOWH1080Packet
>         outTemp = temperature.12.FOWH1080Packet
>
> ie left of = is weewx DB column name and right of = is sensor id
>
> On Tuesday, 30 May 2017 06:30:35 UTC+3, Kenneth Dixon wrote:
>
>> 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
>>
>>
>>
>>

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