Re: [weewx-user] Re: reporting Data from SDR coming in as C instead of F

2019-04-24 Thread Bruce Butkus
Just wanted to come back and say thanks again. I finally added it to my 
/usr/share/weewx/user/extention.py and all works now! (well except that if 
i start the deamon proccess it fails to load the SDR driver but thats 
another issue entirely! =) 


On Sunday, April 21, 2019 at 11:00:28 PM UTC-4, Bruce Butkus wrote:
>
> Awesome! Thanks. That's probably it. I did extend the schema but didn't 
> give temp 8 any units. I'll do that and report back. 
> THANKS
>
> On Sun, Apr 21, 2019 at 6:45 PM mwall  wrote:
>
>> i assume that you have already extended the schema to include extraTemp8 
>> - the wview schema (which is the default schema for weewx) only goes to 
>> extraTemp7
>>
>> when you extend the schema, you must also (separately) define the units 
>> for the new fields that you add to the schema
>>
>> if you do not define units, then weewx does not know how to do any 
>> conversions
>>
>> assuming that you have a field extraTemp8 in your database, 
>>
>> import weewx.units
>> weewx.units.obs_group_dict['extraTemp8'] = 'group_temperature'
>>
>> the typical place to put this is in the file extensions.py in the weewx 
>> user directory.  you must restart weewx after making this change.
>>
>> see the section "assigning a unit group" in the weewx customization guide.
>>
>> http://weewx.com/docs/customizing.htm#Assigning_a_unit_group
>>
>> m
>>
>> -- 
>> 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/ENXfGa40QpE/unsubscribe.
>> To unsubscribe from this group and all its topics, send an email to 
>> weewx-user+unsubscr...@googlegroups.com.
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
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: reporting Data from SDR coming in as C instead of F

2019-04-21 Thread mwall
i assume that you have already extended the schema to include extraTemp8 - 
the wview schema (which is the default schema for weewx) only goes to 
extraTemp7

when you extend the schema, you must also (separately) define the units for 
the new fields that you add to the schema

if you do not define units, then weewx does not know how to do any 
conversions

assuming that you have a field extraTemp8 in your database, 

import weewx.units
weewx.units.obs_group_dict['extraTemp8'] = 'group_temperature'

the typical place to put this is in the file extensions.py in the weewx 
user directory.  you must restart weewx after making this change.

see the section "assigning a unit group" in the weewx customization guide.

http://weewx.com/docs/customizing.htm#Assigning_a_unit_group

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.


Re: [weewx-user] Re: reporting Data from SDR coming in as C instead of F

2019-04-21 Thread mwall
On Sunday, April 21, 2019 at 10:41:08 AM UTC-4, Bruce Butkus wrote:
>
> It seems this one is reporting an absolute value of -16, (-16c = 5f) but 
> it's reporting that as f
> The other thing I noticed is that the blechertown report shows it as () 
> not (f) as the other graphs show. So maybe the scemea is messed up in the 
> DB? 
>

i assume that you have already extended the schema to include extraTemp8 - 
the wview schema (which is the default schema for weewx) only goes to 
extraTemp7

when you extend the schema, you must also (separately) define the units for 
the new fields that you add to the schema

if you do not define units, then weewx does not know how to do any 
conversions

assuming that you have a field extraTemp8 in your database, 

import weewx.units
weewx.units.obs_group_dict['outTemp8'] = 'group_temperature'

the typical place to put this is in the file extensions.py in the weewx 
user directory.

see the section "assigning a unit group" in the weewx customization guide.

http://weewx.com/docs/customizing.htm#Assigning_a_unit_group

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.


Re: [weewx-user] Re: reporting Data from SDR coming in as C instead of F

2019-04-21 Thread Bruce Butkus
I haven't moved them but everything else reports correctly.
It seems this one is reporting an absolute value of -16, (-16c = 5f) but
it's reporting that as f
The other thing I noticed is that the blechertown report shows it as () not
(f) as the other graphs show. So maybe the scemea is messed up in the DB?
I don't know how to pull that info though. Sqlite3 reports file not found.


On Sun, Apr 21, 2019 at 9:48 AM mwall  wrote:

> On Sunday, April 21, 2019 at 8:13:16 AM UTC-4, Bruce Butkus wrote:
>>
>> Shouldn't be hardware. It's connected to ambient weather and reports
>> correctly (same as it had since installed).
>>
>
> what happens when you put one of the other sensors into the freezer next
> to the one that is reporting bogus values?
>
> for all of the other sensors, do the values you see in the weewx-sdr
> output match those that you see at ambient.com?
>
>
> --
> 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/ENXfGa40QpE/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> weewx-user+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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: reporting Data from SDR coming in as C instead of F

2019-04-21 Thread mwall
On Sunday, April 21, 2019 at 8:13:16 AM UTC-4, Bruce Butkus wrote:
>
> Shouldn't be hardware. It's connected to ambient weather and reports 
> correctly (same as it had since installed). 
>

what happens when you put one of the other sensors into the freezer next to 
the one that is reporting bogus values? 

for all of the other sensors, do the values you see in the weewx-sdr output 
match those that you see at ambient.com?
 

-- 
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: reporting Data from SDR coming in as C instead of F

2019-04-21 Thread Bruce Butkus
Shouldn't be hardware. It's connected to ambient weather and reports
correctly (same as it had since installed).
See picture above.

On Sun, Apr 21, 2019 at 8:07 AM mwall  wrote:

> so you've got multiple WH31 sensors.  data from all of them but one show
> up properly in weewx.
>
> sounds like one of the sensors has a hardware problem.
>
> there is a simple test you could run to see if it is a software problem:
> take one of your other sensors and put it in the freezer next to the one
> with id 94.  see what the other sensor reports.
>
> m
>
> --
> 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/ENXfGa40QpE/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> weewx-user+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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: reporting Data from SDR coming in as C instead of F

2019-04-21 Thread mwall
so you've got multiple WH31 sensors.  data from all of them but one show up 
properly in weewx.

sounds like one of the sensors has a hardware problem.

there is a simple test you could run to see if it is a software problem:  
take one of your other sensors and put it in the freezer next to the one 
with id 94.  see what the other sensor reports.

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.


Re: [weewx-user] Re: reporting Data from SDR coming in as C instead of F

2019-04-15 Thread Bruce Butkus
Heres the output with --debug on 

The sensor in question is ID 94, Channel 8. 


pi@raspberrypi:/var/lib/weewx $ sudo PYTHONPATH=/usr/share/weewx python 
/usr/share/weewx/user/sdr.py --cmd="rtl_433 -M utc -F json -f 914922000" 
--debug
out: ['{"time" : "2019-04-15 14:00:17", "model" : "AmbientWeather-WH31E", 
"id" : 116, "channel" : 2, "battery" : "OK", "temperature_C" : 23.200, 
"humidity" : 54, "data" : "94", "mic" : "CRC"}\n', '{"time" : 
"2019-04-15 14:00:17", "model" : "AmbientWeather-WH31E", "id" : 116, 
"channel" : 2, "battery" : "OK", "temperature_C" : 23.200, "humidity" : 54, 
"data" : "94", "mic" : "CRC"}\n']
parsed: {'snr.116.AmbientWH31EPacket': None, 
'noise.116.AmbientWH31EPacket': None, 'battery.116.AmbientWH31EPacket': 0, 
'rssi.116.AmbientWH31EPacket': None, 'dateTime': 1555336817, 
'humidity.116.AmbientWH31EPacket': 54.0, 'usUnits': 17, 
'channel.116.AmbientWH31EPacket': 2, 'temperature.116.AmbientWH31EPacket': 
23.2}
parsed: {'snr.116.AmbientWH31EPacket': None, 
'noise.116.AmbientWH31EPacket': None, 'battery.116.AmbientWH31EPacket': 0, 
'rssi.116.AmbientWH31EPacket': None, 'dateTime': 1555336817, 
'humidity.116.AmbientWH31EPacket': 54.0, 'usUnits': 17, 
'channel.116.AmbientWH31EPacket': 2, 'temperature.116.AmbientWH31EPacket': 
23.2}
out: ['{"time" : "2019-04-15 14:00:21", "model" : "AmbientWeather-WH31E", 
"id" : 47, "channel" : 5, "battery" : "OK", "temperature_C" : 23.700, 
"humidity" : 57, "data" : "be", "mic" : "CRC"}\n', '{"time" : 
"2019-04-15 14:00:21", "model" : "AmbientWeather-WH31E", "id" : 47, 
"channel" : 5, "battery" : "OK", "temperature_C" : 23.700, "humidity" : 57, 
"data" : "be", "mic" : "CRC"}\n']
parsed: {'rssi.47.AmbientWH31EPacket': None, 
'temperature.47.AmbientWH31EPacket': 23.7, 'noise.47.AmbientWH31EPacket': 
None, 'channel.47.AmbientWH31EPacket': 5, 'humidity.47.AmbientWH31EPacket': 
57.0, 'dateTime': 1555336821, 'battery.47.AmbientWH31EPacket': 0, 
'snr.47.AmbientWH31EPacket': None, 'usUnits': 17}
parsed: {'rssi.47.AmbientWH31EPacket': None, 
'temperature.47.AmbientWH31EPacket': 23.7, 'noise.47.AmbientWH31EPacket': 
None, 'channel.47.AmbientWH31EPacket': 5, 'humidity.47.AmbientWH31EPacket': 
57.0, 'dateTime': 1555336821, 'battery.47.AmbientWH31EPacket': 0, 
'snr.47.AmbientWH31EPacket': None, 'usUnits': 17}
out: ['{"time" : "2019-04-15 14:00:49", "model" : "AmbientWeather-WH31E", 
"id" : 94, "channel" : 8, "battery" : "OK", "temperature_C" : -13.300, 
"humidity" : 86, "data" : "17", "mic" : "CRC"}\n', '{"time" : 
"2019-04-15 14:00:49", "model" : "AmbientWeather-WH31E", "id" : 94, 
"channel" : 8, "battery" : "OK", "temperature_C" : -13.300, "humidity" : 
86, "data" : "17", "mic" : "CRC"}\n', '{"time" : "2019-04-15 
14:00:50", "model" : "Fine Offset Electronics, WH25", "id" : 224, 
"temperature_C" : 20.900, "humidity" : 58, "pressure_hPa" : 982.500, 
"battery" : "OK", "mic" : "CHECKSUM"}\n']
parsed: {'battery.94.AmbientWH31EPacket': 0, 
'humidity.94.AmbientWH31EPacket': 86.0, 'dateTime': 1555336849, 
'temperature.94.AmbientWH31EPacket': -13.3, 'noise.94.AmbientWH31EPacket': 
None, 'rssi.94.AmbientWH31EPacket': None, 'channel.94.AmbientWH31EPacket': 
8, 'snr.94.AmbientWH31EPacket': None, 'usUnits': 17}
parsed: {'battery.94.AmbientWH31EPacket': 0, 
'humidity.94.AmbientWH31EPacket': 86.0, 'dateTime': 1555336849, 
'temperature.94.AmbientWH31EPacket': -13.3, 'noise.94.AmbientWH31EPacket': 
None, 'rssi.94.AmbientWH31EPacket': None, 'channel.94.AmbientWH31EPacket': 
8, 'snr.94.AmbientWH31EPacket': None, 'usUnits': 17}
parsed: {'battery.224.FOWH25Packet': 0, 'humidity.224.FOWH25Packet': 58.0, 
'dateTime': 1555336850, 'pressure.224.FOWH25Packet': 982.5, 
'temperature.224.FOWH25Packet': 20.9, 'usUnits': 16}
out: ['{"time" : "2019-04-15 14:00:54", "model" : "AmbientWeather-WH31E", 
"id" : 160, "channel" : 7, "battery" : "OK", "temperature_C" : 24.300, 
"humidity" : 54, "data" : "25", "mic" : "CRC"}\n', '{"time" : 
"2019-04-15 14:00:54", "model" : "AmbientWeather-WH31E", "id" : 160, 
"channel" : 7, "battery" : "OK", "temperature_C" : 24.300, "humidity" : 54, 
"data" : "25", "mic" : "CRC"}\n']
parsed: {'battery.160.AmbientWH31EPacket': 0, 
'rssi.160.AmbientWH31EPacket': None, 'humidity.160.AmbientWH31EPacket': 
54.0, 'temperature.160.AmbientWH31EPacket': 24.3, 
'channel.160.AmbientWH31EPacket': 7, 'snr.160.AmbientWH31EPacket': None, 
'noise.160.AmbientWH31EPacket': None, 'dateTime': 1555336854, 'usUnits': 17}
parsed: {'battery.160.AmbientWH31EPacket': 0, 
'rssi.160.AmbientWH31EPacket': None, 'humidity.160.AmbientWH31EPacket': 
54.0, 'temperature.160.AmbientWH31EPacket': 24.3, 
'channel.160.AmbientWH31EPacket': 7, 'snr.160.AmbientWH31EPacket': None, 
'noise.160.AmbientWH31EPacket': None, 'dateTime': 1555336854, 'usUnits': 17}
out: ['{"time" : "2019-04-15 14:01:02", "model" : "AmbientWeather-WH31E", 
"id" : 211, "channel" : 1, "battery" : "OK", "temperature_C" : 16.800, 
"humidity" : 86, "data" : "48", 

Re: [weewx-user] Re: reporting Data from SDR coming in as C instead of F

2019-04-14 Thread Bruce Butkus
Sure. It’s already set to debug
I did notice on the one page it comes in as -14 unitless. Not sure if it’s
grabbing the wrong unit? I saw somewhere where it said usunits:17

On Sun, Apr 14, 2019 at 9:27 AM mwall  wrote:

> On Friday, April 12, 2019 at 12:32:04 PM UTC-4, Bruce Butkus wrote:
>>
>> Ive got 8 additional WH31 that I use to monitor the house. I use an SDR
>> to capture the data, and 7 are working properly but my 8th is coming in as
>> F, but the value is still in C.
>> ie: its in a freezer, so its reporting temp_C : -14 ; usUnits: 16
>>
>
> i'm a little confused - the output that you posted is not consistent with
> your description or even with itself.
>
> could you set debug=1 then post the log output for multiple LOOPs - enough
> to show the data captured from each sensor.
>
> m
>
> --
> 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/ENXfGa40QpE/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> weewx-user+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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: reporting Data from SDR coming in as C instead of F

2019-04-14 Thread mwall
On Friday, April 12, 2019 at 12:32:04 PM UTC-4, Bruce Butkus wrote:
>
> Ive got 8 additional WH31 that I use to monitor the house. I use an SDR to 
> capture the data, and 7 are working properly but my 8th is coming in as F, 
> but the value is still in C. 
> ie: its in a freezer, so its reporting temp_C : -14 ; usUnits: 16
>

i'm a little confused - the output that you posted is not consistent with 
your description or even with itself.

could you set debug=1 then post the log output for multiple LOOPs - enough 
to show the data captured from each sensor.

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.