Exactly. That's just path dynamics. I don't think we want to turn weewx.conf into a tutorial on paths.
On Sat, Jan 6, 2024 at 5:50 AM 'Cameron D' via weewx-user < [email protected]> wrote: > The current docs for V4.10 as well as 5.0 say that "a *relative *path" > for HTML_ROOT or SKIN_ROOT is below WEEWX_ROOT. > If you define either as an *absolute* path (i.e. beginning with a "/"), > then WEEWX_ROOT is ignored. > > On Saturday 6 January 2024 at 6:53:06 pm UTC+10 Michael Waldor wrote: > >> Maybe best is to illustrate my setup with the Linux commands to create it >> (in reality I didi it somehow different because differen hosts are >> involved): >> WEEWX_ROOT=~/weewx-debug >> mkdir $WEEWX_ROOT >> cd $WEEWX_ROOT >> (cd /; tar zcvf - usr/share/weewx)|tar zxvf - >> (cd /; tar zcvf - etc/weewx)|tar zxvf - >> mkdir -p var/www/html/weewx >> mkdir -p var/lib/weewx >> cp /var/lib/weewx/*.sdb var/lib/weewx >> >> Within etc/weewx/weewx.conf I modified >> WEEWX_ROOT = /home/MyHome/weewx-debug >> ... >> SQLITE_ROOT = /home/MyHome/weewx-debug/var/lib/weewx >> >> I enabled debug = 1 >> I did NOT change SKIN_ROOT and HTML_ROOT since the (maybe outdated) >> comments from weewx.conf say >> >> # Where the skins reside, relative to WEEWX_ROOT >> SKIN_ROOT = /etc/weewx/skins >> >> # Where the generated reports should go, relative to WEEWX_ROOT >> HTML_ROOT = /var/www/html/weewx >> >> Maybe simply those comments are misleading? For my debugging I simply >> created symbolic links for skins and www. Probabely I should have changed >> SKIN_ROOT and HTML_ROOT instead? Just tested it right now - and YES it >> worked. Thus only the comments are wrong. Setting >> SKIN_ROOT = /home/MyHome/weewx-debug/etc/weewx/skins >> HTML_ROOT = /home/MyHome/weewx-debug/var/www/html/weewx >> works fine without additional symbolic links! >> >> From my perspective this is better as compared to the (hidden) use of >> WEEWX_ROOT. Thus maybe one only should correct the misleading comments >> within default weewx.conf? >> >> Regards, Michael >> >> Tom Hogland schrieb am Samstag, 6. Januar 2024 um 02:35:53 UTC+1: >> >>> Michael - >>> >>> WEEWX_ROOT is the root folder under which all the other folders live >>> (such as HTML_ROOT or SKIN_ROOT). My WEEWX_ROOT is /, SKIN_ROOT is >>> /etc/weewx/skins and HTML_ROOT is /var/www/html/weewx. Your skins would be >>> in WEEWX_ROOT/SKIN_ROOT and your weather files will generate into >>> WEEWX_ROOT/HTML_ROOT. >>> >>> What do you have SKIN_ROOT and HTML_ROOT set to? And do those folders >>> exist within the WEEWX_ROOT folder you created? >>> >>> Tom >>> >>> On Friday, January 5, 2024 at 2:56:29 PM UTC-9 Tom Keffer wrote: >>> >>>> Could you try again? I don't understand the point you are making. >>>> >>>> On Fri, Jan 5, 2024 at 7:59 AM 'Michael Waldor' via weewx-user < >>>> [email protected]> wrote: >>>> >>>>> Maybe my understanding of WEEWX_ROOT is wrong. But partly it worked >>>>> thus I assume it is not working everywhere. I did set WEEWX_ROOT within >>>>> weewx.conf onto some directory and copied a full weewx 4.6.2 installation >>>>> over there. But the following folders were not found >>>>> >>>>> WEEWX_ROOT/etc/weewx/skins >>>>> WEEWX_ROOT/var/www/html/weewx >>>>> >>>>> I could fix that by introducing proper links like e.g. >>>>> mkdir /etc/weewx >>>>> cd !$ >>>>> ln -s WEEWX_ROOT/etc/weewx/skin >>>>> cd /var >>>>> ln -s WEEWX_ROOT/var/www >>>>> >>>>> It's really a minor issue, but maybe it should be fixed sometimes. >>>>> >>>>> Regards, Michael >>>>> >>>>> -- >>>>> 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/d6931dc9-214c-4a75-b1ae-b2bd063b2ca5n%40googlegroups.com >>>>> <https://groups.google.com/d/msgid/weewx-user/d6931dc9-214c-4a75-b1ae-b2bd063b2ca5n%40googlegroups.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/487d9df0-4640-4b85-9715-005e172c42a9n%40googlegroups.com > <https://groups.google.com/d/msgid/weewx-user/487d9df0-4640-4b85-9715-005e172c42a9n%40googlegroups.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/CAPq0zECr7Dr-nYkoZavGGxgch0Lke3msh-a2pHwR7gPvMemw0w%40mail.gmail.com.
