Re: [weewx-user] Re: rtl-sdr configuration issue

2017-06-06 Thread mwall


On Tuesday, May 30, 2017 at 9:57:43 PM UTC-4, david wrote:
>
> See attached "weewx-17hour" log from an overnight 17 or so hour run where 
> debug = 0. look for the multiple errors where: 
>
>  sdr: MainThread reports "['usb claim interface error -6\n' , 'Failed to 
> open rtlsdr device #0.\n'] 
>
> and 
> sdr: MainThread: shutdown process rtl_433 -q -U -F json -G 
>
>  then 
> engine: Caught WeeWxIOError: rtl_433 prosess is not running. 
>
> However "ps ax|grep rtl_433" showed that it WAS running. 
>

only one instance of rtl_433 can be running.  if you are running rtl_433 
directly, then running weewx with the weewx-sdr driver will fail. 

-- 
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 weewx-user+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [weewx-user] Re: rtl-sdr configuration issue

2017-06-06 Thread mwall


On Tuesday, May 30, 2017 at 9:57:43 PM UTC-4, david wrote:
>
> Added to that in about line 746 of the latest sdr.py the IDENTIFIER = line 
> did not correspond with the output from rtl_433. It took a fair amount of 
> hunting to realise that the difference between "WH1080 / WH3080" and 
> "WH1080/WH3080" was significant because after removing the spaces around 
> the "/" I began to see the packets appearing in the weewx log. 
>

welcome to the quagmire of keeping up with random changes to rtl_433.

this posting shows "WH1080 / WH3080":

https://groups.google.com/forum/#!searchin/weewx-user/WH3080%7Csort:relevance/weewx-user/X8f8t--TXII/9yShgF_0AwAJ

but apparently the version of rtl_433 that you are using does not have 
spaces, and the 'original' version of rtl_433 used another string.

sigh.

rtl_433 needs to put some structure to the 'model' field as well as to the 
number and types of other identifying fields.

m

-- 
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 weewx-user+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[weewx-user] Re: rtl-sdr configuration issue

2017-05-30 Thread mwall


On Tuesday, May 23, 2017 at 8:28:29 AM UTC-4, david wrote:
>
> Attached are log and configuration files after switching from the Fine 
> Offset LCD display to a Realtek USB dongle. Reason for change was a dead 
> display. 
>
> I followed the instructions from https://github.com/matthewwall/weewx-sdr 
> with path modifications to suit my operating system - Mageia Cauldron. 
>
> The log attached shows that there are problems when the sdr driver 
> attempts to decode the data being received from the dongle. 
>
>
david,

please try the latest sdr driver (0.29 as of 30may2017)

there were changes to the rtl_433 code in the past couple of months that 
broke the weewx-sdr driver when using fine offset packets.

the latest sdr driver *should* work with both the older rtl_433 and the 
newer version.

m 

-- 
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 weewx-user+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[weewx-user] Re: rtl-sdr configuration issue

2017-05-23 Thread Craig Thom
I am a relative newcomer, too, and am not involved in development or 
support of weewx, so I'm probably wrong, but, since no one has said 
anything,  here goes.

The IDENTIFIER string for FOWH1080Packet is "Fine Offset WH1080 weather 
station", and it appears that string is what is used to tell whether or not 
the packet is known.

So I think, but I am not sure, if you edit sdr.py and replaced your new 
string for the old then it will work.  It would probably be best to add a 
new parser for this new product string, but the string replacement would 
tell if I'm right or not.  Just back up sdr.py first.

On Tuesday, May 23, 2017 at 8:28:29 AM UTC-4, david wrote:
>
> Attached are log and configuration files after switching from the Fine 
> Offset LCD display to a Realtek USB dongle. Reason for change was a dead 
> display. 
>
> I followed the instructions from https://github.com/matthewwall/weewx-sdr 
> with path modifications to suit my operating system - Mageia Cauldron. 
>
> The log attached shows that there are problems when the sdr driver 
> attempts to decode the data being received from the dongle. 
>
> As you can see there are errors where the data is seemingly displayed 
> correctly in one line then in the next throws a json parse error (extract 
> below) 
>
> It appears the problem may be coming from sdr.py as each of the problem 
> lines contain "sdr. MainThread lines []" 
>
> The command line in weewx.conf has been tried with various options and all 
> appear to return the same kind of error string. 
>
> Log excerpt: (CAUTION lines may wrap) 
>
> = starts about line 155 in attachment  
>
> May 23 19:06:03 tidemark weewx[4070]: sdr: MainThread: lines=[] 
> May 23 19:06:06 tidemark weewx[4070]: sdr: MainThread: lines=[] 
> May 23 19:06:11 tidemark weewx[4070]: sdr: MainThread: lines=['{"time" : 
> "2017-05-23 07:06:08", "model" : "Fine Offset Electronics WH1080/WH3080 
> Weather Station", "msg_type" : 0, "id" : 122, "temperature_C" : 14.400, 
> "humidity" : 77, "direction_str" : "NW", "direction_deg" : "315", "speed" : 
> 13.464, "gust" : 14.688, "rain" : 130.200, "battery" : "OK"}\n', '{"time" : 
> "2017-05-23 07:06:08", "model" : "Fine Offset Electronics WH1080/WH3080 
> Weather Station", "msg_type" : 0, "id" : 122, "temperature_C" : 14.400, 
> "humidity" : 77, "direction_str" : "NW", "direction_deg" : "315", "speed" : 
> 13.464, "gust" : 14.688, "rain" : 130.200, "battery" : "OK"}\n'] 
> May 23 19:06:11 tidemark weewx[4070]: sdr: MainThread: parse_json: unknown 
> model Fine Offset Electronics WH1080/WH3080 Weather Station 
> May 23 19:06:11 tidemark weewx[4070]: sdr: MainThread: punt unrecognized 
> line '{"time" : "2017-05-23 07:06:08", "model" : "Fine Offset Electronics 
> WH1080/WH3080 Weather Station", "msg_type" : 0, "id" : 122, "temperature_C" 
> : 14.400, "humidity" : 77, "direction_str" : "NW", "direction_deg" : "315", 
> "speed" : 13.464, "gust" : 14.688, "rain" : 130.200, "battery" : "OK"}#012' 
> May 23 19:06:11 tidemark weewx[4070]: sdr: MainThread: parse_json: unknown 
> model Fine Offset Electronics WH1080/WH3080 Weather Station 
> May 23 19:06:11 tidemark weewx[4070]: sdr: MainThread: punt unrecognized 
> line '{"time" : "2017-05-23 07:06:08", "model" : "Fine Offset Electronics 
> WH1080/WH3080 Weather Station", "msg_type" : 0, "id" : 122, "temperature_C" 
> : 14.400, "humidity" : 77, "direction_str" : "NW", "direction_deg" : "315", 
> "speed" : 13.464, "gust" : 14.688, "rain" : 130.200, "battery" : "OK"}#012' 
> May 23 19:06:14 tidemark weewx[4070]: sdr: MainThread: lines=[] 
> May 23 19:06:17 tidemark weewx[4070]: sdr: MainThread: lines=[] 
> May 23 19:06:20 tidemark weewx[4070]: sdr: MainThread: lines=[] 
>
> = end = 
>
>
>
>
> David Taylor, Puniho 
> 'the place to be; beneath the Mountain, beside the Sea' 
> http://www.pwx.kiwi 
> ~ 
> whose computer uses linux/open source software, featuring 
> Mageia release 5 (Official) for x86_64, kernel 4.4.65-desktop-1.mga5 
> ~ 
>

-- 
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 weewx-user+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.