Perhaps the usage output of "weectl station create" will help:

% python3 -m weectl station create --help

usage: *weectl station create [--config=CONFIG-PATH] \*

*                             [--driver=DRIVER] \*

*                             [--location=LOCATION] \*

*                             [--altitude=ALTITUDE,{foot|meter}] \*

*                             [--latitude=LATITUDE] [--longitude=LONGITUDE]
\*

*                             [--register={y,n}
[--station-url=STATION_URL]] \*

*                             [--units={us,metricwx,metric}] \*

*                             [--skin-root=SKIN_ROOT] \*

*                             [--sqlite-root=SQLITE_ROOT] \*

*                             [--html-root=HTML_ROOT] \*

*                             [--docs-root=DOCS_ROOT] \*

*                             [--examples-root=EXAMPLES_ROOT] \*

*                             [--no-prompt]*


In what follows, *WEEWX_ROOT* is the directory that contains the

configuration file. For example, if "--config=/Users/tkeffer/weewx-

data/weewx.conf", then WEEWX_ROOT will be "/Users/tkeffer/weewx-data".


optional arguments:

  -h, --help            show this help message and exit

  --config CONFIG-PATH  Path to configuration file. It must not already
exist.

                        Default is "/Users/tkeffer/weewx-data/weewx.conf".

  --driver DRIVER       Driver to use. Default is "weewx.drivers.simulator".

  --location LOCATION   A description of the station. This will be used for

                        report titles. Default is "WeeWX".

  --altitude ALTITUDE,{foot|meter}

                        The station altitude in either feet or meters. For

                        example, "750,foot" or "320,meter". Default is "0,

                        foot".

  --latitude LATITUDE   The station latitude in decimal degrees. Default is

                        0.00.

  --longitude LONGITUDE

                        The station longitude in decimal degrees. Default is

                        0.00.

  --register {y,n}      Register this station in the weewx registry? Default

                        is "n" (do not register).

  --station-url STATION_URL

                        Unique URL to be used if registering the station.

                        Required if the station is to be registered.

  --units {us,metricwx,metric}

                        Set display units to us, metricwx, or metric.
Default

                        is "us".

  --skin-root SKIN_ROOT

                        Where the skins will be located, relatve to

                        WEEWX_ROOT.

  --sqlite-root SQLITE_ROOT

                        Set the location of the sqlite directory, relative
to

                        WEEWX_ROOT.

  --html-root HTML_ROOT

                        Where generated HTML and images will go, relative to

                        WEEWX_ROOT.

  --docs-root DOCS_ROOT

                        Where to put the documentation. Default is

                        "$WEEWX_ROOT/docs".

  --examples-root EXAMPLES_ROOT

                        Where to put the examples. Default is

                        "$WEEWX_ROOT/examples".

  --no-prompt           If set, do not prompt. Use default values.


On Sat, Dec 31, 2022 at 1:38 PM Greg Troxel <[email protected]> wrote:

> Tom Keffer <[email protected]> writes:
>
> > OK, now I get you.
> >
> > It may be tradition, but the trend has been towards avoiding root
> installs,
> > which by necessity require installation in user directories.
> >
> > In any case, if you want the more traditional approach, there's always an
> > apt install.
>
> Root vs not is about system prefix.   Installing to ~/weewx can still
> respect the hierarchy and not need privs.   pkgsrc actually can be
> bootstrapped without root to a prefix (that the user running it can
> write of course).
>
> my comment was really about pushing the config vs  db separation into
> weewx proper as a concept, and partly because the apt, pkgsrc, whatever
> packagers need to take the release and munge it into the various areas,
> so the more it's "pass args" and the less "patch" that's better.
>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-development" 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-development/CAPq0zEBVpOQHQiYC0swzE48DmW4ZkXYPQteFbkRW%3DNuCbMF%2BQA%40mail.gmail.com.

Reply via email to