On Monday, 14 March 2022 at 11:40:50 UTC+10 [email protected] wrote: > Well, i gave up and reinstalled v 4.0.0 and its working, I think 4.7.0 has > issues > For one, no matter what you set WEEWX_ROOT to it always installs in > /home/weewx > I deleted everything and unpacked the tar file, edited weewx.conf and ran > setup.py build and setup.py install > and weewx gets installed under /home - every time. I tried it several times >
Hmmm, not sure I agree, 4.7.0 installs fine for me in a directory other than under /home, output below refers. If you have a read of the setup.py install instructions <http://weewx.com/docs/setup.htm> you will find that WEEWX_ROOT has no control over where WeeWX is installed, the home setting in setup.cfg controls where WeeWX is installed. WEEWX_ROOT controls where WeeWX stores/looks for various files/directories when WeeWX is run, WEEWX_ROOT is set automatically by the installer during install. Of course if you have any issues with v4.7.0 please provide details so the issue can be identified and fixed. Gsary gary@bullseye31:~$ wget -P /var/tmp/ https://weewx.com/downloads/weewx-4.7.0.tar.gz --2022-03-14 12:39:16-- https://weewx.com/downloads/weewx-4.7.0.tar.gz Resolving weewx.com (weewx.com)... 34.218.218.142 Connecting to weewx.com (weewx.com)|34.218.218.142|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 1839625 (1.8M) [application/octet-stream] Saving to: ‘/var/tmp/weewx-4.7.0.tar.gz’ weewx-4.7.0.tar.gz 100%[==========================================================>] 1.75M 1.57MB/s in 1.1s 2022-03-14 12:39:18 (1.57 MB/s) - ‘/var/tmp/weewx-4.7.0.tar.gz’ saved [1839625/1839625] gary@bullseye31:~$ cd /var/tmp gary@bullseye31:/var/tmp$ tar xvfz weewx-4.7.0.tar.gz weewx-4.7.0/ weewx-4.7.0/LICENSE.txt weewx-4.7.0/PKG-INFO weewx-4.7.0/README weewx-4.7.0/README.md Removed lines for brevity weewx-4.7.0/util/udev/rules.d/wmr300.rules weewx-4.7.0/util/udev/rules.d/ws28xx.rules weewx-4.7.0/weewx.conf gary@bullseye31:/var/tmp$ cd weewx-4.7.0 gary@bullseye31:/var/tmp/weewx-4.7.0$ nano setup.cfg gary@bullseye31:/var/tmp/weewx-4.7.0$ cat setup.cfg # Set 'home' to the directory where weewx should be installed. If the # directory does not exist, the installer will try to create it. # # linux: /home/weewx # macos: /Users/Shared/weewx # windows: c:\Users\weewx [install] home = /fred/dagg prefix = exec-prefix = install_lib = %(home)s/bin install_scripts = %(home)s/bin gary@bullseye31:/var/tmp/weewx-4.7.0$ python3 ./setup.py build running build running build_py running build_scripts gary@bullseye31:/var/tmp/weewx-4.7.0$ sudo python3 ./setup.py install running install running build running build_py running build_scripts running install_lib creating /fred creating /fred/dagg creating /fred/dagg/bin creating /fred/dagg/bin/weecfg copying build/lib/weecfg/__init__.py -> /fred/dagg/bin/weecfg Lines deleted for brevity running install_egg_info Writing /fred/dagg/bin/weewx-4.7.0.egg-info Enter a brief description of the station, such as its location. For example: Santa's Workshop, North Pole description [My Little Town, Oregon]: Narangba Test Specify altitude, with units 'foot' or 'meter'. For example: 35, foot 12, meter altitude [700, foot]: 46, meter Specify latitude in decimal degrees, negative for south. latitude [0.00]: -25 Specify longitude in decimal degrees, negative for west. longitude [0.00]: 150 You can register your station on weewx.com, where it will be included in a map. You will need a unique URL to identify your station (such as a website, or WeatherUnderground link). Include station in the station registry (y/n)? [n]: Indicate the preferred units for display: ['us', 'metric', 'metricwx'] unit system [us]: Installed drivers include: 0) ? (weewx.drivers.acurite) No module named 'usb' 1) ? (weewx.drivers.cc3000) No module named 'serial' 2) ? (weewx.drivers.fousb) No module named 'usb' 3) Simulator (weewx.drivers.simulator) 4) ? (weewx.drivers.te923) No module named 'usb' 5) ? (weewx.drivers.ultimeter) No module named 'serial' 6) Vantage (weewx.drivers.vantage) 7) ? (weewx.drivers.wmr100) No module named 'usb' 8) ? (weewx.drivers.wmr300) No module named 'usb' 9) ? (weewx.drivers.wmr9x8) No module named 'serial' 10) WS1 (weewx.drivers.ws1) 11) WS23xx (weewx.drivers.ws23xx) 12) ? (weewx.drivers.ws28xx) No module named 'usb' choose a driver [3]: gary@bullseye31:/var/tmp/weewx-4.7.0$ cd /fred/dagg gary@bullseye31:/fred/dagg$ ls -ail total 104 3276802 drwxr-xr-x 7 root root 4096 Mar 14 12:56 . 3276801 drwxr-xr-x 3 root root 4096 Mar 14 12:56 .. 3276803 drwxr-xr-x 11 root root 4096 Mar 14 12:56 bin 3276979 drwxr-xr-x 6 root root 4096 Mar 14 12:56 docs 3277045 drwxr-xr-x 8 root root 4096 Mar 14 12:56 examples 3276976 -rw-r--r-- 1 root root 32472 Apr 15 2020 LICENSE.txt 3276977 -rw-r--r-- 1 root root 3325 Mar 6 2021 README.md 3277102 drwxr-xr-x 8 root root 4096 Mar 14 12:56 skins 3277224 drwxr-xr-x 17 root root 4096 Mar 14 12:56 util 3277293 -rw-r--r-- 1 root root 19444 Mar 14 12:56 weewx.conf 3276978 -rw-r--r-- 1 root root 18389 Mar 14 12:56 weewx.conf.4.7.0 gary@bullseye31:/fred/dagg$ sudo ./bin/weewxd LOOP: 2022-03-14 12:57:27 AEST (1647226647) 'altimeter': '31.27158957718927', 'appTemp': '28.46010918752483', 'barometer': '31.099999998967093', 'cloudbase': '1395.2421867040312', 'consBatteryVoltage': '11.640400158761016', 'dateTime': '1647226647', 'dewpoint': '27.203560993945757', 'ET': 'None', 'heatindex': '32.67858297022247', 'heatingVoltage': '12.0', 'humidex': '32.67858297022247', 'inDewpoint': '31.079533828013187', 'inHumidity': '29.999999958683617', 'inTemp': '63.00000002065819', 'inTempBatteryStatus': '0', 'maxSolarRad': '979.3952113307234', 'outHumidity': '79.99999996901272', 'outTemp': '32.67858297022247', 'outTempBatteryStatus': '0', 'pressure': '31.099999998967093', 'radiation': '938.5032176221754', 'rain': '0', 'rainBatteryStatus': '0', 'rainRate': '0.0', 'referenceVoltage': '12.0', 'rxCheckPercent': '35.50980993113374', 'supplyVoltage': '12.68098239095047', 'txBatteryStatus': '0', 'usUnits': '1', 'UV': '13.139045046710455', 'windBatteryStatus': '0', 'windchill': '32.67858297022247', 'windDir': '359.9999998140763', 'windGust': '6.197456769996279e-09', 'windGustDir': '359.9999998140763', 'windrun': 'None', 'windSpeed': '5.164547900449179e-09' LOOP: 2022-03-14 12:57:30 AEST (1647226650) 'altimeter': '31.27158956888873', 'appTemp': '28.45807365032865', 'barometer': '31.099999990703814', 'cloudbase': '1395.2317165874988', 'consBatteryVoltage': '11.64816989866082', 'dateTime': '1647226650', 'dewpoint': '27.20178958368346', 'ET': 'None', 'heatindex': '32.67676549144743', 'heatingVoltage': '12.0', 'humidex': '32.67676549144743', 'inDewpoint': '31.07953369929752', 'inHumidity': '29.999999628152565', 'inTemp': '63.00000018592372', 'inTempBatteryStatus': '0', 'maxSolarRad': '979.339588473622', 'outHumidity': '79.99999972111442', 'outTemp': '32.67676549144743', 'outTempBatteryStatus': '0', 'pressure': '31.099999990703814', 'radiation': '938.4333162871903', 'rain': '0', 'rainBatteryStatus': '0', 'rainRate': '0.0', 'referenceVoltage': '11.5082527343366', 'rxCheckPercent': '29.73396133885435', 'supplyVoltage': '12.008816825598341', 'txBatteryStatus': '0', 'usUnits': '1', 'UV': '13.138066428020664', 'windBatteryStatus': '0', 'windchill': '32.67676549144743', 'windDir': '359.9999983266865', 'windGust': '5.577711537085861e-08', 'windGustDir': '359.9999983266865', 'windrun': 'None', 'windSpeed': '4.648092932768577e-08' ^Z [2]+ Stopped sudo ./bin/weewxd gary@bullseye31:/fred/dagg$ ls -ail /home total 12 1310721 drwxr-xr-x 3 root root 4096 Mar 14 12:54 . 2 drwxr-xr-x 19 root root 4096 Mar 14 12:56 .. 1310722 drwxr-xr-x 6 gary gary 4096 Mar 5 20:59 gary gary@bullseye31:/fred/dagg$ -- 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/43eb7de6-93d1-4071-b7dd-515b0639623fn%40googlegroups.com.
