Hi Rob,
Regarding the rain faill per hour, I am not sure if what you proposed is
correct. What you are doing in your code, if I understood you correctly, is
the following:
if packet[2:4].encode('hex')!='fffe':
Rh = None
else:
Rh = (256*ord(packet[2])+ord(packet[3]))*2.54/100
So in your else branch, you will always have packet[2]=ff and packet[3]=fe. Of
course, you are now getting output regarding the rain but the Rh will
always be 1664.56, isn't?
As it is not saved in DB, I don't use the Rh and have never checked its
values. I don't have neither an UV sensor, so I can't help in your second
question.
2018-04-17 11:40 GMT+02:00 'Rod Avery' via weewx-user <
[email protected]>:
> Hello all,
>
> I have been using the driver posted by fcauwe for a little while and am
> getting data through from the WMR89.
>
> I did notice that it was not reporting rain fall per hour. Looking through
> the code I found the following if statement under *def
> _wmr89_rain_packet(self, packet):*
>
> if packet[2:4].encode('hex')=='fffe':
> Rh = None
> else:
>
>
> Looking at the output from the WMR89 it looks like having output in the
> packet containing *fffe* means there is rain data not that there isn't
> rain data. So I modified the code to NOT EQUAL :
>
> if packet[2:4].encode('hex')*!=*'fffe':
> Rh = None
> else:
>
>
> I am now getting correct output with regards to rain.
>
> I have also taken Daniels suggestion and added the code from his post.
>
> On a side issue, I am getting the following:
> Apr 17 10:34:30 weatherstation weewx[27499]: wmr89: Invalid data packet
> (b3050100b9).
>
> Does anyone know what this packet is? I have a UV sensor connected so
> could it be for that?
>
> Big thank you to all involved in writing the driver for the WMR89 - Very
> helpful!
>
> Rod.
>
>
>
> --
> 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/FxNx6am2MgM/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> [email protected].
> 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 [email protected].
For more options, visit https://groups.google.com/d/optout.