There was/is no Station Type described in the config file. I found it
interesting when going through the install the weewx.conf file did not
launch so that I could input that information.
I'll edit the information in the weewx.conf file and see what happens -

Thanks


Michael H Grossie
[email protected]


On Sat, Jul 11, 2020 at 4:56 PM Tom Keffer <[email protected]> wrote:

> Actually, it looks like just the opposite: you may or may not have an
> appropriate block in weewx.conf, but you definitely have not specified a
> station type for option 'station'. Use utility wee_config to fix:
>
> *cd /home/weewx*
> *sudo python3 ./bin/wee_config --reconfigure*
>
> As for why it is running python 2, it will run whatever the "shebang" line
> on weewxd specifies. This is the very first line of the file. I'm betting
> that you ran setup.py without specifying a version of Python, so it went
> with the default on your system, python 2.
>
> To fix, either follow vince's suggestion and explicitly give the version
> of python:
>
> *sudo python3 ./bin/weewxd*
>
> Or, alternatively, you can start all over and reinstall, but this time
> explicitly specify the version of python you want to use:
>
> *sudo python3 ./setup.py install*
>
> setup.py will install a shebang line reflecting whatever you used to
> invoke it. In this case, python 3.
>
> -tk
>
> On Sat, Jul 11, 2020 at 1:53 PM vince <[email protected]> wrote:
>
>> On Saturday, July 11, 2020 at 12:49:15 PM UTC-7, Michael Grossie wrote:
>>>
>>> Raspbian Stretch
>>> Python v2.7, v3.5, v3.8.3
>>> Default (for root) v3.8.3
>>> Raspberry Pi  2 Model B
>>> WeeWX v4.1.1
>>>
>>>
>>>
>> Weewx doesn't currently care which python you use, as long as you have
>> that python's prerequisites installed.  You can install with python2/pip or
>> python3/pip3 either way as long as you're consistent.
>>
>> Tom usually gives different instructions, but I've found here that
>> explicitly calling the python I want and the pip I want makes things more
>> known good.  So for me here I'd do "pip3 install whatever" and "python3
>> setup.py build ; python3 setup.py install" rather than expecting weewx to
>> figure out which python I want to use.
>>
>> That said, the error message looks to me like you specified your desired
>> Station type, but have no block in weewx.conf defining that kind of station
>> and how it works.   Check that first before messing around with any python
>> stuff.  Change one thing at a time so you don't lose track of what you
>> changed.
>>
>> You didn't mention what kind of station you have, so I can't help much
>> more there.  Usual 'how to report a problem' stuff applies.
>>
>> --
>> 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/f127e438-65fd-41d6-a635-cc7e4565e5f7o%40googlegroups.com
>> <https://groups.google.com/d/msgid/weewx-user/f127e438-65fd-41d6-a635-cc7e4565e5f7o%40googlegroups.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/nDTCR1aXMYY/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/weewx-user/CAPq0zEBQGjqwpgriqM1t7XrEe4crzhBQprVY4aRHkuq%3DAJ6W3w%40mail.gmail.com
> <https://groups.google.com/d/msgid/weewx-user/CAPq0zEBQGjqwpgriqM1t7XrEe4crzhBQprVY4aRHkuq%3DAJ6W3w%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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/CAJBcQpWTQn8-X8ZuvjDLq3gswfBapvBqT12kVx6ycsZNjTfrRg%40mail.gmail.com.

Reply via email to