I have used this

sudo usermod -aG dialout weewx
sudo systemctl restart weewx

Weewx is running but there is another authorization problem


Feb 16 16:10:27 Wetter-Raspi4 weewxd[440995]: DEBUG user.rainrate: 
new_loop(1708096227): Added/updated pkt[rainRate] of 0.000000
Feb 16 16:10:27 Wetter-Raspi4 weewxd[440995]: DEBUG user.sunduration: 
Calculated LOOP sunshine_time = 2.000000, based on radiation = 90.000000, 
and threshold = 144.382899
Feb 16 16:10:28 Wetter-Raspi4 weewxd[440995]: DEBUG weewx.manager: Daily 
summary version is 4.0
Feb 16 16:10:28 Wetter-Raspi4 weewxd[440995]: ERROR weewx.reportengine: 
Caught unrecoverable exception in generator 
'user.belchertown.HighchartsJsonGenerator'
Feb 16 16:10:28 Wetter-Raspi4 weewxd[440995]: ERROR weewx.reportengine:     
    ****  [Errno 13] Keine Berechtigung: '/var/www/html/weewx/json/24h.json'
Feb 16 16:10:28 Wetter-Raspi4 weewxd[440995]: ERROR weewx.reportengine:     
    ****  Traceback (most recent call last):
Feb 16 16:10:28 Wetter-Raspi4 weewxd[440995]: ERROR weewx.reportengine:     
    ****    File "/usr/share/weewx/weewx/reportengine.py", line 220, in run
Feb 16 16:10:28 Wetter-Raspi4 weewxd[440995]: ERROR weewx.reportengine:     
    ****      obj.start()
Feb 16 16:10:28 Wetter-Raspi4 weewxd[440995]: ERROR weewx.reportengine:     
    ****    File "/usr/share/weewx/weewx/reportengine.py", line 409, in 
start
Feb 16 16:10:28 Wetter-Raspi4 weewxd[440995]: ERROR weewx.reportengine:     
    ****      self.run()
Feb 16 16:10:28 Wetter-Raspi4 weewxd[440995]: ERROR weewx.reportengine:     
    ****    File "/etc/weewx/bin/user/belchertown.py", line 2817, in run
Feb 16 16:10:28 Wetter-Raspi4 weewxd[440995]: Traceback (most recent call 
last):
Feb 16 16:10:28 Wetter-Raspi4 weewxd[440995]:   File 
"/usr/share/weewx/weewx/reportengine.py", line 220, in run
Feb 16 16:10:28 Wetter-Raspi4 weewxd[440995]:     obj.start()
Feb 16 16:10:28 Wetter-Raspi4 weewxd[440995]:   File 
"/usr/share/weewx/weewx/reportengine.py", line 409, in start
Feb 16 16:10:28 Wetter-Raspi4 weewxd[440995]:     self.run()
Feb 16 16:10:28 Wetter-Raspi4 weewxd[440995]:   File 
"/etc/weewx/bin/user/belchertown.py", line 2817, in run
Feb 16 16:10:28 Wetter-Raspi4 weewxd[440995]:     with open(json_filename, 
mode="w") as jf:
Feb 16 16:10:28 Wetter-Raspi4 weewxd[440995]: PermissionError: [Errno 13] 
Keine Berechtigung: '/var/www/html/weewx/json/24h.json'
Feb 16 16:10:28 Wetter-Raspi4 weewxd[440995]: ERROR weewx.reportengine:     
    ****      with open(json_filename, mode="w") as jf:
Feb 16 16:10:28 Wetter-Raspi4 weewxd[440995]: ERROR weewx.reportengine:     
    ****  PermissionError: [Errno 13] Keine Berechtigung: 
'/var/www/html/weewx/json/24h.json'
Feb 16 16:10:28 Wetter-Raspi4 weewxd[440995]: ERROR weewx.reportengine:     
    ****  Generator terminated


and
sudo wee_reports
sudo: wee_reports: Befehl nicht gefunden



matthew wall schrieb am Freitag, 16. Februar 2024 um 14:44:24 UTC+1:

> On Friday, February 16, 2024 at 7:57:08 AM UTC-5 geni08...@gmail.com 
> wrote:
>
> where can i see which user starts weewxd?
>
>
> if weewxd is running, do this:
>
> ps aux | grep weewxd
>
> the first word is the user running weewxd
>
> if weewxd is not running, then check the value for 'User' in the systemd 
> unit file
>
> # if you installed using DEB/RPM:
> grep User /usr/lib/systemd/system/weewx.service
>
> # if you installed using pip:
> grep User /etc/systemd/system/weewx.service
>
> m
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/08e0f5f5-1e00-4406-9c8a-da84a19e168dn%40googlegroups.com.

Reply via email to