I'm new to WeeWX, and have a new PWS, a Logia 5 in 1 (LOWSB510PB).  I have 
been a Cumulus user with several previous modest (fine offset) weather 
stations.  I'm using a Raspberry Pi 3B running the 64-bit Lite 2022-04-04 
OS.  I'm comfortable with the Linux command line, and have written some 
Python.  I am interested in a Python-based solution.

I've been trying to follow...
https://weewx.com/docs/usersguide.htm
https://weewx.com/docs/setup.htm

I choose the setup.py with intentions of tinkering with the installation 
and at this point preferred everything being in one place.

I ran into some issues and I'd like to ask some questions - in a way that 
both serves me and perhaps has implications for susequent NOOBS.  (I have 
written quite a bit of documentation and would be happy to contribute to 
the project if I can.)

QUESTION:  What are the implications of choice between creating a user 
specifically for WeeWX, and using the default user "pi" on a Raspberry Pi?


QUESTION:  In the setup.cfg file, what are the implications of the "home" 
variable?  It was unclear to me if seeting it to "/home/pi/weewx-4.8.0" 
where I extracted the tar made sense but that is the root of the 
"install".  (That was the only change I made.)

The build and install seemed to run OK.  I didn't notice any issues (and I 
have the output).


QUESTION:  https://weewx.com/docs/setup.htm outlines; build, install, then 
run.  Is there some configurtion for the specific PWS required?

I tried running the daemon from the command line, first without, and then 
specifying the path to the config file.
$ sudo ./bin/weewxd /home/pi/weewx-4.8.0/weewx.conf
Traceback (most recent call last):
  File "/home/pi/weewx-4.8.0/./bin/weewxd", line 248, in <module>
    main()
  File "/home/pi/weewx-4.8.0/./bin/weewxd", line 147, in main
    engine = weewx.engine.StdEngine(config_dict)
  File "/home/pi/weewx-4.8.0/bin/weewx/engine.py", line 81, in __init__
    self.setupStation(config_dict)
  File "/home/pi/weewx-4.8.0/bin/weewx/engine.py", line 103, in setupStation
    driver = config_dict[station_type]['driver']
  File "/usr/lib/python3/dist-packages/configobj.py", line 554, in 
__getitem__
    val = dict.__getitem__(self, key)
KeyError: 'unspecified'

My best guess is that the build/install only partially 
configures weewx.conf.  I noticed this setting:
WEEWX_ROOT = /home/weewx
That doesn't seem to match what was coded in setup.cfg.  I looked through 
the web pages and couldn't spot anything I missed.

Oh, and this akso suggests to me a driver needs to be specified 
somewhere...?
$ sudo ./bin/wee_device
Using configuration file /home/pi/weewx-4.8.0/weewx.conf
Unable to determine driver: 'unspecified'


Thanks for reading ... As I mentioned, I do want to get WeeWX running, but 
I'm also motivated to make it easier for the next user,

Bob


I am a retired software engineer with a broad background including testing, 
customer support and technical documention (having worked on supercompters 
to embedded software).  I'll probably trying looking through the traceback 
because I'm interested in the code, but that's probably not helpful to 
NOOBs!  ;-)

-- 
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/a4d3af7f-ad13-4c09-9281-e5c250ac4dfen%40googlegroups.com.

Reply via email to