Tested and updated the owfs.py file in my fork

Changed the encode() suggestions in the thread above to use plain str()
I believe I've caught all instances and that fix should propagate
through to the various functions.

There is also a tweak to get_float(path) that I required (when using
pyownet and python3) and a tweak to version string which logs the
python module it's running with.

It runs Weewx4 with either python2.7 or python3.

 
https://github.com/glennmckechnie/weewx-owfs/commit/f3c8496bba973b9acba0f2ace573cd4462d7a80b

https://github.com/glennmckechnie/weewx-owfs/raw/master/bin/user/owfs.py



On 23/05/2020, Glenn McKechnie <[email protected]> wrote:
> Looks like another encoding issue.
> You could try changing line 274 in the same fashion. No guarantees, as
> I can't test it.
>
> change...
>
> sv = ow.get(path)
>
> to include the encode fix...
>
> sv = ow.get(path.encode())
>
> I've raised it as an issue on github, hopefully mathew will be along
> and able to apply his expertise to it.
>
> https://github.com/matthewwall/weewx-owfs/issues/3
>
> On 23/05/2020, Gazza <[email protected]> wrote:
>>
>> Tried that change and it crashed with a different set of errors.
>>
>>
>> Gaz
>>
>>
>>
>> --
>> 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/ec0c7d16-8d7b-4c0b-8285-982a91157a4b%40googlegroups.com.
>>
>
>
> --
>
>
> Cheers
>  Glenn
>
> rorpi - read only raspberry pi & various weewx addons
> https://github.com/glennmckechnie
>


-- 


Cheers
 Glenn

rorpi - read only raspberry pi & various weewx addons
https://github.com/glennmckechnie

-- 
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/CAAraAziKJS-vGJtx6hEDnSTskhjHDfuXkafiu4AahfwGY%2BpGfQ%40mail.gmail.com.

Reply via email to