I even created the directory and it still could not find it?!?!?
On Wednesday 11 September 2024 at 23:10:35 UTC+12 Monica Mulholland wrote:
> Hmm! found it ...but....
>
> weatherpi@weatherpi:~ $ sudo weectl extension install
> /usr/share/doc/weewx/examples/xstats
>
> Using configuration file /etc/weewx/weewx.conf
>
> Install extension '/usr/share/doc/weewx/examples/xstats' (y/n)? y
>
> Traceback (most recent call last):
>
> File "/usr/share/weewx/weectl.py", line 75, in <module>
>
> main()
>
> File "/usr/share/weewx/weectl.py", line 67, in main
>
> namespace.func(namespace)
>
> File "/usr/share/weewx/weectllib/__init__.py", line 90, in dispatch
>
> namespace.action_func(config_dict, namespace)
>
> File "/usr/share/weewx/weectllib/extension_cmd.py", line 116, in
> install_extension
>
> ext.install_extension(namespace.source, no_confirm=namespace.yes)
>
> File "/usr/share/weewx/weecfg/extension.py", line 132, in install_extension
>
> raise InstallError(f"Path {extension_path} does not exist.")
>
> weecfg.extension.InstallError: Path /usr/share/doc/weewx/examples/xstats
> does not exist.
>
> weatherpi@weatherpi:~ $
>
>
>
> On Wednesday 11 September 2024 at 21:21:49 UTC+12 Monica Mulholland wrote:
>
>> Thank you Gary, do you have a favorite charity? I would like to make a
>> donation to it for your constant helpfulness and kindness. You folks at
>> weewx are indeed one of a kind!
>>
>> On Wednesday 11 September 2024 at 20:54:41 UTC+12 gjr80 wrote:
>>
>>> Some comments below.
>>>
>>> Gary
>>>
>>> On Wednesday 11 September 2024 at 17:25:25 UTC+10 [email protected]
>>> wrote:
>>>
>>> Thanks Gary,
>>>
>>> sorry to bother you yet again with the same problem......having read
>>> back through our correspondence in 2019...(i can't believe I was clever
>>> enough to do this back then....I certainly didn't lean not much from
>>> it...coz I don't feel so clever now!) I think that the steps I need to
>>> follow to get back to there are to
>>> 1. install xstats.py in the correct place and
>>> 2. put the two files above (index.html.tmpl and alltime.html.tmpl) into
>>> the skins folder and all should work fine.....have I missed anything?
>>>
>>>
>>> That's about it, but you will also need to tell WeeWX to generate
>>> alltime.html, I alluded to this further down my 2019 post but did not
>>> give any specifics. All you need do is edit the skin config file for your
>>> Standard skin and add a couple of lines to the [CheetahGenerator]
>>> [[ToDate]] stanza. Where that file is will depend on how you installed
>>> WeeWX. You've found weewx.conf, have a look in the directory containing
>>> weewx.conf and you should find a skins/Standard directory, that is
>>> where skin.conf should be. Edit skin.conf and insert the highlighted
>>> lines as follows:
>>>
>>> [CheetahGenerator]
>>> ....
>>> [[ToDate]]
>>> ....
>>> [[[year]]]
>>> template = year.html.tmpl
>>>
>>> [[[alltime]]]
>>> template = alltime.html.tmpl
>>>
>>> Once you have installed xstats, created alltime.tmpl.html and modified
>>> skin.conf WeeWX will automatically start generating alltime.tmpl - no
>>> need for a restart.
>>>
>>>
>>>
>>> I should be able to find xstats.py in
>>> /user/share/doc/weewx/examples.....but as you will see from the attached
>>> screenshot.....that folder does not exist.....what am I missing?
>>>
>>>
>>> Another v5 change I'm afraid. Again the location of the examples (and
>>> xstats) depends on how you installed WeeWX. Have a look in the directory
>>> containing weewx.conf, you should see a directory named examples; that
>>> is where you should find the xstats directory. Read the readme.txt, it
>>> has been updated for v5, and (again) I expect you will want to follow the
>>> manual install instructions.
>>>
>>>
>>
--
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/bf9bbac9-fe90-4e55-93e9-a32be2d07f8dn%40googlegroups.com.