Matthew,

Getting back to this task after the Summer, I now have the Weather34 skin 
working with a conventional wee_extension --install process. It works like 
a dream thanks to your changes in 3.9.2 to allow nested copying. There is 
just one little niggle which I trying to exclude. Once everything is setup, 
if the user restarts WeeWX for any reason, the copy_once process starts 
again and wipes out some settings. At the moment, I ask users to edit the 
skin.conf file after the first archive cycle, to comment out the copy_once 
line with a #.

I would like to find a more elegant solution to this to minimise the amount 
of editing for the user. Do you have any suggestions of what I could try?

You can see the current build at https://github.com/steepleian/WX-HWS

Many thanks,
Ian

On Thursday, July 4, 2019 at 2:16:43 PM UTC+1, mwall wrote:
>
>
>>> On 04 Jul 2019, at 08:56, steeple ian wrote:
>>>
>>> Matthew,
>>>
>>> Yes I did,
>>>
>>> This is from the syslog: -
>>>
>>> reportengine: Caught unrecoverable exception in generator 
>>> 'weewx.reportengine.CopyGenerator'
>>> Jul  4 13:40:44 DietPi weewx[7627]:         ****  [Errno 21] Is a 
>>> directory: 'w34pages'
>>> Jul  4 13:40:44 DietPi weewx[7627]:         ****  Traceback (most recent 
>>> call last):
>>> Jul  4 13:40:44 DietPi weewx[7627]:         ****    File 
>>> "/home/weewx/bin/weewx/reportengine.py", line 204, in run
>>> Jul  4 13:40:44 DietPi weewx[7627]:         ****      obj.start()
>>> Jul  4 13:40:44 DietPi weewx[7627]:         ****    File 
>>> "/home/weewx/bin/weewx/reportengine.py", line 300, in start
>>> Jul  4 13:40:44 DietPi weewx[7627]:         ****      self.run()
>>> Jul  4 13:40:44 DietPi weewx[7627]:         ****    File 
>>> "/home/weewx/bin/weewx/reportengine.py", line 460, in run
>>> Jul  4 13:40:44 DietPi weewx[7627]:         ****      shutil.copy(_file, 
>>> dest_dir)
>>> Jul  4 13:40:44 DietPi weewx[7627]:         ****    File 
>>> "/usr/lib/python2.7/shutil.py", line 119, in copy
>>> Jul  4 13:40:44 DietPi weewx[7627]:         ****      copyfile(src, dst)
>>> Jul  4 13:40:44 DietPi weewx[7627]:         ****    File 
>>> "/usr/lib/python2.7/shutil.py", line 82, in copyfile
>>> Jul  4 13:40:44 DietPi weewx[7627]:         ****      with open(src, 
>>> 'rb') as fsrc:
>>> Jul  4 13:40:44 DietPi weewx[7627]:         ****  IOError: [Errno 21] Is 
>>> a directory: 'w34pages'
>>> Jul  4 13:40:44 DietPi weewx[7627]:         ****  Generator terminated
>>>
>>>
>>> It seems to have choked on the fact that it was a directory!
>>>
>>
> i thought i remembered something about this.  there was a fix in 3.9.2 
> (not yet released) for something similar - see #379:
>
> https://github.com/weewx/weewx/issues/379
>
> otherwise, just explicitly specify the patterns for files that you need to 
> copy.
>
> m
>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-development" 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-development/8f7ab5a8-37e6-44c1-97b7-a36947242db4%40googlegroups.com.

Reply via email to