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'
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