info: zoli@zoli:~ $ groups zoli adm dialout cdrom sudo audio video plugdev games users input render netdev gpio i2c spi weewx
zoli@zoli:~ $ ps aux | grep weewxd zoli 1694 0.0 0.4 6088 1920 pts/0 S+ 10:52 0:00 grep --color=auto weewxd Juke DJvid a következőt írta (2024. december 12., csütörtök, 10:29:46 UTC+1): > Thanks. Can you help me how do this exactly? > > vince a következőt írta (2024. december 11., szerda, 18:38:16 UTC+1): > >> >> https://github.com/weewx/weewx/wiki/Understanding-permissions#more-details-about-which-groups-can-do-what >> >> You used a non-standard user to install weewx, so you need to add that >> user to the appropriate group(s) to be able to connect to the hardware. >> >> On Wednesday, December 11, 2024 at 5:52:33 AM UTC-8 Juke DJvid wrote: >> >>> *Thanks you all! Managed to install weewx in virtual environment.* >>> >>> I'am newbie for this but can learn it. I followed this turorial: >>> https://www.weewx.com/docs/5.1/quickstarts/pip/ >>> >>> >>> >>> >>> >>> >>> And came up 2 new question: >>> 1. installed RPI.bme280 >>> >>> source ~/weewx-venv/bin/activate >>> pip3 install RPI.bme280 gpiozero >>> >>> (weewx-venv) zoli@zoli:~ $ python3 bme280test.py (created a test file >>> from here: >>> https://github.com/rm-hull/bme280?tab=readme-ov-file#software-driver---example-usage >>> >>> ) >>> >>> 3d34e78e-fc6c-4d25-9a44-7f2fe9473986 >>> 2024-12-11 13:32:46.423764+00:00 >>> 22.982367674889975 >>> 1012.1501244098016 >>> 0.0 >>> compensated_reading(id=3d34e78e-fc6c-4d25-9a44-7f2fe9473986, >>> timestamp=2024-12-11 13:32:46.423764UTC, temp=22.982 °C, pressure=1012.15 >>> hPa, humidity=0.00 % rH) >>> >>> (weewx-venv) zoli@zoli:~ $ pip3 list >>> >>> Package Version >>> ---------- ------- >>> colorzero 2.0 >>> configobj 5.0.9 >>> CT3 3.4.0 >>> ephem 4.1.6 >>> gpiozero 2.0.1 >>> pillow 11.0.0 >>> pip 23.0.1 >>> PyMySQL 1.1.1 >>> pyserial 3.5 >>> pytz 2024.2 >>> pyusb 1.2.1 >>> RPi.bme280 0.2.4 >>> setuptools 66.1.1 >>> smbus2 0.5.0 >>> >>> >>> *BME280 works. Its OK!* >>> >>> then: >>> >>> installed: https://github.com/jardiamj/BYOWS_RPi >>> >>> source ~/weewx-venv/bin/activate >>> weectl extension install v0.51.zip >>> >>> sudo systemctl stop weewx >>> weectl station reconfigure >>> sudo systemctl start weewx >>> >>> Choose a driver. Installed drivers include: >>> 0) BYOWS (user.byows_rpi) >>> 1) AcuRite (weewx.drivers.acurite) >>> 2) CC3000 (weewx.drivers.cc3000) >>> 3) FineOffsetUSB (weewx.drivers.fousb) >>> 4) Simulator (weewx.drivers.simulator) >>> 5) TE923 (weewx.drivers.te923) >>> 6) Ultimeter (weewx.drivers.ultimeter) >>> 7) Vantage (weewx.drivers.vantage) >>> 8) WMR100 (weewx.drivers.wmr100) >>> 9) WMR300 (weewx.drivers.wmr300) >>> 10) WMR9x8 (weewx.drivers.wmr9x8) >>> 11) WS1 (weewx.drivers.ws1) >>> 12) WS23xx (weewx.drivers.ws23xx) >>> 13) WS28xx (weewx.drivers.ws28xx) >>> driver [4]: 0 >>> >>> *no error message* >>> >>> zoli@zoli:~ $ sudo systemctl status weewx >>> weewx.service - WeeWX weather system >>> Loaded: loaded (/etc/systemd/system/weewx.service; enabled; preset: >>> enabled) >>> Active: failed (Result: exit-code) since Wed 2024-12-11 14:47:16 >>> CET; 2min 41s ago >>> Duration: 2.375s >>> Docs: https://weewx.com/docs >>> Process: 541 ExecStart=/home/zoli/weewx-venv/bin/python3 >>> /home/zoli/weewx-venv/lib/python3.11/site-packages/weewxd.py >>> /home/zoli/weewx-data/weewx.conf (code=ex> >>> Main PID: 541 (code=exited, status=4) >>> CPU: 1.247s >>> >>> Dec 11 14:47:16 zoli weewxd[541]: CRITICAL weewx.engine: **** >>> File >>> "/home/zoli/weewx-venv/lib/python3.11/site-packages/gpiozero/pins/native.py", >>> >>> line 519, i> >>> Dec 11 14:47:16 zoli weewxd[541]: CRITICAL weewx.engine: **** >>> self.factory.fs.export(self._number) >>> Dec 11 14:47:16 zoli weewxd[541]: CRITICAL weewx.engine: **** >>> File >>> "/home/zoli/weewx-venv/lib/python3.11/site-packages/gpiozero/pins/native.py", >>> >>> line 251, i> >>> Dec 11 14:47:16 zoli weewxd[541]: CRITICAL weewx.engine: **** >>> with io.open(self.path('export'), 'wb') as f: >>> Dec 11 14:47:16 zoli weewxd[541]: CRITICAL weewx.engine: **** >>> OSError: [Errno 22] Invalid argument >>> Dec 11 14:47:16 zoli weewxd[541]: CRITICAL __main__: Unable to load >>> driver: [Errno 22] Invalid argument >>> Dec 11 14:47:16 zoli weewxd[541]: CRITICAL __main__: **** Exiting... >>> Dec 11 14:47:16 zoli systemd[1]: weewx.service: Main process exited, >>> code=exited, status=4/NOPERMISSION >>> Dec 11 14:47:16 zoli systemd[1]: weewx.service: Failed with result >>> 'exit-code'. >>> Dec 11 14:47:16 zoli systemd[1]: weewx.service: Consumed 1.247s CPU time. >>> >>> >>> >>> *Why error with NO PERMISSION?* >>> >>> >>> >>> >>> 2. With this method ( virtual environment and pip) installed any >>> webserver ( apache or lighttpd)? or I have to install one manually? the >>> weewx IP is : 404. >>> >>> But here is the query: >>> >>> (weewx-venv) zoli@zoli:~ $ netstat -tnlp | grep 80 >>> (Not all processes could be identified, non-owned process info >>> will not be shown, you would have to be root to see it all.) >>> tcp 0 0 0.0.0.0:80 <http://0.0.0.0/> 0.0.0.0:* >>> LISTEN - >>> tcp6 0 0 :::80 :::* >>> LISTEN - >>> >>> Looks like a webserver works, but the webpage not available. >>> vince a következőt írta (2024. december 10., kedd, 22:16:38 UTC+1): >>> >>>> [...update to my previous repy...] >>>> >>>> That should be "pip3 install RPI.bme280 gpiozero" of course... >>>> >>>> My python module list looks like: >>>> >>>> (weewx-data) pi@pi5:~ $ pip3 list >>>> Package Version >>>> ---------- ------- >>>> colorzero 2.0 >>>> configobj 5.0.9 >>>> CT3 3.4.0 >>>> ephem 4.1.6 >>>> gpiozero 2.0.1 >>>> pillow 11.0.0 >>>> pip 23.0.1 >>>> PyMySQL 1.1.1 >>>> pyserial 3.5 >>>> pytz 2024.2 >>>> pyusb 1.2.1 >>>> RPi.bme280 0.2.4 >>>> setuptools 66.1.1 >>>> smbus2 0.5.0 >>>> weewx 5.1.0 >>>> >>>> -- 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 visit https://groups.google.com/d/msgid/weewx-user/42dd7011-615c-4574-85fe-884421126acan%40googlegroups.com.
