No worries, I already forked it on my GitHub account and started working on
it. Will send the link once it done and tested

On Sun, Jul 24, 2022, 9:05 AM Jan Bennett <jancbenn...@gmail.com> wrote:

> I am not familiar with how to do all of that just yet but I will
> definitely start looking into it!
>
>
>
> On Sat, Jul 23, 2022 at 3:55 PM Doug Jenkins <d...@dougjenkins.com> wrote:
>
>> To add to this thread Jan, could you fork this repo and send a link? I am
>> starting some work on a few enhancements to the wee_extensions and I can
>> create the proper packaging that weewx expects so that future users of the
>> driver can install it properly.
>>
>> I would fork the repo, but I do not have a BME280 sensor to properly test
>> the driver.
>>
>> If it all works, you can send a pull request to the original author and
>> have it merged.
>>
>> DDJ
>>
>> On Sat, Jul 23, 2022 at 5:51 PM Tom Keffer <tkef...@gmail.com> wrote:
>>
>>> Something is off. Could you send me the copy of byows_rpi.py you are
>>> using?
>>>
>>>
>>> On Sat, Jul 23, 2022 at 2:33 PM Jan Bennett <jancbenn...@gmail.com>
>>> wrote:
>>>
>>>> Thank you for your time in responding.
>>>>
>>>> It is correct that byows_rpi extension
>>>> <https://github.com/jardiamj/BYOWS_RPi> is mostly just a python file
>>>> (byows_rpi.py) saved to /usr/share/weewx/user/
>>>>
>>>> I have followed the directions at the git repository and have verified
>>>> with Change Driver <https://github.com/weewx/weewx/wiki/Change-driver>
>>>> that I've done the appropriate things to weewx.conf as well.
>>>>
>>>> When I run either of the commands you listed I receive the same error
>>>> as before:
>>>>
>>>> class ByowsRpi(weewx.drivers.AbstractDevice)
>>>> NameError: name 'weewx' is not defined
>>>>
>>>>
>>>>
>>>> On Saturday, July 23, 2022 at 9:02:42 AM UTC-6 tke...@gmail.com wrote:
>>>>
>>>>> 1, It looks like the byows_pi extension does not use the extension
>>>>> installer, so weewx has no way of knowing of its existence. This is why it
>>>>> doesn't show up in the list of available drivers.
>>>>>
>>>>> 2. As for running byows_pi directly, you have a slight problem with
>>>>> your paths. Try either this
>>>>>
>>>>> cd /usr/share/weewx
>>>>> python user/byows_rpi.py
>>>>>
>>>>>
>>>>> or this
>>>>>
>>>>> cd /usr/share/weewx
>>>>> python -m user.byows_rpi
>>>>>
>>>>>
>>>>> -tk
>>>>>
>>>>> On Sat, Jul 23, 2022 at 6:12 AM Jan Bennett <jancb...@gmail.com>
>>>>> wrote:
>>>>>
>>>>>> I should also note that when I 'sudo wee_config --reconfigure
>>>>>> --driver=user.byows_rpi --no-prompt' I see the following:
>>>>>>
>>>>>> Using configuration file /home/weewx/weewx.conf
>>>>>> Driver user.byows_rpi  failed to load: name 'weewx' is not defined
>>>>>>
>>>>>> On Saturday, July 23, 2022 at 7:07:55 AM UTC-6 Jan Bennett wrote:
>>>>>>
>>>>>>> Hey all -
>>>>>>>
>>>>>>> I am trying to install the driver for the Build Your Own Weather
>>>>>>> Station using Raspberry pi (byows_rpi.py)
>>>>>>>
>>>>>>> I have updated weewx-config to include BYOWS. I also have the
>>>>>>> interceptor driver installed.
>>>>>>>
>>>>>>> However, I cannot seem to get the driver to show up under the
>>>>>>> drivers list when I try 'wee_config --list-drivers'.  I show 
>>>>>>> byows_rpi.py
>>>>>>> under /usr/share/weewx/user/
>>>>>>>
>>>>>>> I have tried 'sudo wee_config --reconfigure --driver=user.byows_rpi
>>>>>>> --no-promt' to no avail.
>>>>>>>
>>>>>>> I feel like I've missed a step somewhere about how to actually get
>>>>>>> the system to recognize the driver.
>>>>>>>
>>>>>>> When I try to run the byows_rpi.py via command line from within the
>>>>>>> /usr/share/weewx/user/ folder: 'python3 byows_rpi.py' I see the 
>>>>>>> following
>>>>>>> error:
>>>>>>>
>>>>>>> class ByowsRpi(weewx.drivers.AbstractDevice)
>>>>>>> NameError: name 'weewx' is not defined
>>>>>>>
>>>>>>> Any guidance would be greatly appreciated!
>>>>>>>
>>>>>> --
>>>>>> 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+...@googlegroups.com.
>>>>>> To view this discussion on the web visit
>>>>>> https://groups.google.com/d/msgid/weewx-user/074ed02d-872f-4384-82bf-748449e13ef5n%40googlegroups.com
>>>>>> <https://groups.google.com/d/msgid/weewx-user/074ed02d-872f-4384-82bf-748449e13ef5n%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>>>> .
>>>>>>
>>>>> --
>>>> 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.
>>>> To view this discussion on the web visit
>>>> https://groups.google.com/d/msgid/weewx-user/c207e67c-2fb6-4a4c-812d-867387566476n%40googlegroups.com
>>>> <https://groups.google.com/d/msgid/weewx-user/c207e67c-2fb6-4a4c-812d-867387566476n%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>> .
>>>>
>>> --
>>> 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.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/weewx-user/CAPq0zED6%3DO2-mjrfCdB9N%3DkwNoHdoh429f9aeDtw_4KFSVSFMw%40mail.gmail.com
>>> <https://groups.google.com/d/msgid/weewx-user/CAPq0zED6%3DO2-mjrfCdB9N%3DkwNoHdoh429f9aeDtw_4KFSVSFMw%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>> --
>> 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/wtQ92_3SGe8/unsubscribe.
>> To unsubscribe from this group and all its topics, send an email to
>> weewx-user+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/weewx-user/CACC0i0yWnpmvYB22YXdrVgzjQgZfkVdv9Nz%2BZD661KzfXkgn_w%40mail.gmail.com
>> <https://groups.google.com/d/msgid/weewx-user/CACC0i0yWnpmvYB22YXdrVgzjQgZfkVdv9Nz%2BZD661KzfXkgn_w%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>>
> --
> 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.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/weewx-user/CAJiLD_AJURCS_TKCNFxF17_NAbGLfnrN7kGyr-9fsMO7_kVU5A%40mail.gmail.com
> <https://groups.google.com/d/msgid/weewx-user/CAJiLD_AJURCS_TKCNFxF17_NAbGLfnrN7kGyr-9fsMO7_kVU5A%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/CACC0i0wVqs%2BmQ8v06%2BbfO%2BFyy5MURrq5Lk8DG-XMe79HNjtqwg%40mail.gmail.com.

Reply via email to