Installing skin

117 views
Skip to first unread message

Michael Serowik

unread,
Dec 31, 2024, 5:32:06 PM12/31/24
to weewx-user
Happy New Year.

Here is my current setup

weewx 5.0.1
debian 12.8
Davis Vantage Pro 2 Weather Station.


I am trying to install teh belchertown skin and when I issus the following command sudo wee_extension --install weewx-belchertown-release-1.3.1.tar.gz   I get the following error listed below

weewx@wyse-weewx:~$ sudo wee_extension --install weewx-belchertown-release-1.3.1.tar.gz
sudo: wee_extension: command not found

but when I issue this command 


weewx@wyse-weewx:~$ weectl extension install weewx-belchertown-release.1.3.1.tar.gz
Using configuration file /etc/weewx/weewx.conf
Install extension 'weewx-belchertown-release.1.3.1.tar.gz' (y/n)? y
Extracting from tar archive weewx-belchertown-release.1.3.1.tar.gz
Saving installer file to /etc/weewx/bin/user/installer/Belchertown
Saved copy of configuration as /etc/weewx/weewx.conf.20241231165941
Finished installing extension Belchertown from weewx-belchertown-release.1.3.1.tar.gz

so i want to make sure that is the correct command or is there something wrong on my end

Thanks
Mike

Tom Keffer

unread,
Dec 31, 2024, 6:29:31 PM12/31/24
to weewx...@googlegroups.com
It's all in the Upgrade Guide.

--
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 visit https://groups.google.com/d/msgid/weewx-user/9a27b7f7-3a44-4058-bf7e-3d0c3fe8932fn%40googlegroups.com.

vince

unread,
Dec 31, 2024, 7:34:48 PM12/31/24
to weewx-user
Tom - procedural question for you.   Given that v5 runs as user 'weewx' for packaged installations, and since that user typically is set to nologin, should there be a note someplace saying that if folks want to run weectl as their personal username (whatever that is) they need to add themselves to group weewx ???

There is some stuff re: usermod buried in the package build spec file for RH and postinst for Debian but I can't find mention in the wiki nor faq, although as you've mentioned we are probably long past 'peak docs' at this point.

pip user here, so I haven't done much fiddling with package installs and the run weewx as user weewx nuances at all

Auchtermuchty Weather

unread,
Jan 1, 2025, 8:42:03 AM1/1/25
to weewx-user
I've had no problems with the v5 program weectl, though I sudo it. 

I don't log in as weewx, indeed it was setup by WeeWx as nologin:

weewx:x:102:110::/var/lib/weewx:/usr/sbin/nologin



vince

unread,
Jan 1, 2025, 4:47:25 PM1/1/25
to weewx-user
Just to answer my own question experimentally and for future me via the search engine, I built a quick vagrant deb12 vm to test the package installer and if sudo was/wasn't needed thereafter.
  • After installation which runs as user 'vagrant', all the content in /etc/weewx are user=weewx group=weewx and the installer indeed added group 'weewx' to the groups the user that installed the dpkg (via sudo) had associated with its account.
  • I then tried to edit a file under that skin which worked fine via the account being in group weewx.
  • Uninstalling the skin also worked fine.
After this everything under /etc/weewx was still weewx:weewx except the weewx.conf and backup files and the /etc/weewx/bin/installer directory created by the extension installer, which were vagrant:weewx since that was the user that ran weectl.

Conclusion is that once you install weewx, you do 'not' need to use sudo to add/delete/edit skins and extensions.

(Thanks Matthew - awesome job battling that for sure !)
Reply all
Reply to author
Forward
0 new messages