I have a MQTT broker setup on a dedicated RPi and another dedicated RPi 
running Weewx. The MQTT broker to client is working using manual testing. 
When I include the MQTT settings in Weewx.conf'
* [[MQTT]]*
*        server_url = 
mqtt://vantagepro:[email protected]:1833/*
*        topic = weather*
*        unit_system = METRIC*
*        binding = archive, loop*
*        aggregation = aggregate*

and then run wee_reports I get a permissions error on two of the 
Belchertown files

*Traceback (most recent call last):*
*  File "/usr/share/weewx/weewx/reportengine.py", line 196, in run*
*    obj.start()*
*  File "/usr/share/weewx/weewx/reportengine.py", line 281, in start*
*    self.run()*
*  File "/usr/share/weewx/weewx/reportengine.py", line 429, in run*
*    ncopy += weeutil.weeutil.deep_copy_path(path, html_dest_dir)*
*  File "/usr/share/weewx/weeutil/weeutil.py", line 1440, in deep_copy_path*
*    shutil.copy(path, d)*
*  File "/usr/lib/python3.7/shutil.py", line 245, in copy*
*    copyfile(src, dst, follow_symlinks=follow_symlinks)*
*  File "/usr/lib/python3.7/shutil.py", line 121, in copyfile*
*    with open(dst, 'wb') as fdst:*
*PermissionError: [Errno 13] Permission denied: 
'/var/www/html/belchertown/favicon.ico'*
*Traceback (most recent call last):*
*  File "/usr/share/weewx/weewx/reportengine.py", line 196, in run*
*    obj.start()*
*  File "/usr/share/weewx/weewx/reportengine.py", line 281, in start*
*    self.run()*
*  File "/usr/share/weewx/user/belchertown.py", line 1857, in run*
*    with open(json_filename, mode='w') as jf:*
*PermissionError: [Errno 13] Permission denied: 
'/var/www/html/belchertown/json/homepage.json'*
*vantagepro@RPi-weather:/etc/weewx $*

When I comment out the [[MQTT]] section in weewx.conf and re run 
wee_reports the report generation runs with no exceptions.

Has anyone had such an issue or able to make any suggestions for 
correction, please
Duncan

-- 
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/e3f5c8c3-5de4-40f3-af0b-c75d63546f5fn%40googlegroups.com.

Reply via email to