Thank you! please notify me when you'll fix the driver

Il giorno lunedì 2 dicembre 2019 12:25:48 UTC+1, mwall ha scritto:
>
>
>
> On Thursday, November 28, 2019 at 6:35:48 PM UTC-5, Andrea Cecilia wrote:
>>
>> Hi there,
>> I was trying the weewx-wxt5x0 
>> <https://github.com/matthewwall/weewx-wxt5x0> driver with my Vaisala 
>> WXT-510. 
>> At the beginning, it seemed to work perfectly. But after a couple of 
>> hours working, it gives the error "ValueError: too many values to 
>> unpack" and exits. I need just to give a "service weewx restart" to make 
>> it start again, but after some time it falls into this error again.
>> Do you know how I can fix this?
>>
>
> the station is sending corrupt data.  when you see a 'raw' string, you can 
> figure out the problem by rebuilding the string like this:
>
> >>> x = "30 52 31 2C 44 6E 3D 30 6D 3D 30 33 32 44 2C 53 6D 3D 30 2E 31 4D 
> 2C 54 61 3D 32 37 2E 39 43 2C 55 61 3D 33 39 2E 34 50 2C 50 61 3D 31 30 30 
> 33 2E 32 48 2C 52 63 3D 30 2E 30 30 4D 2C 54 68 3D 32 38 2E 33 43 2C 56 68 
> 3D 30 2E 30 4E 0D 0A"
>
> >>> z = ''.join([chr(int(y,16)) for y in x.split(' ')])
>
> >>> z.strip().split(',')
>
> ['0R1', 'Dn=0m=032D', 'Sm=0.1M', 'Ta=27.9C', 'Ua=39.4P', 'Pa=1003.2H', 
> 'Rc=0.00M', 'Th=28.3C', 'Vh=0.0N']
>
> >>> for q in z.strip().split(','):
>
> ...     if '=' in q:
>
> ...             q.split('=')
>
> ... 
>
> ['Dn', '0m', '032D']
>
> ['Sm', '0.1M']
>
> ['Ta', '27.9C']
>
> ['Ua', '39.4P']
>
> ['Pa', '1003.2H']
>
> ['Rc', '0.00M']
>
> ['Th', '28.3C']
>
> ['Vh', '0.0N']
>
> as you can see, there is no value for 'Dn'.  i will fix the driver so that 
> it logs these cases instead of dying.
>
> 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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/3f6eaae5-536e-48de-893f-9cd331b8932e%40googlegroups.com.

Reply via email to