You're being a little vague on the details. What results are you getting?
And, what do you mean by "send 0.1 (mm)?" Do you mean in the loop packets?
If so, your genLoopPackets() function should look something like this (NOT
TESTED):

def genLoopPackets():
  data = {'dateTime': time.time(), 'usUnits': weewx.METRIC}
  data['outTemp'] = (something)
  ...
  data['hail'] = 0.1    # NB: This would be 0.1 cm, or 1mm

  yield data

There are a two other assumptions as well:

   1. You have not implemented genArchiveRecords() and are, therefore,
   depending on software record generation to turn your loop packets into
   archive records.
   2. The observation type 'hail' is in your schema. This is the normal
   situation with the default "wview" schema, so I'm assuming you have not
   changed it.


-tk



On Sun, Dec 3, 2017 at 6:56 AM, 'Christian Peters' via weewx-user <
[email protected]> wrote:

> Tom,
>
> that seems not to solve my problem. I send 0.1 (mm) but didn't get that
> into weewx.
> As I already have a rain bucket with the VPII I used 'hail' and 'hail
> rate". Could these be a problem or can't I use it for a second rain bucket
> (same computation as rain?).
>
> Regard,
>
> Chrstian
>
> Am Sonntag, 26. November 2017 15:09:33 UTC+1 schrieb Tom Keffer:
>>
>> That could be it. weewx.METRIC has rainfall in cm, weewx.METRICWX in mm.
>> See the Units <http://weewx.com/docs/customizing.htm#units> appendix in
>> the Customizing Guide.
>>
>> -tk
>>
>> On Sun, Nov 26, 2017 at 8:02 AM, 'Christian Peters' via weewx-user <
>> [email protected]> wrote:
>>
>>> Tom,
>>>
>>> thank you for that hint. So emitting in mm was the right change.
>>> I just wonder why my temp values are ok but my rain data isn't!?
>>> Just found that on the wxMesh driver:
>>>
>>> # map the data into a weewx loop packet
>>> _packet = {'usUnits': weewx.METRIC}
>>>
>>> So I think I have to switch to METRICWX.
>>>
>>> Regards,
>>>
>>> Christian
>>>
>>>
>>>
>>> --
>>> 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.
>>>
>>
>> --
> 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.
>

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