weewx and weewx-sdr - problems

206 views
Skip to first unread message

Andrew Dibbins

unread,
Oct 31, 2017, 11:01:32 AM10/31/17
to weewx-user
Hi All,

I've been using weewx on my RPI thru the USB connection to my weather station's LCD, it's the cheap Maplin WS based on WH1080 , I think.

The LCD frequently stops working and then so does weewx, as a solution I decided to remove the LCD, by using Matthew Walls weewx-sdr extension.

However, I've clearly got something wrong, as I can definitely see the sensors sending info (see part of my message log), however weewx doesn't respond to this activity.

Is someone available to guide me as to what I've done wrong ?

Regards

Andrew  
weewx.conf
messages

Andrew Milner

unread,
Oct 31, 2017, 11:48:38 AM10/31/17
to weewx-user
The log seems to say that the readings are unmapped - shouldn't the mapping be more like
outTemp = temperature_C.0119........
windGust = gust.0119......

where left of = is weewx column name and right of = is reading name from the SDR messages

just a thought ....
Message has been deleted

Ian A

unread,
Oct 31, 2017, 6:21:14 PM10/31/17
to weewx-user
The mappings looks ok, mine look like this:  windGust = wind_gust.37.FOWH1050Packet

What do you get when you with     <   sudo PYTHONPATH=/usr/share/weewx python /usr/share/weewx/user/sdr.py --cmd="rtl_433 -q -U -F json -G -R 32"  >

You may have to check those paths are correct for your install.

Ian

Andrew Dibbins

unread,
Oct 31, 2017, 6:39:32 PM10/31/17
to weewx...@googlegroups.com

Hi Ian,

Here's the output from sdr.py command.

How should we interpret it ?

Thanks

Andy

--
You received this message because you are subscribed to a topic in the Google Groups "weewx-user" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/weewx-user/w0a6M2RXTkI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to weewx-user+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

sdr.py.out

Ian A

unread,
Nov 1, 2017, 3:58:27 AM11/1/17
to weewx-user
Looks like the station ID isn't being passed  "should be "0119" where its currently displaying "NONE"

As i understand it the "input" taged  lines are the json nput to sdr.py from rtl_433 and the "passed" lines are the data as passed to WEEWX

You could try uncommenting line 775 of /usr/share/weewx/user/sdr.py and commenting out line 776 then try executing sdr.py again,

 If that fails maybe show a dump of just "sudo rtl_433 -q -U -F json -G -R 32"

Ian

Andrew Dibbins

unread,
Nov 1, 2017, 5:21:00 AM11/1/17
to weewx...@googlegroups.com
Hi Ian,

Thanks for your help, here.

I've changed the Identifier in lines 775/776 as you suggested, I'm still seeing the none records.

I've attached the out from the rtl_433 command, that seems OK in my limited opinion, so I assume the problem exists within the sdr.py script ?

Thanks

Andy

To unsubscribe from this group and all its topics, send an email to weewx-user+unsubscribe@googlegroups.com.
rtl_433.out
sdr2.py.out

Ian A

unread,
Nov 1, 2017, 7:47:59 AM11/1/17
to weewx-user
Andy
All I can suggest is that you try replacing  obj.get('station_id') with obj.get('id') in line 726 then save and rerun the script.
Maybe this is yet another variation in the rtl_433 device

Ian

mwall

unread,
Nov 1, 2017, 8:34:46 AM11/1/17
to weewx-user


On Wednesday, November 1, 2017 at 7:47:59 AM UTC-4, Ian A wrote:
Andy
All I can suggest is that you try replacing  obj.get('station_id') with obj.get('id') in line 726 then save and rerun the script.
Maybe this is yet another variation in the rtl_433 device

Ian


andy,

ian's suggestion should work.  it looks like 'station_id' became 'id' in a change to rtl_433.

i have released weewx-sdr 0.37 with a fix that should work with either the old or new rtl_433

Andrew Dibbins

unread,
Nov 1, 2017, 9:03:23 AM11/1/17
to weewx-user
Hi Matthew,

Thanks for the updated version 0.37, but I'm seeing a further problem

root@raspberrypi:/usr/share/weewx/user# /etc/init.d/weewx status
● weewx.service - LSB: weewx weather system
   Loaded: loaded (/etc/init.d/weewx; generated; vendor preset: enabled)
   Active: active (exited) since Wed 2017-11-01 12:42:58 GMT; 18min ago
     Docs: man:systemd-sysv-generator(8)
  Process: 2810 ExecStop=/etc/init.d/weewx stop (code=exited, status=0/SUCCESS)
  Process: 2924 ExecStart=/etc/init.d/weewx start (code=exited, status=0/SUCCESS)

Nov 01 12:42:58 raspberrypi weewx[2939]:     ****    File "/usr/share/weewx/weewx/engine.py", line 865, in main
Nov 01 12:42:58 raspberrypi weewx[2939]:     ****      engine = engine_class(config_dict)
Nov 01 12:42:58 raspberrypi weewx[2939]:     ****    File "/usr/share/weewx/weewx/engine.py", line 71, in __init__
Nov 01 12:42:58 raspberrypi weewx[2939]:     ****      self.setupStation(config_dict)
Nov 01 12:42:58 raspberrypi weewx[2939]:     ****    File "/usr/share/weewx/weewx/engine.py", line 95, in setupStation
Nov 01 12:42:58 raspberrypi weewx[2939]:     ****      __import__(driver)
Nov 01 12:42:58 raspberrypi weewx[2939]:     ****    File "/usr/share/weewx/user/sdr.py", line 1
Nov 01 12:42:58 raspberrypi weewx[2939]:     ****      opyright 2016-2017 Matthew Wall
Nov 01 12:42:58 raspberrypi weewx[2939]:     ****                  ^
Nov 01 12:42:58 raspberrypi weewx[2939]:     ****  SyntaxError: invalid syntax
root@raspberrypi:/usr/share/weewx/user#

Thanks

Andy

mwall

unread,
Nov 1, 2017, 9:08:57 AM11/1/17
to weewx-user


On Wednesday, November 1, 2017 at 9:03:23 AM UTC-4, Andrew Dibbins wrote:

Nov 01 12:42:58 raspberrypi weewx[2939]:     ****    File "/usr/share/weewx/user/sdr.py", line 1
Nov 01 12:42:58 raspberrypi weewx[2939]:     ****      opyright 2016-2017 Matthew Wall
Nov 01 12:42:58 raspberrypi weewx[2939]:     ****                  ^
Nov 01 12:42:58 raspberrypi weewx[2939]:     ****  SyntaxError: invalid syntax
root@raspberrypi:/usr/share/weewx/user#


that smells like a corrupt file.  how did you download the extension?

open sdr.py in an editor that knows how to do syntax coloring for python

or just download the sdr zip/tgz again

Andrew Dibbins

unread,
Nov 26, 2017, 11:19:24 AM11/26/17
to weewx-user

Thanks all, it appears now to be updating, however there's a further problem, I assume with the mapping, as only the humidity appears to update, see ?

Any ideas, please?
Thanks
weewx.conf
Auto Generated Inline Image 1

mwall

unread,
Nov 26, 2017, 11:27:07 AM11/26/17
to weewx-user
On Sunday, November 26, 2017 at 11:19:24 AM UTC-5, Andrew Dibbins wrote:

Thanks all, it appears now to be updating, however there's a further problem, I assume with the mapping, as only the humidity appears to update, see ?

what does the log say?

maybe someone could do a spoof of 'what does the fox say' but call it 'what does the log say'


pa pa pa pa-pa-pow :)

Andrew Milner

unread,
Nov 26, 2017, 12:07:34 PM11/26/17
to weewx-user
Perhaps the font size in the group heading section needs to be increased, and underlined since bold is obviously not good enough!!

Andrew Dibbins

unread,
Nov 26, 2017, 3:38:44 PM11/26/17
to weewx-user
OK, I get it, apologies.

Attached is a snip from the message and syslog.and user.log

I seem to be plagued, by oilwatchman and I assume smart meters
messages.short
syslog.short
user.log.short
Reply all
Reply to author
Forward
0 new messages