Or if you have it via cron, put it in weewx's crontab, not user 'pi'

On Saturday, February 10, 2024 at 6:12:12 PM UTC-8 Graham Eddy wrote:

> why are you writing into files outside weewx’s area? weewx user is 
> unlikely to have perms to do that
> *⊣GE⊢*
>
> On 11 Feb 2024, at 1:59 am, Ton Karsten <moth...@gmail.com> wrote:
>
> feb 10 15:10:15 raspberrypi weewxd[4548]: ERROR weewx.reportengine:       
>   ****    File "/usr/lib/python3.11/shutil.py", line 258, in copyfile
> feb 10 15:10:15 raspberrypi weewxd[4548]: ERROR weewx.reportengine:       
>   ****      with open(dst, 'wb') as fdst:
> feb 10 15:10:15 raspberrypi weewxd[4548]: ERROR weewx.reportengine:       
>   ****           ^^^^^^^^^^^^^^^
>
> feb 10 15:10:15 raspberrypi weewxd[4548]: ERROR weewx.reportengine:       
>   ****  PermissionError: [Errno 13] Toegang geweigerd: 
> '/var/www/html/favicon.ico’
>
> ...
>
> feb 10 15:10:16 raspberrypi weewxd[4548]: ERROR weewx.reportengine:       
>   ****    File "/etc/weewx/bin/user/belchertown.py", line 2817, in run
> feb 10 15:10:16 raspberrypi weewxd[4548]: ERROR weewx.reportengine:       
>   ****      with open(json_filename, mode="w") as jf:
> feb 10 15:10:16 raspberrypi weewxd[4548]: ERROR weewx.reportengine:       
>   ****           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> feb 10 15:10:16 raspberrypi weewxd[4548]: ERROR weewx.reportengine:       
>   ****  FileNotFoundError: [Errno 2] Bestand of map bestaat niet: 
> '/var/www/html/json/homepage.json'
>
>

-- 
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/7bba91cb-6f49-446a-bf7b-04583c288d45n%40googlegroups.com.

Reply via email to